Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switching to makefile

  • Loading branch information...
commit b405063c90e0c3b2956576666497c49ea5a30ac5 1 parent 1ade932
@serby serby authored
Showing with 12 additions and 35 deletions.
  1. +0 −35 Cakefile
  2. +12 −0 Makefile
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 './node_modules/.bin/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
12 Makefile
@@ -0,0 +1,12 @@
+test:
+ @./node_modules/.bin/mocha \
+ -r should \
+ -R spec
+
+lint-changed:
+ @jshint `git status --porcelain | sed -e "s/^...//g"`
+
+lint:
+ @jshint lib test
+
+.PHONY: test lint lint-changed
Please sign in to comment.
Something went wrong with that request. Please try again.