suiteplus / gulp-nstools

NetSuite Bundle automatization for Continuous Integration
MIT License
7 stars 4 forks source link

What does this tool do? Big Picture? #2

Open timaschew opened 8 years ago

timaschew commented 8 years ago

I tried to use this tool, but the package on npm is outdated an doesn't work with the gulp task example in the readme. Then I installed it via git and there was a module gulp-load-plugins missing. In the readme there is an error, it's nstools.package() and not package. BTW: you don't need any Q library, you can just use the native Promise.

After setting up the gulp task and the directory structure the gulp task worked. The result of this source file

// @ns.id 'nscabinet'
// @ns.type 'restlet'
module.exports = {
  post: function() {
    console.log('fooo')
  }
}

was this generated file:

var script = function r(n,t,o){function e(f){if(!t[f]){if(!n[f])throw"Cannot find module '"+f+"'";var u=t[f]={exports:{}};n[f][0].call(u.exports,function(r){var t=n[f][1][r];return e(t?t:r)},u,u.exports,r,n,t,o)}return t[f].exports}for(var f=0;f<o.length;f++)e(o[f]);return e}({1:[function(require,module,exports){
// @ns.id 'nscabinet'
// @ns.type 'restlet'
module.exports = {
  post: function() {
    console.log('fooo')
  }
}

},{}]},{},[1]);

var index = script(1);

I don't see any reason why I should use this tool instead of browserify or some other popular bundler tool.

Nothing happens with the annotations in the comment. So how does this tool help me to create bundles exactly?

danieljoppi commented 8 years ago

That is first version of nstools ... we didn't finish it yet it's an on going project ... We have many issues with NetSuite before we could continue the development of this tool, for example: There is NO Bundle API in Netsuite.

But if you want can help us: submit your Pull Request.

PS: nsify is based on browserify, but its not a same.

timaschew commented 8 years ago

I still didn't get it:

We have many issues with NetSuite

What for issue?

There is NO Bundle API in Netsuite.

That's right, but how you want to solve this? Using pahtom to automate the clicks for creating a bundle?

manjufy commented 7 years ago

Hello, I found this project interesting but how do we use it?

Is there any other way we could do the continuous integration with NetSuite. Lets say

nadeemkhoury commented 4 years ago

Is this library still in use ? or is it deprecated now ?