zachroberts8668 103d7d19a7 Add 'samples/react-personal-greeting/' from commit 'b74fadbcf18a07ebe352855f80708e275a62cdec'
git-subtree-dir: samples/react-personal-greeting
git-subtree-mainline: b0f72f0b0f9ced34725e9acc6a7fcc2930fd703f
git-subtree-split: b74fadbcf18a07ebe352855f80708e275a62cdec
2020-04-14 09:10:02 -04:00

30 lines
736 B
JavaScript

'use strict';
// check if gulp dist was called
if (process.argv.indexOf('dist') !== -1) {
// add ship options to command call
process.argv.push('--ship');
}
const path = require('path');
const gulp = require('gulp');
const build = require('@microsoft/sp-build-web');
const gulpSequence = require('gulp-sequence');
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
// Create clean distrubution package
gulp.task('dist', gulpSequence('clean', 'bundle', 'package-solution'));
// Create clean development package
gulp.task('dev', gulpSequence('clean', 'bundle', 'package-solution'));
/**
* Custom Framework Specific gulp tasks
*/
build.initialize(gulp);