mirror of
https://github.com/feathericons/feather.git
synced 2023-08-10 21:13:24 +03:00
build: Use npx in build script
This commit is contained in:
parent
2ee03d261c
commit
0d65b5761b
16
bin/build.sh
16
bin/build.sh
@ -1,25 +1,25 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Process SVG files
|
# Process SVG files
|
||||||
./node_modules/.bin/babel-node bin/process-svgs.js
|
npx babel-node bin/process-svgs.js
|
||||||
|
|
||||||
# Create dist directory
|
# Create dist directory
|
||||||
./node_modules/.bin/rimraf dist
|
npx rimraf dist
|
||||||
mkdir dist
|
mkdir dist
|
||||||
|
|
||||||
# Build icons.json
|
# Build icons.json
|
||||||
./node_modules/.bin/babel-node bin/build-icons-json.js
|
npx babel-node bin/build-icons-json.js
|
||||||
|
|
||||||
# Build SVG sprite
|
# Build SVG sprite
|
||||||
./node_modules/.bin/babel-node bin/build-sprite.js
|
npx babel-node bin/build-sprite.js
|
||||||
|
|
||||||
# Create dist/icons directory
|
# Create dist/icons directory
|
||||||
./node_modules/.bin/rimraf dist/icons
|
npx rimraf dist/icons
|
||||||
mkdir dist/icons
|
mkdir dist/icons
|
||||||
|
|
||||||
# Build SVG icons
|
# Build SVG icons
|
||||||
./node_modules/.bin/babel-node bin/build-svgs.js
|
npx babel-node bin/build-svgs.js
|
||||||
|
|
||||||
# Build JavaScript library
|
# Build JavaScript library
|
||||||
./node_modules/.bin/webpack --output-filename feather.js --mode development
|
npx webpack --output-filename feather.js --mode development
|
||||||
./node_modules/.bin/webpack --output-filename feather.min.js --mode production
|
npx webpack --output-filename feather.min.js --mode production
|
||||||
|
@ -53,7 +53,6 @@
|
|||||||
"lint-staged": "^6.0.0",
|
"lint-staged": "^6.0.0",
|
||||||
"npm-run-all": "^4.1.2",
|
"npm-run-all": "^4.1.2",
|
||||||
"prettier": "^1.8.2",
|
"prettier": "^1.8.2",
|
||||||
"rimraf": "^2.6.2",
|
|
||||||
"semantic-release": "^12.2.2",
|
"semantic-release": "^12.2.2",
|
||||||
"svgo": "^0.7.2",
|
"svgo": "^0.7.2",
|
||||||
"webpack": "^4.8.3",
|
"webpack": "^4.8.3",
|
||||||
|
Loading…
Reference in New Issue
Block a user