Skip to content

Commit

Permalink
feat(build): Add a binary to run gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
joaogarin committed Sep 21, 2016
1 parent d43c435 commit 0e36add
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
19 changes: 19 additions & 0 deletions bin/recruiter-epiq-deps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env node
var spawn = require('cross-spawn');
var script = process.argv[2];
var args = process.argv.slice(3);

switch (script) {
case 'build':
var result = spawn.sync(
'node',
[require.resolve('../scripts/' + script)].concat(args),
{stdio: 'inherit'}
);
process.exit(result.status);
break;
default:
console.log('Unknown script "' + script + '".');
console.log('Perhaps you need to update recruiter-deps?');
break;
}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"bugs": {
"url": "https://github.com/epiqo/recruiter_epiq_deps/issues"
},
"bin": {
"recruiter-epiq-deps": "./bin/recruiter-epiq-deps.js"
},
"homepage": "https://github.com/epiqo/recruiter_epiq_deps#readme",
"dependencies": {
"es6-promise": "^3.1.2",
Expand All @@ -40,7 +43,8 @@
"gulp-util": "~3.0.7",
"kss": "~2.0.2",
"tiny-lr": "~0.2.1",
"yargs": "~4.6.0"
"yargs": "~4.6.0",
"cross-spawn": "4.0.0"
},
"devDependencies": {
"bundle-deps": "^1.0.0",
Expand Down
1 change: 1 addition & 0 deletions scripts/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('run gulp here');

0 comments on commit 0e36add

Please sign in to comment.