Skip to content

Commit

Permalink
feat(build): Added watch task
Browse files Browse the repository at this point in the history
  • Loading branch information
joaogarin committed Nov 8, 2016
1 parent ac95adf commit f2cfd73
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/recruiter-epiq-deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var args = process.argv.slice(3);

switch (script) {
case 'build':
case 'watch':
case 'images':
case 'styleguide':
case 'critical':
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "recruiter_epiq_deps",
"version": "0.1.0",
"version": "0.1.1",
"description": "Dependencies for the epiq theme in Recruiter distro",
"main": "index.js",
"scripts": {
Expand Down
18 changes: 18 additions & 0 deletions scripts/watch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var exec = require('child_process').exec,
chalk = require('chalk'),
epiq_dir = '../../../../../../profiles/recruiter/themes/epiq';

var cmd = 'cd node_modules/recruiter_epiq_deps && gulp watch --epiq_dir ' + epiq_dir;

console.log('Running watch script - ' + chalk.yellow('gulp watch'));
exec(cmd, function (error, stdout, stderr) {
// command output is in stdout
if (!error) {
console.log(chalk.green(stdout));
}
else {
console.log(chalk.white(stdout));
console.log(chalk.red(error));
}
console.log(chalk.red(stderr));
});

0 comments on commit f2cfd73

Please sign in to comment.