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