UNPKG

496 BMarkdownView Raw
1# Shared Sofa Component Tasks
2
3> All build tasks shared across sofa components in one place
4
5
6## Installation
7
8In your sofa component repository run:
9
10```sh
11$ npm install --save-dev gulp shared-sofa-component-tasks
12```
13
14Then add a `gulpfile.js` with the following contents:
15
16```js
17require('shared-sofa-component-tasks')(require('gulp'), {
18 pkg: require('./package.json'),
19 baseDir: __dirname
20});
21```
22
23You can now run `gulp watch` or just `gulp build` to generate a build of your component.