feather/bin/build.sh

26 lines
635 B
Bash
Raw Normal View History

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