File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "presets" : [" es2015" ],
3+ "sourceMaps" : true
4+ }
Original file line number Diff line number Diff line change 1+ {
2+ "parserOptions": {
3+ "ecmaVersion": 6,
4+ "sourceType": "module"
5+ },
6+ "parser": "babel-eslint",
7+ "env": {
8+ "browser": true,
9+ "node": true
10+ },
11+ "rules": {
12+ "no-console": 0
13+ },
14+ "extends": "eslint:recommended"
15+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1-
21# get Makefile directory name: http://stackoverflow.com/a/5982798/376773
32THIS_MAKEFILE_PATH: =$(word $(words $(MAKEFILE_LIST ) ) ,$(MAKEFILE_LIST ) )
43THIS_DIR: =$(shell cd $(dir $(THIS_MAKEFILE_PATH ) ) ;pwd)
54
65# BIN directory
76BIN := $(THIS_DIR ) /node_modules/.bin
87
8+ # Path
9+ PATH := node_modules/.bin:$(PATH )
10+ SHELL := /bin/bash
11+
912# applications
1013NODE ?= $(shell which node)
1114YARN ?= $(shell which yarn)
1215PKG ?= $(if $(YARN ) ,$(YARN ) ,$(NODE ) $(shell which npm) )
1316BROWSERIFY ?= $(NODE ) $(BIN ) /browserify
1417
18+ .FORCE :
19+
1520all : dist/debug.js
1621
1722install : node_modules
@@ -33,5 +38,11 @@ distclean: clean
3338node_modules : package.json
3439 @NODE_ENV= $(PKG ) install
3540 @touch node_modules
41+
42+ lint : .FORCE
43+ eslint debug.js
44+
45+ test : .FORCE
46+ mocha
3647
3748.PHONY : all install clean distclean
Original file line number Diff line number Diff line change @@ -28,12 +28,6 @@ exports.skips = [];
2828
2929exports . formatters = { } ;
3030
31- /**
32- * Previously assigned color.
33- */
34-
35- var prevColor = 0 ;
36-
3731/**
3832 * Previous log timestamp.
3933 */
Original file line number Diff line number Diff line change 2121 "ms" : " 0.7.2"
2222 },
2323 "devDependencies" : {
24+ "babel" : " ^6.5.2" ,
25+ "babel-eslint" : " ^7.1.1" ,
26+ "babel-polyfill" : " ^6.20.0" ,
27+ "babel-preset-es2015" : " ^6.18.0" ,
28+ "babel-register" : " ^6.18.0" ,
29+ "babel-runtime" : " ^6.20.0" ,
2430 "browserify" : " 9.0.3" ,
25- "mocha" : " *"
31+ "chai" : " ^3.5.0" ,
32+ "eslint" : " ^3.12.1" ,
33+ "eslint-plugin-babel" : " ^4.0.0" ,
34+ "mocha" : " ^3.2.0" ,
35+ "sinon" : " ^1.17.6"
2636 },
2737 "main" : " ./index.js" ,
2838 "browser" : " ./browser.js" ,
Original file line number Diff line number Diff line change 1+ import { expect } from 'chai' ;
2+
3+ import debug from '../index' ;
4+
5+ describe ( 'debug' , ( ) => {
6+ describe ( 'sanity check' , ( ) => {
7+ it ( 'passes' , ( ) => {
8+ const log = debug ( 'test' ) ;
9+ log ( 'hello world' ) ;
10+ } ) ;
11+ } ) ;
12+ } )
Original file line number Diff line number Diff line change 1+ --compilers js:babel-register
You can’t perform that action at this time.
0 commit comments