switch to node based static file serveer

This commit is contained in:
Radek Stepan 2014-10-27 20:14:21 -06:00
parent 661aaf2e12
commit bd9a43e1a9
4 changed files with 7 additions and 6 deletions

View File

@ -69,8 +69,8 @@ module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-contrib-cssmin')
grunt.loadNpmTasks('grunt-gh-pages');
# Stylus to CSS, concat JS libs and all CSS.
grunt.registerTask('default', [
# Stylus to CSS, concat all CSS.
grunt.registerTask('style', [
'stylus:app'
'concat:css'
])

View File

@ -8,13 +8,13 @@ watch:
# Serve locally.
serve:
cd public; python -m SimpleHTTPServer 8000
./node_modules/.bin/static public -H '{"Cache-Control": "no-cache, must-revalidate"}'
# Make a minified package.
build:
grunt init
./node_modules/.bin/browserify -e ./src/app.coffee -o public/js/app.bundle.js
grunt
grunt style
grunt minify
# Publish to GitHub Pages.

View File

@ -14,7 +14,7 @@
##Next Release
- [ ] https://github.com/medic/medic-webapp project is overdue and trendline & ideal line end on that date; should max on that date or today's date
- [ ] https://github.com/ractivejs/ractive gives me NaN for a milestone progress %
- [*] https://github.com/ractivejs/ractive gives me NaN for a milestone progress %
- [ ] http://burnchart.io#rails I would expect it to list all the projects for that owner so I can select one of them (Ryan)
- [ ] why didn't Reset DB load demo data? (Ryan)

View File

@ -32,7 +32,8 @@
"ractivate": "~0.2.0",
"browserify": "~6.1.0",
"watchify": "~2.1.0",
"node-static": "~0.7.6",
"mocha": "~2.0.1",
"coffee-script": "~1.8.0",