How to use gulp-shell - 10 common examples

To help you get started, we’ve selected a few gulp-shell examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github okoala / vue-fis3 / build / gulp / tasks / deploy.js View on Github external
'use strict';

var gulp = require('gulp');
var shell = require('gulp-shell');

var config = require('../../../config');

gulp.task('webpack', shell.task('webpack --config ../../webpack/webpack.config.js'));
// start
// 发布相关
gulp.task('release', ['webpack'], shell.task('fis3 release deploy -d ' + config.dest));

gulp.task('deploy', ['release'], shell.task('npm run start', {
    cwd: config.dest
}));
github sethen / markdown-include / gulpfile.js View on Github external
/* eslint-env node */
var gulp = require('gulp');
var shell = require('gulp-shell');

gulp.task('test', shell.task([
	'node_modules/.bin/intern-client config=tests/intern.js'
]));

gulp.task('build', shell.task([
	'./bin/cli.js markdown.json'
]));
github allenhwkim / angularjs-google-maps / gulpfile.js View on Github external
gulp.task('docs', function() {
 gulp.task('docs', shell.task([
   'node_modules/jsdoc/jsdoc.js '+
     '-c node_modules/angular-jsdoc/common/conf.json '+   // config file
     '-t node_modules/angular-jsdoc/angular-template '+   // template file
     '-d build/docs '+                           // output directory
     './README.md ' +                            // to include README.md as index contents
     '-r directives services'                    // source code directory
 ]));
});
github skaut / skaut-google-drive-gallery / gulpfile.ts / unit.ts View on Github external
/* eslint-env node */

export {};

const gulp = require( 'gulp' );

const shell = require( 'gulp-shell' );

// Unit tests

gulp.task( 'unit:phpunit', shell.task( [ 'vendor/bin/phpunit' ] ) );

gulp.task( 'unit', gulp.series( 'unit:phpunit' ) );
github jimbuck / pully / gulpfile.js View on Github external
static get buildSrc() {
    // Just run the tsc via command line...   
    return shell.task('tsc');
  }
github softindex / datakernel / examples / uikernel-integration / front / gulpfile.js View on Github external
'use strict';

var gulp = require('gulp');
var sync = require('gulp-sync')(gulp).sync;
var shell = require('gulp-shell');

var jsTasks = require('./webapp/gulp/javascript');

// Javascript tasks
gulp.task('js:clean', gulp.series(jsTasks.jsClean));
gulp.task('js:style', gulp.series(jsTasks.copyLess));
gulp.task('js:bundle', gulp.series(jsTasks.createBundle));

// Java tasks
gulp.task('java:clean', gulp.series(shell.task(['mvn -f ../pom.xml clean'])));
gulp.task('java:test', gulp.series(shell.task(['mvn -f ../pom.xml test'])));
gulp.task('java:compile', gulp.series(shell.task(['mvn -f ../pom.xml compile'])));
gulp.task('java:package', gulp.series(shell.task(['mvn -f ../pom.xml package'])));
gulp.task('java:run', gulp.series(shell.task(['java -jar ../target/uikernel-integration.jar'])));


// General tasks
gulp.task('clean', gulp.parallel('js:clean', 'java:clean'));
gulp.task('test', gulp.parallel('java:test'));
gulp.task('build', gulp.series((['clean', 'js:bundle', 'js:style', 'java:compile'])));
gulp.task('pack', gulp.series((['js:bundle', 'java:package'])));
gulp.task('run', gulp.parallel('java:run'));

gulp.task('default', gulp.series((['build', 'pack', 'run'])));
github softindex / datakernel / examples / tutorials / uikernel-integration / front / gulpfile.js View on Github external
'use strict';

var gulp = require('gulp');
var sync = require('gulp-sync')(gulp).sync;
var shell = require('gulp-shell');

var jsTasks = require('./webapp/gulp/javascript');

// Javascript tasks
gulp.task('js:clean', gulp.series(jsTasks.jsClean));
gulp.task('js:style', gulp.series(jsTasks.copyLess));
gulp.task('js:bundle', gulp.series(jsTasks.createBundle));

// Java tasks
gulp.task('java:clean', gulp.series(shell.task(['mvn -f ../pom.xml clean'])));
gulp.task('java:test', gulp.series(shell.task(['mvn -f ../pom.xml test'])));
gulp.task('java:compile', gulp.series(shell.task(['mvn -f ../pom.xml compile'])));
gulp.task('java:package', gulp.series(shell.task(['mvn -f ../pom.xml package'])));
gulp.task('java:run', gulp.series(shell.task(['java -jar ../target/uikernel-integration.jar'])));


// General tasks
gulp.task('clean', gulp.parallel('js:clean', 'java:clean'));
gulp.task('test', gulp.parallel('java:test'));
gulp.task('build', gulp.series((['clean', 'js:bundle', 'js:style', 'java:compile'])));
gulp.task('pack', gulp.series((['js:bundle', 'java:package'])));
gulp.task('run', gulp.parallel('java:run'));

gulp.task('default', gulp.series((['build', 'pack', 'run'])));
github HomecareHomebase / azure-bake / gulpfile.js View on Github external
function gitCommit(done) {
    var branchName = params.build.buildSourceBranch.replace(/refs\/heads\/(feature\/)?/i, '');
    var gitScript = `sudo git checkout ${branchName} && 
    sudo git config user.email "${params.build.buildRequestedForEmail}" &&
    sudo git config user.name "${params.build.buildRequestedFor}" &&
    sudo git add . && 
    sudo git commit --author '${params.build.buildRequestedFor} <${params.build.buildRequestedForEmail}>' --message "chore[skip ci]: Update & Commit Locks" && 
    sudo git tag v${lerna.version} &&
    sudo git push origin ${branchName} &&
    sudo git push origin --tags`;
    console.log('Git Script: ' + gitScript);
    return shell.task(gitScript)(done());
}
github coveooss / platform-client / gulpTasks / dev.js View on Github external
'use strict';
const gulp = require('gulp');
const shell = require('gulp-shell');

const command = /^win/.test(process.platform)
  ? ['"node_modules/.bin/nyc" "node_modules/.bin/mocha-webpack" --webpack-config webpack.config-test.js --watch']
  : [
      'cross-env NODE_ENV=test nyc mocha-webpack test/test.ts --watch src/**/*.ts --webpack-config webpack.config-test.js --recursive'
    ];

gulp.task('dev', shell.task(command));
github jimbuck / pully / gulpfile.js View on Github external
static get test() {
    return shell.task(`nyc --color --reporter=text --reporter=lcov -a ava -v`);
  }

gulp-shell

A handy command line interface for gulp

MIT
Latest version published 5 years ago

Package Health Score

47 / 100
Full package analysis

Popular gulp-shell functions