Skip to content
Browse files

Begrudging transcendence from cake to make

  • Loading branch information...
1 parent 3932644 commit 4a5a15556b580dd34dd5e65948fe707f1ef056a0 @serby committed
Showing with 12 additions and 32 deletions.
  1. +0 −32 Cakefile
  2. +12 −0 Makefile
View
32 Cakefile
@@ -1,32 +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 '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

0 comments on commit 4a5a155

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