Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

"Initial commit"

  • Loading branch information...
commit 3669d507b89dbe913f0dba053a7e2b478782336b 0 parents
Jake Luer logicalparadox authored
19 .gitignore
@@ -0,0 +1,19 @@
+lib-cov
+*.seed
+*.log
+*.csv
+*.dat
+*.out
+*.pid
+*.gz
+
+pids
+logs
+results
+build
+components
+
+node_modules
+npm-debug.log
+
+coverage.html
11 .npmignore
@@ -0,0 +1,11 @@
+docs/
+test/
+build/
+components/
+support/
+coverage.html
+component.json
+lib-cov
+.travis.yml
+Makefile
+*.swp
6 .travis.yml
@@ -0,0 +1,6 @@
+language: node_js
+node_js:
+ - 0.8
+branches:
+ only:
+ - master
0  History.md
No changes.
33 Makefile
@@ -0,0 +1,33 @@
+TESTS = test/*.js
+REPORTER = spec
+
+build: components
+ @./node_modules/.bin/component-build --dev
+
+components:
+ @./node_modules/.bin/component-install --dev
+
+test: build
+ @printf "\n ==> [Node.js]"
+ @NODE_ENV=test ./node_modules/.bin/mocha \
+ --require ./test/bootstrap \
+ --reporter $(REPORTER) \
+ $(TESTS)
+ @printf "\n ==> [Phantom.Js]"
+ @./node_modules/.bin/mocha-phantomjs \
+ --R ${REPORTER} \
+ ./test/browser/index.html
+
+test-cov: lib-cov
+ @queue_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
+
+lib-cov: clean
+ @jscoverage lib lib-cov
+
+clean:
+ @rm -rf lib-cov
+ @rm -f coverage.html
+ @rm -rf build
+ @rm -rf components
+
+.PHONY: test lib-cov test-cov clean
41 README.md
@@ -0,0 +1,41 @@
+# breeze-queue
+
+> Throttled parallel function invocation.
+
+### Installation
+
+#### Node.js
+
+`breeze-queue` is available on [npm](http://npmjs.org).
+
+ $ npm install breeze-queue
+
+#### Component
+
+`breeze-queue` is available as a [component](https://github.com/component/component).
+
+ $ component install qualiancy/breeze-queue
+
+#### License
+
+(The MIT License)
+
+Copyright (c) 2012 Jake Luer <jake@qualiancy.com> (http://qualiancy.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
15 component.json
@@ -0,0 +1,15 @@
+{
+ "name": "breeze-queue"
+ , "repo": "qualiancy/breeze-queue"
+ , "version": "0.0.0"
+ , "description": "Throttled parallel function invocation."
+ , "license": "MIT"
+ , "keywords": [
+ ]
+ , "main": "lib/queue.js"
+ , "scripts": [
+ "lib/queue.js"
+ ]
+ , "dependencies": {}
+ , "development": {}
+}
3  index.js
@@ -0,0 +1,3 @@
+module.exports = process.env.queue_COV
+ ? require('./lib-cov/queue')
+ : require('./lib/queue');
2  lib/queue.js
@@ -0,0 +1,2 @@
+
+exports.version = '0.0.0';
28 package.json
@@ -0,0 +1,28 @@
+{
+ "name": "breeze-queue"
+ , "version": "0.0.0"
+ , "description": "Throttled parallel function invocation."
+ , "author": "Jake Luer <jake@qualiancy.com> (http://qualiancy.com)"
+ , "license": "MIT"
+ , "keywords": [
+ ]
+ , "repository": {
+ "type": "git"
+ , "url": "git@github.com:qualiancy/breeze-queue.git"
+ }
+ , "engines": {
+ "node": "*"
+ }
+ , "main": "./index"
+ , "scripts": {
+ "test": "make test"
+ }
+ , "dependencies": {
+ }
+ , "devDependencies": {
+ "chai": "*"
+ , "component": "*"
+ , "mocha": "*"
+ , "mocha-phantomjs": "*"
+ }
+}
35 test/bootstrap/index.js
@@ -0,0 +1,35 @@
+/*!
+ * Attach chai to global should
+ */
+
+global.chai = require('chai');
+global.should = global.chai.should();
+
+/*!
+ * Chai Plugins
+ */
+
+//global.chai.use(require('chai-spies'));
+//global.chai.use(require('chai-http'));
+
+/*!
+ * Import project
+ */
+
+global.queue = require('../..');
+
+/*!
+ * Helper to load internals for cov unit tests
+ */
+
+function req (name) {
+ return process.env.queue_COV
+ ? require('../../lib-cov/queue/' + name)
+ : require('../../lib/queue/' + name);
+}
+
+/*!
+ * Load unexposed modules for unit tests
+ */
+
+global.__queue = {};
27 test/browser/index.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Browser Tests (breeze-queue)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <link rel="stylesheet" href="../../node_modules/mocha/mocha.css" />
+ <script src="../../node_modules/mocha/mocha.js"></script>
+ <script src="../../node_modules/chai/chai.js"></script>
+ <script>
+ mocha.setup('bdd')
+ var should = chai.should();
+ </script>
+ <script src="../../build/build.js"></script>
+ <script>
+ queue = require('breeze-queue');
+ </script>
+ <!-- <script src="../test.js"></script> -->
+ <script>onload = function () {
+ if (window.mochaPhantomJS) mochaPhantomJS.run()
+ else mocha.run();
+ }
+ </script>
+ </head>
+ <body>
+ <div id="mocha"></div>
+ </body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.