an ok build pipeline
This commit is contained in:
parent
1b773df7bb
commit
d61532938f
|
@ -1,22 +1,6 @@
|
|||
module.exports = (grunt) ->
|
||||
grunt.initConfig
|
||||
pkg: grunt.file.readJSON("package.json")
|
||||
|
||||
clean: [ 'public/js' ]
|
||||
|
||||
browserify:
|
||||
app:
|
||||
src: 'src/app.coffee'
|
||||
dest: 'public/js/app.js'
|
||||
options:
|
||||
transform: [
|
||||
# CoffeeScript.
|
||||
'coffeeify'
|
||||
# Mustaches.
|
||||
'ractivate'
|
||||
]
|
||||
browserifyOptions:
|
||||
debug: yes
|
||||
|
||||
stylus:
|
||||
style:
|
||||
|
@ -63,31 +47,11 @@ module.exports = (grunt) ->
|
|||
]
|
||||
dest: 'public/css/app.bundle.css'
|
||||
|
||||
uglify:
|
||||
files:
|
||||
'public/js/app.min.js': 'public/js/app.js'
|
||||
'public/js/app.bundle.min.js': 'public/js/app.bundle.js'
|
||||
|
||||
cssmin:
|
||||
files:
|
||||
'public/css/app.min.css': 'public/css/app.css'
|
||||
'public/css/app.bundle.min.css': 'public/css/app.bundle.css'
|
||||
|
||||
grunt.loadNpmTasks('grunt-browserify')
|
||||
grunt.loadNpmTasks('grunt-contrib-stylus')
|
||||
grunt.loadNpmTasks('grunt-contrib-concat')
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify')
|
||||
grunt.loadNpmTasks('grunt-contrib-cssmin')
|
||||
grunt.loadNpmTasks('grunt-contrib-clean')
|
||||
|
||||
grunt.registerTask('default', [
|
||||
#'clean'
|
||||
#'browserify'
|
||||
'stylus'
|
||||
'concat'
|
||||
])
|
||||
|
||||
grunt.registerTask('minify', [
|
||||
'uglify'
|
||||
'cssmin'
|
||||
])
|
7
Makefile
7
Makefile
|
@ -8,14 +8,11 @@ build-app:
|
|||
watch-app:
|
||||
./node_modules/.bin/watchify -e ./src/app.coffee -o public/js/app.js -d
|
||||
|
||||
build:
|
||||
build-app
|
||||
build-vendor:
|
||||
grunt
|
||||
|
||||
serve:
|
||||
cd public; python -m SimpleHTTPServer 8000
|
||||
|
||||
deploy:
|
||||
firebase deploy
|
||||
|
||||
.PHONY: build
|
||||
firebase deploy
|
3
TODO.md
3
TODO.md
|
@ -2,8 +2,6 @@
|
|||
|
||||
##Release: Assembly
|
||||
|
||||
- [ ] use Browserify as an app build pipeline
|
||||
|
||||
###Git
|
||||
|
||||
- [ ] create notes about how original people can upgrade to burnchart
|
||||
|
@ -38,7 +36,6 @@
|
|||
- [ ] trigger success topbar when we have completed a milestone on chart page; show plain when we are behind
|
||||
- [ ] on chart page show a little progress bar in the title
|
||||
- [ ] add a chart straight from the hero banner
|
||||
- [ ]
|
||||
|
||||
##Backlog
|
||||
|
||||
|
|
|
@ -4,19 +4,14 @@
|
|||
"description": "GitHub Burndown Chart as a Service",
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-browserify": "~3.1.0",
|
||||
"grunt-contrib-clean": "~0.6.0",
|
||||
"grunt-contrib-concat": "~0.5.0",
|
||||
"grunt-contrib-cssmin": "~0.6.2",
|
||||
"grunt-contrib-stylus": "~0.9.0",
|
||||
"grunt-contrib-uglify": "~0.2.5",
|
||||
"grunt-contrib-watch": "~0.6.1",
|
||||
"grunt-watchify": "~0.1.0",
|
||||
"coffeeify": "~0.7.0L",
|
||||
"ractivate": "~0.2.0",
|
||||
"browserify": "~6.1.0",
|
||||
"watchify": "~2.1.0"
|
||||
},
|
||||
"main": "./src/app.coffee",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/radekstepan/burnchart.io.git"
|
||||
|
@ -31,4 +26,4 @@
|
|||
"browser": {
|
||||
"semver": "./vendor/node-semver/semver.js"
|
||||
}
|
||||
}
|
||||
}
|
106
public/js/app.js
106
public/js/app.js
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,5 @@
|
|||
{ Ractive } = require './modules/vendor.coffee'
|
||||
|
||||
# Lodash mixins.
|
||||
require './utils/mixins.coffee'
|
||||
# Will load projects from localStorage.
|
||||
|
@ -8,7 +9,7 @@ Header = require './views/header.coffee'
|
|||
Notify = require './views/notify.coffee'
|
||||
router = require './modules/router.coffee'
|
||||
|
||||
app = new Ractive
|
||||
new Ractive
|
||||
|
||||
'template': require './templates/app.html'
|
||||
|
||||
|
|
|
@ -27,6 +27,5 @@
|
|||
<li><a href="#new/project" class="add"><Icons icon="plus-circled"/> Add a Project</a></li>
|
||||
<li><a href="#" class="faq">FAQ</a></li>
|
||||
<li><a href="#reset">DB Reset</a></li>
|
||||
<li><a href="#notify">Notify</a></li>
|
||||
</ul>
|
||||
</div>
|
|
@ -1,4 +1,4 @@
|
|||
{ _, Ractive, d3 } = require '../modules/vendor.coffee'
|
||||
{ Ractive, _, d3 } = require '../modules/vendor.coffee'
|
||||
|
||||
mediator = require '../modules/mediator.coffee'
|
||||
Icons = require './icons.coffee'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ _, Ractive, async } = require '../../modules/vendor.coffee'
|
||||
{ Ractive, _, async } = require '../../modules/vendor.coffee'
|
||||
|
||||
Hero = require '../hero.coffee'
|
||||
Projects = require '../tables/projects.coffee'
|
||||
|
|
Loading…
Reference in New Issue