Skip to content

Commit

Permalink
- npm publish 2016.3.2
Browse files Browse the repository at this point in the history
- add file cli.js
- fix npm install
  • Loading branch information
kaizhu256 committed Apr 20, 2016
1 parent 2b8b2ee commit 46701e7
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ minimal npm installer for electron with zero npm-dependencies



# change since 9776e100
- npm publish 2016.3.1
- upgrade to electron @ v0.36.12
# change since 2b8b2ee8
- npm publish 2016.3.2
- add file cli.js
- fix npm install
- none


Expand Down Expand Up @@ -148,7 +149,7 @@ instruction
{
"author": "kai zhu <kaizhu256@gmail.com>",
"bin": {
"electron": "external/electron"
"electron": "cli.js"
},
"description": "minimal npm installer for electron with zero npm-dependencies",
"devDependencies": {
Expand All @@ -175,7 +176,6 @@ instruction
"scripts": {
"build-ci": "utility2 shRun shReadmeBuild",
"postinstall": "./index.sh shNpmPostinstall",
"preinstall": "mkdir -p external && touch external/electron",
"test": "export MODE_LINENO=0 && \
export NODE_ENV=test && \
utility2 shRun shReadmeExportFile package.json package.json && \
Expand All @@ -184,7 +184,7 @@ npm run postinstall && \
./external/electron --version && \
utility2 test node test.js"
},
"version": "2016.3.1"
"version": "2016.3.2"
}
```

Expand Down
22 changes: 22 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env node
/*jslint
bitwise: true,
browser: true,
maxerr: 8,
maxlen: 96,
node: true,
nomen: true,
regexp: true,
stupid: true
*/
(function () {
'use strict';
require('child_process').spawn(
__dirname + '/external/electron',
process.argv.slice(2),
{ stdio: 'inherit' }
)
.on('exit', function (exitCode) {
process.exit(exitCode);
});
}());
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/* jslint-ignore-all */
module.exports = require('./package.json');
module.exports.__dirname = __dirname;
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "kai zhu <kaizhu256@gmail.com>",
"bin": {
"electron": "external/electron"
"electron": "cli.js"
},
"description": "minimal npm installer for electron with zero npm-dependencies",
"devDependencies": {
Expand All @@ -28,7 +28,6 @@
"scripts": {
"build-ci": "utility2 shRun shReadmeBuild",
"postinstall": "./index.sh shNpmPostinstall",
"preinstall": "mkdir -p external && touch external/electron",
"test": "export MODE_LINENO=0 && export NODE_ENV=test && utility2 shRun shReadmeExportFile package.json package.json && rm -fr external && npm run postinstall && ./external/electron --version && utility2 test node test.js"


Expand All @@ -37,5 +36,5 @@


},
"version": "2016.3.1"
"version": "2016.3.2"
}
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/* jslint-ignore-all */
require('utility2').testRun({});

0 comments on commit 46701e7

Please sign in to comment.