feather/bin/build.sh

26 lines
507 B
Bash
Raw Normal View History

#!/bin/bash
2018-04-02 02:26:54 +03:00
# Process SVG files
2018-05-19 02:34:26 +03:00
npx babel-node bin/process-svgs.js
2018-04-02 02:26:54 +03:00
# Create dist directory
2018-05-19 02:34:26 +03:00
npx rimraf dist
mkdir dist
2018-04-02 02:26:54 +03:00
# Build icons.json
2018-05-19 02:34:26 +03:00
npx babel-node bin/build-icons-json.js
2018-04-02 02:26:54 +03:00
# Build SVG sprite
2018-05-19 02:34:26 +03:00
npx babel-node bin/build-sprite.js
2018-04-02 02:26:54 +03:00
# Create dist/icons directory
2018-05-19 02:34:26 +03:00
npx rimraf dist/icons
mkdir dist/icons
2018-04-02 02:26:54 +03:00
# Build SVG icons
2018-05-19 02:34:26 +03:00
npx babel-node bin/build-svgs.js
2018-04-02 02:26:54 +03:00
# Build JavaScript library
2018-05-19 02:34:26 +03:00
npx webpack --output-filename feather.js --mode development
npx webpack --output-filename feather.min.js --mode production