Refactor build script

This commit is contained in:
Cole Bemis 2017-07-08 01:15:10 -07:00
parent 8d48d1a7ad
commit fe119d4f41
2 changed files with 9 additions and 7 deletions

View File

@ -1,7 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# find and store current version number # compress 'icons' directory into feather.zip
version=$(grep '"version"' package.json | cut -d '"' -f4) zip -r -j feather.zip ./node_modules/feather-icons/dist/icons/
# compress 'icons' directory into feather-[version].zip
zip -r feather.zip ./icons/

View File

@ -1,13 +1,18 @@
{ {
"name": "feather-icons", "name": "feather",
"version": "0.0.0", "version": "0.0.0",
"description": "Simply beautiful open source icons", "description": "Simply beautiful open source icons",
"scripts": { "scripts": {
"prebuild": "./bin/build-zip.sh",
"build": "jekyll build"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/colebemis/feather.git" "url": "https://github.com/colebemis/feather.git"
}, },
"author": "Cole Bemis <cole@colebemis.com> (http://colebemis.com)", "author": "Cole Bemis <cole@colebemis.com> (http://colebemis.com)",
"license": "MIT" "license": "MIT",
"dependencies": {
"feather-icons": "^3.0.0"
}
} }