Permalink
Browse files

Add component.json; fixes #6.

  • Loading branch information...
1 parent c3b235f commit fde1de644fab56d581b41d542faebc1c23d71978 @mbostock mbostock committed Jan 25, 2013
Showing with 61 additions and 12 deletions.
  1. +16 −7 Makefile
  2. +5 −0 component.json
  3. +3 −3 package.json
  4. +1 −1 queue.js
  5. +1 −1 queue.min.js
  6. +7 −0 src/component.js
  7. +28 −0 src/package.js
View
@@ -1,19 +1,28 @@
-# See the README for installation instructions.
-
NODE_PATH ?= ./node_modules
JS_COMPILER = $(NODE_PATH)/uglify-js/bin/uglifyjs
JS_TESTER = $(NODE_PATH)/vows/bin/vows
-JS_FILES = \
- queue.js
-
all: \
- $(JS_FILES) \
- $(JS_FILES:.js=.min.js)
+ queue.min.js \
+ component.json \
+ package.json
+
+component.json: src/component.js queue.js
+ @rm -f $@
+ node src/component.js > $@
+ @chmod a-w $@
+
+package.json: src/package.js queue.js
+ @rm -f $@
+ node src/package.js > $@
+ @chmod a-w $@
test: all
@$(JS_TESTER)
%.min.js: %.js Makefile
@rm -f $@
$(JS_COMPILER) < $< > $@
+
+clean:
+ rm -f queue.min.js component.json package.json
View
@@ -0,0 +1,5 @@
+{
+ "name": "queue-async",
+ "version": "1.0.1",
+ "main": "./queue.js"
+}
View
@@ -1,6 +1,6 @@
{
"name": "queue-async",
- "version": "1.0.0",
+ "version": "1.0.1",
"description": "A little helper for asynchronous JavaScript.",
"keywords": [
"asynchronous",
@@ -17,8 +17,8 @@
},
"main": "queue.js",
"devDependencies": {
- "uglify-js": "1.2.3",
- "vows": "0.6.x"
+ "uglify-js": "2.2.3",
+ "vows": "0.7.0"
},
"scripts": {
"test": "./node_modules/vows/bin/vows"
View
@@ -2,7 +2,7 @@
if (typeof module === "undefined") self.queue = queue;
else module.exports = queue;
- queue.version = "1.0.0";
+ queue.version = "1.0.1";
function queue(parallelism) {
var queue = {},
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -0,0 +1,7 @@
+var queue = require("../queue");
+
+console.log(JSON.stringify({
+ "name": "queue-async",
+ "version": queue.version,
+ "main": "./queue.js"
+}, null, 2));
View
@@ -0,0 +1,28 @@
+var queue = require("../queue");
+
+console.log(JSON.stringify({
+ "name": "queue-async",
+ "version": queue.version,
+ "description": "A little helper for asynchronous JavaScript.",
+ "keywords": [
+ "asynchronous",
+ "async",
+ "queue"
+ ],
+ "author": {
+ "name": "Mike Bostock",
+ "url": "http://bost.ocks.org/mike"
+ },
+ "repository": {
+ "type": "git",
+ "url": "http://github.com/mbostock/queue.git"
+ },
+ "main": "queue.js",
+ "devDependencies": {
+ "uglify-js": "2.2.3",
+ "vows": "0.7.0"
+ },
+ "scripts": {
+ "test": "./node_modules/vows/bin/vows"
+ }
+}, null, 2));

0 comments on commit fde1de6

Please sign in to comment.