Quick installation
Use TrustSource with your npm projects in combination with the Gulp javascript task runner by utilizing the “ecs-grunt-plugin” in conjuction with the “gulp-grunt” plugin. Install this two plugins with
npm install ecs-grunt-plugin grunt-gulp --save-dev
on the command line within your project folder.
Create a Gruntfile.js as described in the npm with Grunt section and extend your gulpfile.js as shown in our example.
Simply execute
grunt ecs-scan
on the command line within your project directory to scan and transfer the dependency information to the TrustSource platform.
Simple example gulpfile.js:
'use strict'; var gulp = require('gulp'); require('gulp-grunt')(gulp); // add the grunt tasks (prefixed with the default namespace 'grunt-') gulp.task('default', [ 'grunt-scan' ]);
Comments
0 comments
Please sign in to leave a comment.