How to use the @microsoft/web-library-build.initialize function in @microsoft/web-library-build

To help you get started, we’ve selected a few @microsoft/web-library-build 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 OfficeDev / office-ui-fabric-react / packages / example-app-base / gulpfile.js View on Github external
'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: ''
});
github OfficeDev / office-ui-fabric-react / apps / fabric-website / gulpfile.js View on Github external
// Produce AMD bits in lib-amd on production builds.
if (isProduction || isNuke) {
  build.setConfig({
    libAMDFolder: path.join(packageFolder, 'lib-amd')
  });
}

// Short aliases for subtasks.
build.task('webpack', build.webpack);
build.task('tslint', build.tslint);
build.task('ts', build.typescript);
build.task('sass', build.sass);

// initialize tasks.
build.initialize(gulp);
github OfficeDev / office-ui-fabric-react / packages / experiments / gulpfile.js View on Github external
'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);
build.task('ts', build.typescript);
build.task('tslist', build.tslint);

// initialize tasks.
build.initialize(gulp);

// Always fail on test failures.
build.karma.setConfig({
  failBuildOnErrors: true
});

// Use css modules.
build.sass.setConfig({
  useCSSModules: true,
  moduleExportName: ''
});
github OfficeDev / office-ui-fabric-react / packages / example-component / gulpfile.js View on Github external
);
build.tslint.setConfig({
  lintConfig: { rules },
  displayAsWarning: false
});

// Use css modules.
build.sass.setConfig({
  useCSSModules: true,
  moduleExportName: ''
});

// Custom build steps.
build.task('tslint', build.tslint);

build.initialize(gulp);
github OfficeDev / office-ui-fabric-react / apps / fabric-examples / gulpfile.js View on Github external
build.task('w', customWatch);

build.task('serve', serial(
  rushBuild,
  build.serve,
  customWatch
));

// Shortcuts for individual subtasks.
build.task('webpack', build.webpack);
build.task('tslint', build.tslint);
build.task('ts', build.typescript);

// initialize tasks.
build.initialize(gulp);
github OfficeDev / office-ui-fabric-react / packages / office-ui-fabric-react / gulpfile.js View on Github external
'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);
github OfficeDev / office-ui-fabric-react / packages / merge-styles / gulpfile.js View on Github external
'use strict';

let gulp = require('gulp');
let build = require('@microsoft/web-library-build');

build.task('tslint', build.tslint);
build.task('sass', build.sass);
build.task('karma', build.karma);
build.task('webpack', build.webpack);

// initialize tasks.
build.initialize(gulp);

// Always fail on test failures.
build.karma.setConfig({
  failBuildOnErrors: true
});
github OfficeDev / office-ui-fabric-react / packages / utilities / gulpfile.js View on Github external
'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
});
github OfficeDev / office-ui-fabric-react / packages / styling / gulpfile.js View on Github external
'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: ''
});
github OfficeDev / office-ui-fabric-react / apps / todo-app / gulpfile.js View on Github external
child.on('close', done);
});

const sourceMatch = [
  'src/**/*.{ts,tsx,scss,js,txt,html}',
  '!src/**/*.scss.ts'
];

build.task('serve', serial(
  build.serve,
  build.watch(sourceMatch, serial(
    rushBuild,
    build.reload
  ))));

build.initialize(require('gulp'));