build: Use npx in build script

This commit is contained in:
Cole Bemis 2018-05-18 16:34:26 -07:00
parent 2ee03d261c
commit 0d65b5761b
2 changed files with 8 additions and 9 deletions

View File

@ -1,25 +1,25 @@
#!/bin/bash
# Process SVG files
./node_modules/.bin/babel-node bin/process-svgs.js
npx babel-node bin/process-svgs.js
# Create dist directory
./node_modules/.bin/rimraf dist
npx rimraf dist
mkdir dist
# Build icons.json
./node_modules/.bin/babel-node bin/build-icons-json.js
npx babel-node bin/build-icons-json.js
# Build SVG sprite
./node_modules/.bin/babel-node bin/build-sprite.js
npx babel-node bin/build-sprite.js
# Create dist/icons directory
./node_modules/.bin/rimraf dist/icons
npx rimraf dist/icons
mkdir dist/icons
# Build SVG icons
./node_modules/.bin/babel-node bin/build-svgs.js
npx babel-node bin/build-svgs.js
# Build JavaScript library
./node_modules/.bin/webpack --output-filename feather.js --mode development
./node_modules/.bin/webpack --output-filename feather.min.js --mode production
npx webpack --output-filename feather.js --mode development
npx webpack --output-filename feather.min.js --mode production

View File

@ -53,7 +53,6 @@
"lint-staged": "^6.0.0",
"npm-run-all": "^4.1.2",
"prettier": "^1.8.2",
"rimraf": "^2.6.2",
"semantic-release": "^12.2.2",
"svgo": "^0.7.2",
"webpack": "^4.8.3",