Comparing version 0.4.0 to 0.4.1
@@ -254,3 +254,3 @@ var fs = require('fs') | ||
var result = []; | ||
if (!filePaths.length) return callback && callback(); | ||
if (!filePaths.length) return callback && callback(''); | ||
filePaths.forEach(function (p) { | ||
@@ -320,2 +320,2 @@ if (!(/\.js$/.test(p))) { | ||
module.exports = FILE; | ||
module.exports = FILE; |
@@ -14,6 +14,22 @@ var colors = require('colors') | ||
, closure: require('./ender.closure') | ||
}, | ||
} | ||
function build(packages, options, context, callback) { | ||
ENDER.npm.install(packages, function (err, data) { | ||
if (err) { | ||
console.log('invalid package specified... please check your spelling and try again.'.red); | ||
return callback && callback(err); | ||
} | ||
ENDER.file.assemble(packages, context, options, function (source) { | ||
var built = 0, isComplete = function () { | ||
if (++built === 2) callback && callback(); | ||
}; | ||
ENDER.file.output(source, options.output, isComplete); | ||
ENDER.file.uglify(source, ENDER.file.output, options.output, isComplete); | ||
}); | ||
}); | ||
} | ||
//define base api | ||
API = { | ||
var API = { | ||
@@ -147,17 +163,10 @@ list: function () { | ||
packages = ENDER.util.unique(ENDER.get.special(options).concat(packages)); | ||
ENDER.npm.install(packages, function (err, data) { | ||
if (err) { | ||
console.log('invalid package specified... please check your spelling and try again.'.red); | ||
return callback && callback(err); | ||
} | ||
ENDER.file.assemble(packages, context, options, function (source) { | ||
var built = 0, isComplete = function () { | ||
if (++built === 2) callback && callback(); | ||
}; | ||
ENDER.file.output(source, options.output, isComplete); | ||
ENDER.file.uglify(source, ENDER.file.output, options.output, isComplete); | ||
}); | ||
}); | ||
build(packages, options, context, callback) | ||
} | ||
, sans: function (packages, options, callback) { | ||
console.log('building modules sans Ender client...'); | ||
build(packages, options, context, callback); | ||
} | ||
, help: function (type) { | ||
@@ -168,2 +177,3 @@ if (type.length) console.log(ENDER.docs[type[0]]); | ||
, compile: function (files, use) { | ||
@@ -170,0 +180,0 @@ console.log('Compiling Ender with ', files.join(' ')); |
{ | ||
"name": "ender", | ||
"description": "next level JavaScript modules", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"authors": ["Dustin Diaz <@ded>", "Jacob Thornton <@fat>"], | ||
@@ -6,0 +6,0 @@ "keywords": ["ender", "modules", "builder", "framework", "packager"], |
@@ -1,2 +0,2 @@ | ||
WELCOME TO YOU'RE "DOOM!"* | ||
ENDER | ||
-------------------------- | ||
@@ -6,3 +6,3 @@ | ||
That's because: *Ender is an open, powerful, micro-to-macro API for composing your own custom JavaScript library; it wraps up application agnostic, independent modules into a slick, intuitive, and familiar interface so you don't have to.* | ||
That's because: *Ender is an open-module micro-to-macro framework for composing your own custom JavaScript library; it wraps up application-independent modules into a familiar interface so you don't have to.* | ||
@@ -13,2 +13,3 @@ Check it out: | ||
OK, SURE... BUT WHY? | ||
@@ -18,4 +19,6 @@ -------------------- | ||
Ponder this... Ender is unique and important in two key ways: | ||
For folks in the knows, you can jump straight to the [list of modules](https://github.com/ender-js/Ender/wiki/Ender-package-list) | ||
Ender is unique and important in two key ways: | ||
1) Ender provides front end developers with a true package management system and the powerful command line tools necessary to back it up... making your library maintenance tasks simple, painless, and fast. | ||
@@ -28,6 +31,12 @@ | ||
Install [NodeJS](http://nodejs.org) and install [NPM](https://github.com/isaacs/npm). Then install ender globally with the command: | ||
Install [NodeJS](http://nodejs.org) and install [NPM](https://github.com/isaacs/npm). | ||
$ npm install ender -g | ||
Then install ender globally with the command (Latest NPM): | ||
$ [sudo] npm install ender -g | ||
or (NPM version < 1): | ||
$ [sudo] npm install ender | ||
Once that has installed, to get a list of all the cool things you can do, just run this command in your terminal: | ||
@@ -37,9 +46,9 @@ | ||
LEARN | ||
----- | ||
See how this stuff works and watch some [introduction videos](http://enderjs.com/learn) | ||
HELP & SUPPORT | ||
---------- | ||
For development questions, issues, bugs, ideas, suggestions -- join the Ender community and send us your thoughts at [enderjs.com](http://enderjs.com) | ||
P.S. | ||
--- | ||
that's correct, [you're doom!](http://blog.urbanbohemian.com/2009/04/08/5201/) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4366582
1345
50