add alternate core package - fixes #387

This commit is contained in:
Sebastian McKenzie
2015-01-08 23:31:03 +11:00
parent fe9b0afd95
commit 24f70ee4d0
4 changed files with 28 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ MOCHA_CMD = node_modules/mocha/bin/_mocha
export NODE_ENV = test
.PHONY: clean test test-cov test-clean lint test-travis test-simple test-all test-browser publish build bootstrap
.PHONY: clean test test-cov test-clean lint test-travis test-simple test-all test-browser publish build bootstrap publish-core
build:
mkdir -p dist
@@ -66,6 +66,18 @@ test-browser:
test -n "`which open`" && open test/browser.html
publish-core:
# generate
bin/generate-core-package-json >package2.json
mv package.json .package.json
mv package2.json package.json
npm publish
# restore
rm -rf package.json
mv .package.json package.json
publish:
git pull --rebase
@@ -85,6 +97,8 @@ publish:
git push --follow-tags
make publish-core
rm -rf templates.json browser.js runtime.js browser-polyfill.js
bootstrap: