Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed Cakefile

  • Loading branch information...
commit 486311824dde3fca04e4fa4f83e30c3947a7ab31 1 parent c542c37
@tj authored
Showing with 32 additions and 56 deletions.
  1. +0 −35 Cakefile
  2. +10 −0 Makefile
  3. +22 −21 package.json
View
35 Cakefile
@@ -1,35 +0,0 @@
-fs = require 'fs'
-exec = (command, callback) ->
- console.log 'Excecuting \'' + command + '\''
- require('child_process').exec command, callback
-
-option '-f', '--file [FILE]', 'Use file in task'
-
-task 'delintAll', 'Runs jshint on all js code', (options) ->
-
- paths = 'lib test'
- if options.file
- paths = options.file
-
- exec 'jshint ' + paths, execOutput
-
-task 'delint', 'Runs all modified or added files through jshint', (options) ->
- exec 'jshint `git status --porcelain | sed -e "s/^...//g"`', execOutput
-
-task 'test', 'Runs all unit tests', (options) ->
- exec 'mocha -r should -R List ', execOutput
-
-task 'npm-publish', 'Creates a tag based on version number in package.json then pushes and publishes to NPM', (options) ->
- version = JSON.parse(fs.readFileSync('./package.json')).version
- log 'Publishing ' + version
- exec 'git tag ' + version, execOutput
- exec 'git push --tags', execOutput
- exec 'npm publish', execOutput
-
-execOutput = (error, stout, sterr) ->
- if sterr
- console.warn sterr
- if stout
- console.log stout
-
-log = console.log
View
10 Makefile
@@ -0,0 +1,10 @@
+
+test:
+ @./node_modules/.bin/mocha \
+ -r should \
+ -R list
+
+lint:
+ @jshint index.js
+
+.PHONY: test lint
View
43 package.json
@@ -1,23 +1,24 @@
{
- "author": "Paul Serby <paul@serby.net>",
- "name": "versionator",
- "description": "Static content versioning middleware for connect and express.",
- "version": "0.0.2",
- "repository": {
- "type": "git",
- "url": "git@github.com:serby/versionator.git"
- },
- "main": "index.js",
- "scripts": {
- "test": "mocha -r should -R List "
- },
- "engines": {
- "node": ">0.4.0"
- },
- "dependencies": {},
- "devDependencies": {
- "connect": ">= 1.0.0",
- "should": ">= 0.3.0",
- "request": "> 2.1.0"
- }
+ "author": "Paul Serby <paul@serby.net>",
+ "name": "versionator",
+ "description": "Static content versioning middleware for connect and express.",
+ "version": "0.0.2",
+ "repository": {
+ "type": "git",
+ "url": "git@github.com:serby/versionator.git"
+ },
+ "main": "index.js",
+ "scripts": {
+ "test": "mocha -r should -R List "
+ },
+ "engines": {
+ "node": ">0.4.0"
+ },
+ "dependencies": {},
+ "devDependencies": {
+ "mocha": "*",
+ "connect": ">= 1.0.0",
+ "should": ">= 0.3.0",
+ "request": "> 2.1.0"
+ }
}

3 comments on commit 4863118

@alexyoung

I lol'd

@serby

My poor Cakefile got properly TJ'ed!

:p

@tj
Owner
tj commented on 4863118

hehe :D

Please sign in to comment.
Something went wrong with that request. Please try again.