Merge pull request #487 from code-dot-org/piskel-on-npm

Prepare for npm publishing
This commit is contained in:
Julian Descottes 2016-06-22 12:08:31 +02:00 committed by GitHub
commit b39b3befa1
3 changed files with 18 additions and 2 deletions

3
.npmignore Normal file
View File

@ -0,0 +1,3 @@
node_modules/
test/

4
misc/scripts/piskel-root Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env node
// Writes the absolute path to the release build root to stdout
var path = require('path');
process.stdout.write(path.resolve(__dirname, '../../dest/prod') + '\n');

View File

@ -6,16 +6,25 @@
"contributors": [ "contributors": [
"Vincent Renaudin" "Vincent Renaudin"
], ],
"main": "./dest/prod/index.html",
"homepage": "http://github.com/juliandescottes/piskel", "homepage": "http://github.com/juliandescottes/piskel",
"license": "Apache-2.0", "license": "Apache-2.0",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "http://github.com/juliandescottes/piskel.git" "url": "http://github.com/juliandescottes/piskel.git"
}, },
"files": [
"dest/prod",
"misc/scripts/piskel-root"
],
"bin": {
"piskel-root": "./misc/scripts/piskel-root"
},
"main": "./dest/prod/index.html",
"scripts": { "scripts": {
"test": "grunt test", "test": "grunt test",
"start": "nodewebkit" "start": "nodewebkit",
"preversion": "grunt test-local build",
"postversion": "git push && git push --tags && npm publish"
}, },
"devDependencies": { "devDependencies": {
"dateformat": "1.0.11", "dateformat": "1.0.11",