2017-07-04 01:06:40 +03:00
|
|
|
src_files := src/*.js
|
|
|
|
src_dir := src
|
|
|
|
|
2017-07-04 01:19:31 +03:00
|
|
|
.PHONY: all lint build
|
2017-07-04 01:06:40 +03:00
|
|
|
|
2017-07-04 01:19:31 +03:00
|
|
|
all: lint build
|
|
|
|
|
|
|
|
lint: dist/icons.json
|
|
|
|
./node_modules/.bin/eslint .
|
2017-07-04 01:06:40 +03:00
|
|
|
|
|
|
|
build: dist/feather.js dist/feather.min.js
|
|
|
|
|
2017-07-04 00:44:19 +03:00
|
|
|
node_modules:
|
|
|
|
npm install
|
|
|
|
|
|
|
|
dist:
|
|
|
|
mkdir dist
|
|
|
|
|
|
|
|
dist/icons.json: node_modules dist icons icons/*.svg
|
|
|
|
./node_modules/.bin/babel-node bin/build-json.js
|
2017-07-04 01:06:40 +03:00
|
|
|
|
|
|
|
dist/feather.js: dist/icons.json $(src_dir) $(src_files)
|
|
|
|
./node_modules/.bin/webpack --output-filename feather.js
|
|
|
|
|
|
|
|
dist/feather.min.js: dist/icons.json $(src_dir) $(src_files)
|
|
|
|
./node_modules/.bin/webpack --output-filename feather.min.js -p
|