update component builder

This commit is contained in:
Radek Stepan 2013-10-17 14:32:46 +01:00
parent b96c175229
commit f9731606cb
4 changed files with 14 additions and 9 deletions

View File

@ -1,6 +1,9 @@
test: test:
./node_modules/.bin/mocha --compilers coffee:coffee-script --reporter spec --ui exports --bail ./node_modules/.bin/mocha --compilers coffee:coffee-script --reporter spec --ui exports --bail
build:
./node_modules/.bin/apps-b ./src/ ./build/
publish: publish:
git checkout gh-pages git checkout gh-pages
git show master:build/build.js > build.js git show master:build/build.js > build.js
@ -13,4 +16,4 @@ publish:
fi fi
git checkout master git checkout master
.PHONY: test .PHONY: build test

View File

@ -95,8 +95,8 @@ If you would like to run your own build for a custom version of the app, use the
In short: In short:
```bash ```bash
$ npm install apps-b-builder -g $ npm install -d
$ apps-b build ./src/ ./build/ $ make build
``` ```
##Publish It ##Publish It

View File

@ -15,7 +15,8 @@
}, },
"devDependencies": { "devDependencies": {
"mocha": "~1.12.0", "mocha": "~1.12.0",
"marked": "~0.2.9" "marked": "~0.2.9",
"apps-b-builder": "~0.4.0"
}, },
"scripts": { "scripts": {
"test": "make test" "test": "make test"

View File

@ -12,7 +12,10 @@
"component/aurora-tip": "*", "component/aurora-tip": "*",
"component/marked": "*" "component/marked": "*"
}, },
"scripts": [ "styles": [
"styles/fonts.css"
],
"apps-b": [
"app.coffee", "app.coffee",
"modules/config.coffee", "modules/config.coffee",
@ -29,10 +32,8 @@
"templates/info.eco", "templates/info.eco",
"templates/label.eco", "templates/label.eco",
"templates/loading.eco", "templates/loading.eco",
"templates/progress.eco" "templates/progress.eco",
],
"styles": [
"styles/fonts.css",
"styles/app.styl" "styles/app.styl"
] ]
} }