Check out: http://github.com/cowboy/grunt
On Tue, Jan 31, 2012 at 5:08 PM, AJ ONeal <[email protected]> wrote: > 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? >> > > Your directory structure might look like this: > > - project > - browser > - server > > then you > > cd project/browser > mkdir lib > touch lib/index.js # this is your client app > npm init > pakmanager build > > However, in `package.json` you should use `browserDependencies` instead of > `dependencies`. > > I've published browser-safe versions of most of the core node modules to > npm. > > Since someone already claimed `events`, I had to publish it as > `events.node`. > > However, `pakmanager` understands `package.json.provides` should override > the name of the package. So even though you must `browserDependencies: { > "events.node": "*" }, you should still `require('events')`. > > If you're using ender modules, It will put out some benign warnings about > ender modules that appear to be unused (because to access `jeesh` you > require `ender`, and it doesn't understand that yet) > > it outputs pakmanaged.js > > then, minify as you please: > uglifyjs pakmanaged.js > pakmanaged.min.js > > for the server side, you probably do something similar and you end up with > a directory tree like this: > > - project > - browser > - package.json > - lib > - index.js > - submod.js > - submod2.js > - server > - package.json > - lib > - index.js > - othersubmod.js > > > My original goal for pakmanager was to get it pulled in as Ender 2.0, but > we just haven't had enough time and coordination effort to discuss the > specifics and get the ball rolling. > > Does all of that make sense? If I explained anything poorly, I'll give it > another go. > > AJ ONeal > > -- > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- tim branyen, bocoup -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
