Permalink
Browse files

Initial commit.

  • Loading branch information...
jprichardson committed Jun 28, 2012
0 parents commit 200e75f6356e183517192b1a887c16979bad8178
@@ -0,0 +1 @@
+node_modules/
No changes.
@@ -0,0 +1,44 @@
+{spawn} = require('child_process')
+testutil = require('testutil')
+
+if process.platform is 'darwin'
+ growl = require('growl')
+
+option '-g', '--grep [PATTERN]', 'only run tests matching <pattern>'
+
+task 'build', 'build lib/ from src/', ->
+ coffee = spawn 'coffee', ['-c', '-o', 'lib', 'src']
+ coffee.stderr.on 'data', (data) -> process.stderr.write data.toString()
+ coffee.stdout.on 'data', (data) -> process.stdout.write data.toString()
+ coffee.on 'exit', (code) ->
+ if code is 0
+ console.log 'Successfully built.'
+ else
+ console.log "Error building. Code: #{code}"
+
+task 'test', 'test project', (options) ->
+ process.env['NODE_ENV'] = 'testing'
+ testutil.fetchTestFiles './test', (files) ->
+ files.unshift '--colors'
+ if options.grep?
+ files.unshift options.grep
+ files.unshift '--grep'
+
+ mocha = spawn 'mocha', files#, customFds: [0..2]
+ mocha.stdout.pipe(process.stdout, end: false);
+ mocha.stderr.pipe(process.stderr, end: false);
+
+ task 'watch', 'Watch src/ for changes', ->
+ coffee = spawn 'coffee', ['-w', '-c', '-o', 'lib', 'src']
+ coffee.stderr.on 'data', (data) -> 'ERR: ' + process.stderr.write data.toString()
+ coffee.stdout.on 'data', (data) ->
+ d = data.toString()
+ if d.indexOf('compiled') > 0
+ #invoke 'test'
+ do (->)
+ else
+ if growl? then growl(d, title: 'Error', image: './resources/error.png')
+
+ process.stdout.write data.toString()
+
+ #mocha = spawn 'mocha', ['-w']
@@ -0,0 +1,10 @@
+Node.js - TriggerFlow
+==================
+
+A simple library used to conditionally trigger methods.
+
+Get off my lawn.
+
+MIT Licensed
+
+Copyright (c) 2012 JP Richardson

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

Oops, something went wrong.
@@ -0,0 +1,30 @@
+{
+ "author": "JP Richardson <jprichardson@gmail.com>",
+ "name": "triggerflow",
+ "description": "A simple library used to conditionally trigger methods.",
+ "version": "0.0.1",
+ "homepage": "https://github.com/jprichardson/node-triggerflow",
+ "keywords": ["trigger", "conditional", "condition", "conditions", "triggers", "event", "events"],
+ "repository": {
+ "type": "git",
+ "url": "git@github.com:jprichardson/node-triggerflow.git"
+ },
+ "main": "./lib/triggerflow.js",
+ "scripts": {
+ "test": "cake test"
+ },
+ "dependencies": {
+
+ },
+ "devDependencies": {
+ "test-util": "0.1.x",
+ "mocha": "1.0.x",
+ "growl": "1.5.x",
+ "fs-extra": "0.1.x",
+ "path-extra": "0.0.x"
+ },
+ "optionalDependencies": {},
+ "engines": {
+ "node": "*"
+ }
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
No changes.
@@ -0,0 +1,5 @@
+--reporter spec
+--ui bdd
+--growl
+--timeout 7000
+--compilers coffee:coffee-script
@@ -0,0 +1,6 @@
+tutil = require('testutil')
+next = require('../lib/nextflow')
+util = require('util')
+fs = require('fs-extra')
+path = require('path-extra')
+

0 comments on commit 200e75f

Please sign in to comment.