Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
let gulp = require('gulp');
let build = require('@microsoft/web-library-build');
build.task('sass', build.sass);
build.task('karma', build.karma);
// initialize tasks.
build.initialize(gulp);
// Always fail on test failures.
build.karma.setConfig({
failBuildOnErrors: true
});
// Use css modules.
build.sass.setConfig({
useCSSModules: true
});
'use strict';
let gulp = require('gulp');
let build = require('@microsoft/web-library-build');
build.task('sass', build.sass);
build.task('karma', build.karma);
// initialize tasks.
build.initialize(gulp);
// Always fail on test failures.
build.karma.setConfig({
failBuildOnErrors: true
});
// Use css modules.
build.sass.setConfig({
useCSSModules: true
});
'use strict';
let gulp = require('gulp');
let build = require('@microsoft/web-library-build');
build.task('sass', build.sass);
build.task('karma', build.karma);
// initialize tasks.
build.initialize(gulp);
// Always fail on test failures.
build.karma.setConfig({
failBuildOnErrors: true
});
// Use css modules.
build.sass.setConfig({
useCSSModules: true,
moduleExportName: ''
});
copyTo: {
[path.join(distFolder, 'sass')]: [
'node_modules/office-ui-fabric-core/dist/sass/**/*.*'
],
[path.join(distFolder, 'css')]: [
'node_modules/office-ui-fabric-core/dist/css/**/*.*'
]
}
});
// Short aliases for subtasks.
build.task('webpack', build.webpack);
build.task('tslint', build.tslint);
build.task('ts', build.typescript);
build.task('sass', build.serial(build.preCopy, build.sass));
build.task('karma', build.karma);
build.task('test', serial(build.sass, build.typescript, build.karma));
// build.task('visualtest', serial(build.sass, build.typescript, build.webpack, visualTestClean, visualTest));
// initialize tasks.
build.initialize(gulp);
'use strict';
let build = require('@microsoft/web-library-build');
let gulp = require('gulp');
// Short aliases for subtasks.
build.task('webpack', build.webpack);
build.task('sass', build.sass);
build.task('karma', build.karma);
// initialize tasks.
build.initialize(gulp);
// Always fail on test failures.
build.karma.setConfig({
failBuildOnErrors: true
});
// Use css modules.
build.sass.setConfig({
useCSSModules: true,
moduleExportName: ''
});