Permalink
Browse files

v3.2.3. Bugfix. Improvement.

- v3.2.3 September 18, 2013
	- Fixed cyclic dependency problem on windows (since v2.1.3)
	- Added bower support
  • Loading branch information...
1 parent 4aa115a commit 21b54f51fd18fe6e481dfdbe98e5945af9d9b65f @balupton balupton committed Sep 18, 2013
Showing with 76 additions and 37 deletions.
  1. +1 −1 .npmignore
  2. +4 −0 History.md
  3. +0 −12 Makefile
  4. +12 −9 README.md
  5. +32 −0 bower.json
  6. +5 −4 component.json
  7. +7 −0 cyclic.js
  8. +0 −2 index.js
  9. +7 −3 out/lib/taskgroup.js
  10. +4 −4 package.json
  11. +4 −2 src/lib/taskgroup.coffee
View
@@ -11,4 +11,4 @@ build/
components/
template.js
component.json
-index.js
+bower.json
View
@@ -1,5 +1,9 @@
## History
+- v3.2.3 September 18, 2013
+ - Fixed cyclic dependency problem on windows (since v2.1.3)
+ - Added bower support
+
- v3.2.2 September 18, 2013
- Component.io compatibility
View
@@ -1,12 +0,0 @@
-# For Component.io
-
-build: components index.js
- @component build --dev
-
-components: component.json
- @component install --dev
-
-clean:
- rm -fr build components template.js
-
-.PHONY: clean
View
@@ -9,18 +9,23 @@
Group together synchronous and asynchronous tasks and execute them with support for concurrency, naming, and nesting.
-
## Install
-### Backend
-
-1. [Install Node.js](http://bevry.me/node/install)
-2. `npm install --save taskgroup`
+### [Node](http://nodejs.org/), [Browserify](http://browserify.org/)
+- Use: `require('taskgroup')`
+- Install: 'npm install --save taskgroup'
-### Frontend
+### [Ender](http://ender.jit.su/)
+- Use: `require('taskgroup')`
+- Install: `ender add taskgroup`
-1. [See Browserify](http://browserify.org/)
+## [Component](http://github.com/component/component)
+- Use: `require('taskgroup')`
+- Install: `component install bevry/taskgroup`
+## [Bower](http://bower.io/)
+- Use: `require('taskgroup')`
+- Install: `bower install taskgroup`
## Usage
@@ -208,12 +213,10 @@ Another big advantage of TaskGroup over async.js is TaskGroup's ability to add t
A final big advantage of TaskGroup over async.js is TaskGroup's ability to do nested groups, this allowed us to created the [Joe Testing Framework & Runner](https://github.com/bevry/joe) incredibly easily, and because of this functionality Joe will always know which test (task) is associated to which suite (task group), whereas test runners like mocha have to guess (they add the task to the last group, which may not always be the case! especially with dynamically created tests!).
-
## History
You can discover the history inside the [History.md](https://github.com/bevry/taskgroup/blob/master/History.md#files) file
-
## License
Licensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT License](http://creativecommons.org/licenses/MIT/)
<br/>Copyright © 2013+ [Bevry Pty Ltd](http://bevry.me)
View
@@ -0,0 +1,32 @@
+{
+ "name": "taskgroup",
+ "version": "3.2.3",
+ "homepage": "https://github.com/bevry/taskgroup",
+ "authors": [
+ "Benjamin Lupton <b@lupton.cc>"
+ ],
+ "description": "Group together synchronous and asynchronous tasks and execute them with support for concurrency, naming, and nesting.",
+ "main": "out/lib/taskgroup.js",
+ "keywords": [
+ "flow",
+ "control",
+ "async",
+ "sync",
+ "tasks",
+ "batch",
+ "concurrency"
+ ],
+ "license": "MIT",
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "test",
+ "tests"
+ ],
+ "dependencies": {
+ "ambi": "~2.1.4",
+ "domain-browser": "~1.0.1",
+ "events-browser": "~1.0.3"
+ }
+}
View
@@ -2,7 +2,7 @@
"name": "taskgroup",
"repo": "bevry/taskgroup",
"description": "Group together synchronous and asynchronous tasks and execute them with support for concurrency, naming, and nesting.",
- "version": "3.2.2",
+ "version": "3.2.3",
"keywords": [
"flow",
"control",
@@ -13,13 +13,14 @@
"concurrency"
],
"dependencies": {
- "bevry/ambi": "master"
+ "bevry/ambi": "master",
+ "bevry/domain-browser": "master",
+ "bevry/events-browser": "master"
},
"development": {},
"license": "MIT",
- "main": "index.js",
+ "main": "out/lib/taskgroup.js",
"scripts": [
- "index.js",
"out/lib/taskgroup.js"
]
}
View
@@ -0,0 +1,7 @@
+if ( require('fs').existsSync('.git') ) {
+ require('child_process').spawn(
+ 'npm',
+ ['install', '--force', require('./package.json').name],
+ {env:process.env, cwd:process.cwd(), stdio:'inherit'}
+ );
+}
View
@@ -1,2 +0,0 @@
-// For Component.io
-require('./out/lib/taskgroup.js');
View
Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "taskgroup",
- "version": "3.2.2",
+ "version": "3.2.3",
"description": "Group together synchronous and asynchronous tasks and execute them with support for concurrency, naming, and nesting.",
"homepage": "https://github.com/bevry/taskgroup",
"keywords": [
@@ -31,7 +31,7 @@
"node": ">=0.4"
},
"dependencies": {
- "ambi": "~2.1.0"
+ "ambi": "~2.1.4"
},
"devDependencies": {
"coffee-script": "~1.6.2",
@@ -43,8 +43,8 @@
"lib": "./out/lib"
},
"scripts": {
- "preinstall": "node -e \"if(require('fs').existsSync('./.git')){ require('child_process').spawn('npm', ['install','--force',require('./package.json').name], {env:process.env,cwd:process.cwd(),stdio:'inherit'}); }\"",
+ "preinstall": "node ./cyclic.js",
"test": "node ./out/test/everything-test.js"
},
"main": "./out/lib/taskgroup.js"
-}
+}
@@ -1,6 +1,8 @@
# Import
ambi = require('ambi')
-EventEmitter = require('events').EventEmitter
+events = if window? then require('events-browser') else require('events')
+domain = if window? then require('domain-browser') else require('domain')
+{EventEmitter} = events
# Task
# Events
@@ -124,7 +126,7 @@ class Task extends EventEmitter
# Prepare the task domain if it doesn't already exist
unless @taskDomain?
- @taskDomain = require('domain').create()
+ @taskDomain = domain.create()
@taskDomain.on('error', @uncaughtExceptionCallback.bind(@))
# Listen for uncaught errors

0 comments on commit 21b54f5

Please sign in to comment.