Codesurgeon looks really nice, but doesn't have the ability to
browserify and needs a list of files, browserify doesn't perform jslint
checks and just didn't work when I tried it last time.
What build tools are you using? Should I give browserify another try?
regards,
Ph
node-pakmanager installs browser packages from npm using a package.json - if RequireJS doesn't do this by now, then pakmanager would be a good thing to look into.
EnderJS is similar, but better cli, but the package detection isn't as smart.
RequireJS seems to be the most popular. I didn't use it because I didn't understand AMD before I had written pakmanager.
UglifyJS and google closure can minify
Some of those other things - such as linting - you can just run in a bash script with `find`.
Sent from my Android
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
I've seen cake, but that does not do any of the things I want to be done.
Building a custom require could work by prepending
> function require(module) {
> return require.cache[module];
> }
> require.cache = {};
And wrapping the module in:
> (function() {
> var exports = {};
> var module = {exports: exports};
>
> // module here
>
> require.cache.MODULENAME = module.exports;
> }());
But this is still not bulletproof..
How do I use pakmanager exactly? I guess I would have to separate my code I use on both sides in a special module with a package.json?
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
I should be possible with just an entry point, say src/browser.js, to
scan throw the whole source directories bundling all files, getting
modules it can't find from node_modules/.
31.01.2012 23:28, Tim Branyen wrote:
> Check out:
>
> http://github.com/cowboy/grunt
> Your directory structure might look like this:
>
> - project
> - browser
> - server
>Where do you put code, you use on both sides?
I should be possible with just an entry point, say src/browser.js, to
scan throw the whole source directories bundling all files, getting
modules it can't find from node_modules/.
Just specifying one file to start this assembly and then adding all
required files and modules recursivly seems to be the right approch for
me. Right?
Running that through jslint/hint and running tests aswell as diffrent
dev/production versions seems to me all a build tool for nodejs needs to do.
I don't see any build tool available which does this well enough.