Create a gist now

Instantly share code, notes, and snippets.

@mklabs /Makefile
Last active Aug 26, 2017

What would you like to do?
node makefile - babel / eslint / mocha / watch
mocha test/
babel lib/ -d src/
eslint .
build: babel test lint
watchd lib/**/*.js test/**/* bin/* -c 'bake build'
all: build watch
"name": "foo",
"version": "1.0.0",
"description": "",
"main": "src/index.js",
"scripts": {
"test": "mocha test",
"babel": "babel lib/ -d src",
"lint": "eslint .",
"build": "npm run babel && npm run test && npm run lint",
"watch": "watchd lib/**/*.js test/**/* bin/* -c 'npm run build'"
"devDependencies": {
"babel-cli": "^6.7.7",
"babel-preset-es2015": "^6.6.0",
"eslint": "^2.8.0",
"mocha": "^2.4.5",
"watchd": "github:mklabs/watchd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment