Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
feather
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
feather
Commits
5d6c7d21
Commit
5d6c7d21
authored
Jul 03, 2017
by
Cole Bemis
Committed by
Cole Bemis
Jul 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Add script to build `dist/icons` directory
parent
998b2e9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
Makefile
Makefile
+6
-1
build-svgs.js
bin/build-svgs.js
+13
-0
No files found.
Makefile
View file @
5d6c7d21
...
...
@@ -8,7 +8,7 @@ all: lint build
lint
:
dist/icons.json
./node_modules/.bin/eslint .
build
:
dist/feather.js dist/feather.min.js
build
:
dist/feather.js dist/feather.min.js
dist/icons
node_modules
:
npm
install
...
...
@@ -24,3 +24,8 @@ dist/feather.js: dist/icons.json $(src_dir) $(src_files)
dist/feather.min.js
:
dist/icons.json $(src_dir) $(src_files)
./node_modules/.bin/webpack
--output-filename
feather.min.js
-p
dist/icons
:
dist/icons.json
rm
-rf
dist/icons
mkdir
-p
dist/icons
./node_modules/.bin/babel-node bin/build-svgs.js
bin/build-svgs.js
0 → 100644
View file @
5d6c7d21
/**
* @file Builds `dist/icons` directory.
*/
import
fs
from
'
fs
'
;
import
path
from
'
path
'
;
import
{
icons
,
toSvg
}
from
'
../src
'
;
Object
.
keys
(
icons
).
forEach
(
icon
=>
{
const
svg
=
toSvg
(
icon
);
fs
.
writeFileSync
(
path
.
resolve
(
__dirname
,
`../dist/icons/
${
icon
}
.svg`
),
svg
);
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment