- add grunt-contrib-copy task to package.json package.json line 2
- configure lineman to load the task via npm config/application.coffee line 4
- configure lineman to run the copy task as part of its run/build process config/application.coffee lines 9-11
- configure the copy task itself config/application.coffee lines 14-18
With this configuration, any file or directory (recursively) in static/
will be copied over as a static asset. (directory structure is preserved.) For example, given:
static/
favicon.ico
js/
html5shim.js
Then lineman build
(with latest lineman, and default setup) will create:
dist/
css/
app.css
favicon.ico
index.html
js/
app.js
html5shim.js
Warning: If there are any name conflicts between files in 'static' and the normal lineman build assets, the static files will overwrite the others (since the copy task is run last).
And just as a quick reminder, make sure to npm install!!!!!