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
76f29d85
Commit
76f29d85
authored
May 17, 2018
by
Cole Bemis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Disable some eslint rules in /bin
parent
23b17b9c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
7 deletions
+13
-7
.eslintrc.json
bin/.eslintrc.json
+6
-0
build-icons-json.js
bin/build-icons-json.js
+1
-1
build-icons-object.js
bin/build-icons-object.js
+0
-1
build-sprite.js
bin/build-sprite.js
+1
-1
build-svgs.js
bin/build-svgs.js
+1
-1
process-svg.js
bin/process-svg.js
+0
-1
process-svgs.js
bin/process-svgs.js
+1
-1
sync-algolia.js
bin/sync-algolia.js
+3
-1
No files found.
bin/.eslintrc.json
0 → 100644
View file @
76f29d85
{
"rules"
:
{
"import/no-extraneous-dependencies"
:
"off"
,
"no-console"
:
"off"
}
}
bin/build-icons-json.js
View file @
76f29d85
...
...
@@ -6,7 +6,7 @@ import buildIconsObject from './build-icons-object';
const
IN_DIR
=
path
.
resolve
(
__dirname
,
'
../icons
'
);
const
OUT_FILE
=
path
.
resolve
(
__dirname
,
'
../dist/icons.json
'
);
console
.
log
(
`Building
${
OUT_FILE
}
`
);
// eslint-disable-line no-console
console
.
log
(
`Building
${
OUT_FILE
}
`
);
const
svgFiles
=
fs
.
readdirSync
(
IN_DIR
)
...
...
bin/build-icons-object.js
View file @
76f29d85
/* eslint-disable import/no-extraneous-dependencies */
import
path
from
'
path
'
;
import
cheerio
from
'
cheerio
'
;
import
{
minify
}
from
'
html-minifier
'
;
...
...
bin/build-sprite.js
View file @
76f29d85
...
...
@@ -5,6 +5,6 @@ import buildSpriteString from './build-sprite-string';
const
OUT_FILE
=
path
.
resolve
(
__dirname
,
'
../dist/feather-sprite.svg
'
);
console
.
log
(
`Building
${
OUT_FILE
}
`
);
// eslint-disable-line no-console
console
.
log
(
`Building
${
OUT_FILE
}
`
);
fs
.
writeFileSync
(
OUT_FILE
,
buildSpriteString
(
icons
));
bin/build-svgs.js
View file @
76f29d85
...
...
@@ -4,7 +4,7 @@ import icons from '../src/icons';
const
OUT_DIR
=
path
.
resolve
(
__dirname
,
'
../dist/icons
'
);
console
.
log
(
`Building SVGs in
${
OUT_DIR
}
`
);
// eslint-disable-line no-console
console
.
log
(
`Building SVGs in
${
OUT_DIR
}
`
);
Object
.
keys
(
icons
).
forEach
(
name
=>
{
const
svg
=
icons
[
name
].
toSvg
();
...
...
bin/process-svg.js
View file @
76f29d85
/* eslint-disable import/no-extraneous-dependencies */
import
Svgo
from
'
svgo
'
;
import
cheerio
from
'
cheerio
'
;
import
{
format
}
from
'
prettier
'
;
...
...
bin/process-svgs.js
View file @
76f29d85
...
...
@@ -5,7 +5,7 @@ import processSvg from './process-svg';
const
IN_DIR
=
path
.
resolve
(
__dirname
,
'
../icons
'
);
console
.
log
(
`Processing SVGs in
${
IN_DIR
}
`
);
// eslint-disable-line no-console
console
.
log
(
`Processing SVGs in
${
IN_DIR
}
`
);
fs
.
readdirSync
(
IN_DIR
)
...
...
bin/sync-algolia.js
View file @
76f29d85
/* eslint-disable import/no-extraneous-dependencies */
import
algolia
from
'
algoliasearch
'
;
import
icons
from
'
../dist/icons.json
'
;
import
tags
from
'
../src/tags.json
'
;
...
...
@@ -9,7 +8,10 @@ if (
process
.
env
.
TRAVIS_PULL_REQUEST
===
'
false
'
&&
process
.
env
.
TRAVIS_BRANCH
===
'
master
'
)
{
console
.
log
(
'
Syncing Algolia records
'
);
syncAlgolia
();
}
else
{
console
.
log
(
'
Skipped Algolia sync
'
);
}
function
syncAlgolia
()
{
...
...
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