gulp-nstools
v0.1.1
Published
Continues Integration tool for NetSuite
Downloads
3
Maintainers
Readme
gulp-nstools
NetSuite Bundle automatization for Continuous Integration
Required
- node.js 4+
Install
npm install gulp-nstools --save-dev
Default Project
+-- gulpfile.js
+-- module1
| +-- bundle.json
| +-- src
| | +-- SC-module1-main.js
bundle.json
{
"name": "module1",
"scripts": [
"SC-module1-main"
]
}
Package
var Q = require('q'),
gulp = require('gulp'),
gulpLoadPlugins = require('gulp-load-plugins'),
plugins = gulpLoadPlugins();
gulp.task('pacakge:generate', function() {
let deferred = Q.defer();
let nstools = plugins.nstools;
// generate Netsuite package
gulp.src(__dirname+ '/*/bundle.json')
.pipe(nstools.package())
.pipe(plugins.uglify({
compress: {
drop_console: true
}
}))
.pipe(gulp.dest(__dirname + '/.dist'))
.on('end', () => {
deferred.resolve();
});
return deferred.promise;
});
Install
... todo - manager modules dependencies using npm
.
deploy
... todo - deploys packages into NetSuite ... and configure SuiteScripts