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+ src_files := src/*.js
2+ src_dir := src
3+
4+ .PHONY : all build
5+
6+ all : build
7+
8+ build : dist/feather.js dist/feather.min.js
9+
110node_modules :
211 npm install
312
615
716dist/icons.json : node_modules dist icons icons/* .svg
817 ./node_modules/.bin/babel-node bin/build-json.js
18+
19+ dist/feather.js : dist/icons.json $(src_dir ) $(src_files )
20+ ./node_modules/.bin/webpack --output-filename feather.js
21+
22+ dist/feather.min.js : dist/icons.json $(src_dir ) $(src_files )
23+ ./node_modules/.bin/webpack --output-filename feather.min.js -p
Original file line number Diff line number Diff line change 77 " dist"
88 ],
99 "scripts" : {
10+ "build" : " make build" ,
1011 "commitmsg" : " validate-commit-msg" ,
1112 "cm" : " git-cz" ,
1213 "semantic-release" : " semantic-release pre && npm publish && semantic-release post"
Original file line number Diff line number Diff line change 1+ import path from 'path' ;
2+
3+ export default {
4+ entry : [
5+ 'core-js/fn/array/from' ,
6+ 'core-js/fn/object/assign' ,
7+ 'core-js/fn/set' ,
8+ path . resolve ( __dirname , 'src/index.js' ) ,
9+ ] ,
10+ output : {
11+ path : path . resolve ( __dirname , 'dist' ) ,
12+ libraryTarget : 'umd' ,
13+ library : 'feather' ,
14+ } ,
15+ devtool : 'source-map' ,
16+ module : {
17+ rules : [
18+ {
19+ test : / \. j s $ / ,
20+ loader : 'babel-loader' ,
21+ exclude : / n o d e _ m o d u l e s / ,
22+ } ,
23+ ] ,
24+ } ,
25+ } ;
You can’t perform that action at this time.
0 commit comments