File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # See the README for installation instructions.
2-
31NODE_PATH ?= ./node_modules
42JS_COMPILER = $(NODE_PATH ) /uglify-js/bin/uglifyjs
53JS_TESTER = $(NODE_PATH ) /vows/bin/vows
64
7- JS_FILES = \
8- queue.js
9-
105all : \
11- $(JS_FILES ) \
12- $(JS_FILES:.js=.min.js )
6+ queue.min.js \
7+ component.json \
8+ package.json
9+
10+ component.json : src/component.js queue.js
11+ @rm -f $@
12+ node src/component.js > $@
13+ @chmod a-w $@
14+
15+ package.json : src/package.js queue.js
16+ @rm -f $@
17+ node src/package.js > $@
18+ @chmod a-w $@
1319
1420test : all
1521 @$(JS_TESTER )
1622
1723% .min.js : % .js Makefile
1824 @rm -f $@
1925 $(JS_COMPILER ) < $< > $@
26+
27+ clean :
28+ rm -f queue.min.js component.json package.json
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " queue-async" ,
3+ "version" : " 1.0.1" ,
4+ "main" : " ./queue.js"
5+ }
Original file line number Diff line number Diff line change 11{
22 "name" : " queue-async" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " A little helper for asynchronous JavaScript." ,
55 "keywords" : [
66 " asynchronous" ,
1717 },
1818 "main" : " queue.js" ,
1919 "devDependencies" : {
20- "uglify-js" : " 1 .2.3" ,
21- "vows" : " 0.6.x "
20+ "uglify-js" : " 2 .2.3" ,
21+ "vows" : " 0.7.0 "
2222 },
2323 "scripts" : {
2424 "test" : " ./node_modules/vows/bin/vows"
Original file line number Diff line number Diff line change 22 if ( typeof module === "undefined" ) self . queue = queue ;
33 else module . exports = queue ;
44
5- queue . version = "1.0.0 " ;
5+ queue . version = "1.0.1 " ;
66
77 function queue ( parallelism ) {
88 var queue = { } ,
Original file line number Diff line number Diff line change 1+ var queue = require ( "../queue" ) ;
2+
3+ console . log ( JSON . stringify ( {
4+ "name" : "queue-async" ,
5+ "version" : queue . version ,
6+ "main" : "./queue.js"
7+ } , null , 2 ) ) ;
Original file line number Diff line number Diff line change 1+ var queue = require ( "../queue" ) ;
2+
3+ console . log ( JSON . stringify ( {
4+ "name" : "queue-async" ,
5+ "version" : queue . version ,
6+ "description" : "A little helper for asynchronous JavaScript." ,
7+ "keywords" : [
8+ "asynchronous" ,
9+ "async" ,
10+ "queue"
11+ ] ,
12+ "author" : {
13+ "name" : "Mike Bostock" ,
14+ "url" : "http://bost.ocks.org/mike"
15+ } ,
16+ "repository" : {
17+ "type" : "git" ,
18+ "url" : "http://github.com/mbostock/queue.git"
19+ } ,
20+ "main" : "queue.js" ,
21+ "devDependencies" : {
22+ "uglify-js" : "2.2.3" ,
23+ "vows" : "0.7.0"
24+ } ,
25+ "scripts" : {
26+ "test" : "./node_modules/vows/bin/vows"
27+ }
28+ } , null , 2 ) ) ;
You can’t perform that action at this time.
0 commit comments