Skip to content

Instantly share code, notes, and snippets.

@tony612
Last active August 29, 2015 13:58
Show Gist options
  • Select an option

  • Save tony612/10107294 to your computer and use it in GitHub Desktop.

Select an option

Save tony612/10107294 to your computer and use it in GitHub Desktop.
$ mkdie foo
$ cd foo
$ git init
$ npm init
$ atom Makefile
compile:
coffee --compile --output lib src
test: compile
mocha
package: test
npm pack
.PHONY: compile test package
$ atom package.json
// change main to right path
$ npm install mocha -g --save-dev
$ npm install chai --save-dev
$ mkdir test
$ atom test/mocha.opts
--require test/helper
--reporter spec
--compilers coffee:coffee-script/register
$ atom test/helper.coffee
global.expect = require("chai").expect
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment