diff --git a/Makefile b/Makefile index 2db4013..8c5e059 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ test: ./node_modules/.bin/mocha --compilers coffee:coffee-script --reporter spec --ui exports --bail +build: + ./node_modules/.bin/apps-b ./src/ ./build/ + publish: git checkout gh-pages git show master:build/build.js > build.js @@ -13,4 +16,4 @@ publish: fi git checkout master -.PHONY: test \ No newline at end of file +.PHONY: build test \ No newline at end of file diff --git a/README.md b/README.md index 56b9dca..6bcb929 100644 --- a/README.md +++ b/README.md @@ -95,8 +95,8 @@ If you would like to run your own build for a custom version of the app, use the In short: ```bash -$ npm install apps-b-builder -g -$ apps-b build ./src/ ./build/ +$ npm install -d +$ make build ``` ##Publish It diff --git a/package.json b/package.json index 57ea02f..3304c55 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ }, "devDependencies": { "mocha": "~1.12.0", - "marked": "~0.2.9" + "marked": "~0.2.9", + "apps-b-builder": "~0.4.0" }, "scripts": { "test": "make test" diff --git a/src/component.json b/src/component.json index aba311e..eee5de9 100644 --- a/src/component.json +++ b/src/component.json @@ -12,7 +12,10 @@ "component/aurora-tip": "*", "component/marked": "*" }, - "scripts": [ + "styles": [ + "styles/fonts.css" + ], + "apps-b": [ "app.coffee", "modules/config.coffee", @@ -29,10 +32,8 @@ "templates/info.eco", "templates/label.eco", "templates/loading.eco", - "templates/progress.eco" - ], - "styles": [ - "styles/fonts.css", + "templates/progress.eco", + "styles/app.styl" ] } \ No newline at end of file