Comments (5)
a) You don't need to do anything. In all optimisation modes boot-cljs
should handle adding includes/externs to your build.
b) That still hasn't been worked out. I think currently files that don't end in ["inc.js" "ext.js" "lib.js"]
aren't even ending up in your target directory. Probably some clever usage of the sift
task could help here.
from boot-cljsjs.
Thanks @martinklepsch, regarding a), that makes sense but it would still be useful to include that info (or a minimal index.html
example) somewhere.
On b), it appears that some packaged libraries include CSS, so even if the user must do something manually, I think the boot-cljsjs README should mention it at least.
from boot-cljsjs.
Oh right, adding these things to the README would definitely be a welcome change.
I'm not too familiar with it myself but maybe @Deraen tried something with non js files in cljsjs packages that'd be a good example?
from boot-cljsjs.
Not really, I have mostly used webjars for css/less.
But I guess some sift examples would be helpful.
(sift :move {"^cljsjs/.*/([^/]*.css)$" "public/css/$1"})
or such should copy any css files in cljsjs packages to public/css/ folder on target etc.
from boot-cljsjs.
I'm closing this as now :foreign-libs
are used and the README changed significantly.
Feel free to open other issues if there are any questions.
from boot-cljsjs.
Related Issues (20)
- Provide a way to have multiple externs HOT 3
- Browserified npm modules HOT 4
- Allow users to specify additional provides clauses HOT 3
- Trouble with tasks for DraftJS HOT 1
- Provide Extern generation task
- npm task HOT 5
- Sanity check task HOT 1
- Replace content fails on Windows HOT 2
- The minify task doesn't seem to work on Windows HOT 1
- Downloaded file cannot be deleted in Windows HOT 3
- Mark is not supported HOT 2
- D3 externs error HOT 1
- deps-cljs task produces invalid deps.cljs on Windows (backslashes in :externs array)
- Incorrect handling of tgz archives HOT 8
- Weird directory structure HOT 1
- Invalid cookie header when fetching zip from git
- Minifying es6 HOT 3
- validate-checksums doesn't see files from minify task
- ClassNotFoundException on Java 12 HOT 3
- it is valid for :global-exports key to be a string HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boot-cljsjs.