node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »


Shared Sofa Component Tasks

All build tasks shared across sofa components in one place


In your sofa component repository run:

$ npm install --save-dev gulp shared-sofa-component-tasks

Then add a gulpfile.js with the following contents:

require('shared-sofa-component-tasks')(require('gulp'), {
    pkg: require('./package.json'),
    baseDir: __dirname

You can now run gulp watch or just gulp build to generate a build of your component.