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
ef3e69b3
Commit
ef3e69b3
authored
7 years ago
by
Cole Bemis
Committed by
Cole Bemis
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Build js files with webpack
parent
71f502fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
0 deletions
+41
-0
Makefile
Makefile
+15
-0
package.json
package.json
+1
-0
webpack.config.babel.js
webpack.config.babel.js
+25
-0
No files found.
Makefile
View file @
ef3e69b3
src_files
:=
src/
*
.js
src_dir
:=
src
.PHONY
:
all build
all
:
build
build
:
dist/feather.js dist/feather.min.js
node_modules
:
node_modules
:
npm
install
npm
install
...
@@ -6,3 +15,9 @@ dist:
...
@@ -6,3 +15,9 @@ dist:
dist/icons.json
:
node_modules dist icons icons/*.svg
dist/icons.json
:
node_modules dist icons icons/*.svg
./node_modules/.bin/babel-node bin/build-json.js
./node_modules/.bin/babel-node bin/build-json.js
dist/feather.js
:
dist/icons.json $(src_dir) $(src_files)
./node_modules/.bin/webpack
--output-filename
feather.js
dist/feather.min.js
:
dist/icons.json $(src_dir) $(src_files)
./node_modules/.bin/webpack
--output-filename
feather.min.js
-p
This diff is collapsed.
Click to expand it.
package.json
View file @
ef3e69b3
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
"dist"
"dist"
],
],
"scripts"
:
{
"scripts"
:
{
"build"
:
"make build"
,
"commitmsg"
:
"validate-commit-msg"
,
"commitmsg"
:
"validate-commit-msg"
,
"cm"
:
"git-cz"
,
"cm"
:
"git-cz"
,
"semantic-release"
:
"semantic-release pre && npm publish && semantic-release post"
"semantic-release"
:
"semantic-release pre && npm publish && semantic-release post"
...
...
This diff is collapsed.
Click to expand it.
webpack.config.babel.js
0 → 100644
View file @
ef3e69b3
import
path
from
'
path
'
;
export
default
{
entry
:
[
'
core-js/fn/array/from
'
,
'
core-js/fn/object/assign
'
,
'
core-js/fn/set
'
,
path
.
resolve
(
__dirname
,
'
src/index.js
'
),
],
output
:
{
path
:
path
.
resolve
(
__dirname
,
'
dist
'
),
libraryTarget
:
'
umd
'
,
library
:
'
feather
'
,
},
devtool
:
'
source-map
'
,
module
:
{
rules
:
[
{
test
:
/
\.
js$/
,
loader
:
'
babel-loader
'
,
exclude
:
/node_modules/
,
},
],
},
};
This diff is collapsed.
Click to expand it.
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