Skip to content

Commit cac2047

Browse files
committed
Add makefile
1 parent 931845e commit cac2047

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.eslintrc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": ["eslint:recommended", "plugin:react/recommended"],
3+
"parser": "babel-eslint",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module",
7+
"ecmaFeatures": {
8+
"jsx": true
9+
}
10+
},
11+
"plugins": [
12+
"react"
13+
],
14+
"env": {
15+
"browser": true,
16+
"es6": true
17+
},
18+
"rules": {
19+
"no-console": "off"
20+
}
21+
}

Makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
NODE_MODULES ?= ./node_modules
2+
JS_SENTINAL ?= $(NODE_MODULES)/sentinal
3+
4+
$(JS_SENTINAL): package.json
5+
rm -rf $(NODE_MODULES)
6+
npm install
7+
touch $(JS_SENTINAL)
8+
9+
eslint: $(JS_SENTINAL)
10+
npm run eslint
11+
12+
test: $(JS_SENTINAL)
13+
npm run test
14+
15+
dev: $(JS_SENTINAL)
16+
./node_modules/.bin/webpack --mode development --watch
17+
18+
build: $(JS_SENTINAL)
19+
./node_modules/.bin/webpack --mode production
20+
21+
clean:
22+
rm -rf $(NODE_MODULES) dist/*.js
23+
24+
.PHONY: clean

0 commit comments

Comments
 (0)