Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// The following directory will be scanned for Bower packages, and
// compiled into vendor-generated.js.
bower: path.resolve(source, "assets/js/vendor"),
// The following paths will be run through browserify/babelify.
js: path.resolve(source, "assets/js/*.js"),
// The following paths will be run through SASS.
scss: path.resolve(source, "assets/scss/**/*.scss")
},
// Show verbose output in tasks.
verbose: false,
// Toggle minification of CSS and JS.
minify: true
};
gulp.registry(new PatternLabRegistry(defaults, argv));
gulp.registry(new NPMRegistry(defaults, argv));
gulp.registry(new ArtifactsRegistry(defaults, argv));
// @todo: Do we need svg2twig?
// @todo: Do we need the svg-sprite task?
gulp.task("default", gulp.series("patternlab:watch"));
gulp.task("prod", gulp.series("patternlab:build"));
const gulp = require('gulp');
const HubRegistry = require('gulp-hub');
const browserSync = require('browser-sync');
const conf = require('./conf/gulp.conf');
// Load some files into the registry
const hub = new HubRegistry([conf.path.tasks('*.js')]);
// Tell gulp to use the tasks just loaded
gulp.registry(hub);
gulp.task('build', gulp.series('partials', gulp.parallel('other', 'webpack:dist')));
gulp.task('test', gulp.series('karma:single-run'));
gulp.task('test:auto', gulp.series('karma:auto-run'));
gulp.task('serve', gulp.series('webpack:watch', 'watch', 'browsersync'));
gulp.task('serve:dist', gulp.series('default', 'browsersync:dist'));
gulp.task('default', gulp.series('clean', 'build'));
gulp.task('watch', watch);
function reloadBrowserSync(cb) {
browserSync.reload();
cb();
}
function watch(done) {
gulp.watch(conf.path.src('app/**/*.html'), reloadBrowserSync);
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const gulp = require('gulp');
const HubRegistry = require('gulp-hub');
const browserSync = require('browser-sync');
const conf = require('./conf/gulp.conf');
// Load some files into the registry
const hub = new HubRegistry([conf.path.tasks('*.js')]);
// Tell gulp to use the tasks just loaded
gulp.registry(hub);
gulp.task('build', gulp.series(gulp.parallel('other', 'webpack:dist')));
gulp.task('test', gulp.series('karma:single-run'));
gulp.task('test:auto', gulp.series('karma:auto-run'));
gulp.task('serve', gulp.series('webpack:watch', 'watch', 'browsersync'));
gulp.task('serve:demo', gulp.series('webpack:watch', 'watch', 'browsersync:demo'));
gulp.task('serve:nightly', gulp.series('webpack:watch', 'watch', 'browsersync:nightly'));
gulp.task('serve:dist', gulp.series('default'));
gulp.task('default', gulp.series('clean', 'build'));
gulp.task('watch', watch);
gulp.task('buildNoReg', gulp.series('serve:dist', 'webdriver-update'));
function reloadBrowserSync(cb) {
browserSync.reload();
cb();
}
const gulp = require('gulp');
const HubRegistry = require('gulp-hub');
const browserSync = require('browser-sync');
const conf = require('./conf/gulp.conf');
// Load some files into the registry
const hub = new HubRegistry([conf.path.tasks('*.js')]);
// Tell gulp to use the tasks just loaded
gulp.registry(hub);
gulp.task('build', gulp.series(gulp.parallel('other', 'webpack:dist')));
gulp.task('test', gulp.series('karma:single-run'));
gulp.task('test:auto', gulp.series('karma:auto-run'));
gulp.task('serve', gulp.series('webpack:watch', 'watch', 'browsersync'));
gulp.task('serve:dist', gulp.series('default', 'browsersync:dist'));
gulp.task('default', gulp.series('clean', 'build'));
gulp.task('watch', watch);
function reloadBrowserSync(cb) {
browserSync.reload();
cb();
}
function watch(done) {
gulp.watch(conf.path.src('app/**/*.html'), reloadBrowserSync);
const path = require('path');
const fs = require('fs');
const gulp = require('gulp');
const undertakerForwardReference = require('undertaker-forward-reference');
// NOTE: Allow tasks to be referenced in any order
gulp.registry(undertakerForwardReference());
// NOTE: Load all tasks
const tasksDir = path.join(__dirname, 'gulp/tasks');
fs.readdirSync(tasksDir).forEach(file => require(path.join(tasksDir, file)));
'./tasks/scripts.js',
'./tasks/sounds.js',
'./tasks/styles.js',
'./tasks/version.js',
'./tasks/chromereload.js' //諸々->chromereload->build->pack,defaultの順
// './tasks/build.js'
// './tasks/pack.js'
// './tasks/default.js'
]);
var buildTasks = new hub([
'./tasks/build.js'
// './tasks/pack.js'
// './tasks/default.js'
]);
// gulp.registry(tasks);
gulp.registry(buildTasks);
// import pack from './tasks/pack';
// export { build, pack };
// exports.build = build;
// gulp.task('build', build);
// pack
import { colors, log } from 'gulp-util';
import zip from 'gulp-zip';
import packageDetails from './package.json';
import args from './tasks/lib/args';
// import hub from 'gulp-hub';
function getPackFileType() {
switch (args.vendor) {
case 'firefox':
const gulp = require('gulp');
const HubRegistry = require('gulp-hub');
const browserSync = require('browser-sync');
const conf = require('./conf/gulp.conf');
// Load some files into the registry
const hub = new HubRegistry([conf.path.tasks('*.js')]);
// Tell gulp to use the tasks just loaded
gulp.registry(hub);
gulp.task('build', gulp.series(gulp.parallel('other', 'webpack:dist')));
gulp.task('build:demo', gulp.series(gulp.parallel('other', 'webpack:dist')));
gulp.task('test', gulp.series('karma:single-run'));
gulp.task('test:auto', gulp.series('karma:auto-run'));
gulp.task('serve', gulp.series('webpack:watch', 'watch', 'browsersync'));
gulp.task('serve:dist', gulp.series('default', 'browsersync:dist'));
gulp.task('default', gulp.series('clean', 'build'));
gulp.task('watch', watch);
function reloadBrowserSync(cb) {
browserSync.reload();
cb();
}
function watch(done) {
}
}
},
build: ['clean', 'make'],
serve: {
browserSync: function () {
browserSync.init({
server: this.config.dest.path
});
},
watch: ['markups', 'scripts', 'styles', 'images', 'assets']
},
default: 'build'
});
gulp.registry(meal);
env: env,
browser: browserSync.create()
}
/**
* All the task need regist to Gulp.
*/
const styles = new Stylestaker({ instance: instance })
const templates = new Templatestaker({ instance: instance })
const images = new Imagestaker({ instance: instance })
const dlls = new Dllstaker({ instance: instance })
const fonts = new Fontstaker({ instance: instance })
gulp.registry(styles)
gulp.registry(templates)
gulp.registry(images)
gulp.registry(dlls)
gulp.registry(fonts)
/**
* Stop server. Used to restart server or tasks.
*
* @private
*/
function stopServer(done) {
instance.browser.exit()
done()
}
],
keywords: [
'',
''
],
cli: [
'',
''
]
};
var recipes, meal;
recipes = prepare(COURSES);
meal = chef(recipes, { exposeWithPrefix: 'always' });
gulp.registry(meal);