Commit 873c5041 authored by Cole Bemis's avatar Cole Bemis

Refactor build process

parent 31337f00
......@@ -4,6 +4,7 @@ exclude:
- CHANGELOG.md
- ISSUE_TEMPLATE.md
- LICENSE
- node_modules
- bin
- sandbox
- stash
#!/usr/bin/env bash
cd ./icons
numFiles=$(ls -1 *.svg | wc -l)
count=0
echo [
for icon in $(ls *.svg)
do
count=$((count + 1))
echo -n " "\"${icon%.svg}\"
(($count == $numFiles)) && echo "" || echo ,
done
echo ]
#!/usr/bin/env bash
./bin/make-manifest.sh > manifest.json
./bin/make-zip.sh
jekyll build
#!/usr/bin/env bash
cd ./icons
n=$(ls -1 | wc -l)
m=0
echo "["
for i in $(ls -1 *.svg | cut -d '.' -f 1 )
do
m=$((m + 1))
echo -n " "\"$i\"
[ "$m" == $n ] && echo "" || echo ","
done
echo "]"
......@@ -7,12 +7,11 @@
"url": "https://github.com/colebemis/feather.git"
},
"scripts": {
"start": "parallelshell 'jekyll serve' 'npm run watch'",
"watch": "onchange 'icons/**/*' 'package.json' -v -i -- npm run make",
"build": "npm run make && jekyll build",
"make": "npm run make:manifest && npm run make:zip",
"make:manifest": "./bin/make-manifest.sh > manifest.json",
"make:zip": "./bin/make-zip.sh"
"start": "npm run build:manifest && parallelshell 'jekyll serve' 'npm run watch'",
"watch": "onchange 'icons/**/*' -v -- npm run build:manifest",
"build": "npm run build:manifest && npm run build:zip && jekyll build",
"build:manifest": "./bin/build-manifest.sh > manifest.json",
"build:zip": "./bin/build-zip.sh"
},
"license": "MIT",
"devDependencies": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment