Last active
August 29, 2015 13:58
-
-
Save tony612/10107294 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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