Skip to content

Commit fe119d4

Browse files
committed
Refactor build script
1 parent 8d48d1a commit fe119d4

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

bin/build-zip.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#!/usr/bin/env bash
22

3-
# find and store current version number
4-
version=$(grep '"version"' package.json | cut -d '"' -f4)
5-
6-
# compress 'icons' directory into feather-[version].zip
7-
zip -r feather.zip ./icons/
3+
# compress 'icons' directory into feather.zip
4+
zip -r -j feather.zip ./node_modules/feather-icons/dist/icons/

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
{
2-
"name": "feather-icons",
2+
"name": "feather",
33
"version": "0.0.0",
44
"description": "Simply beautiful open source icons",
55
"scripts": {
6+
"prebuild": "./bin/build-zip.sh",
7+
"build": "jekyll build"
68
},
79
"repository": {
810
"type": "git",
911
"url": "https://github.com/colebemis/feather.git"
1012
},
1113
"author": "Cole Bemis <cole@colebemis.com> (http://colebemis.com)",
12-
"license": "MIT"
14+
"license": "MIT",
15+
"dependencies": {
16+
"feather-icons": "^3.0.0"
17+
}
1318
}

0 commit comments

Comments
 (0)