From 8f94545ec9629b8ca61c46f0053f2a68a420edc7 Mon Sep 17 00:00:00 2001 From: Ricardo Mendes Date: Wed, 12 Oct 2016 15:07:37 +0100 Subject: [PATCH] Cleans up ember-source --- .npmignore | 32 ++++++++++++++++++++++++++++++++ package.json | 3 ++- scripts/release.js | 4 ++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100755 scripts/release.js diff --git a/.npmignore b/.npmignore index 0ba0fc1c85c..95ea4f058c2 100644 --- a/.npmignore +++ b/.npmignore @@ -1 +1,33 @@ node-tests/ +CODE_OF_CONDUCT.md +CONTRIBUTING.md +FEATURES.md +STYLEGUIDE.md +VERSION +bin +blueprints +bower.json +bower_components +config +ember-cli-build.js +ember-source.gemspec +features.json +generators +lib +node-tests +node_modules +packages +scripts +server +testem.dist.json +testem.json +testem.travis-browsers.js +tests +tmp +vendor +!vendor/ember/ +yarn.lock +yuidoc.json + +# In the future we will likely want to restrict exactly +# which parts of `/dist` we want to include. diff --git a/package.json b/package.json index 50482e18bc7..7ae96ee8a73 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "test:blueprints": "node node-tests/nodetest-runner.js", "start": "ember serve", "docs": "ember ember-cli-yuidoc", - "sauce:launch": "ember sauce:launch" + "sauce:launch": "ember sauce:launch", + "release": "node scripts/release.js" }, "repository": { "type": "git", diff --git a/scripts/release.js b/scripts/release.js new file mode 100755 index 00000000000..f2a5be9dfb8 --- /dev/null +++ b/scripts/release.js @@ -0,0 +1,4 @@ +var execSync = require('child_process').execSync; + +execSync("ember build --environment production"); +execSync("npm publish");