Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
pro-blocks
Commits
a8f2892d
Commit
a8f2892d
authored
Dec 17, 2018
by
Yanick Landry
Committed by
陈帅
Dec 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added less files and config files to the prettier script (#3154)
parent
10234143
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
scripts/prettier.js
scripts/prettier.js
+4
-0
No files found.
scripts/prettier.js
View file @
a8f2892d
...
...
@@ -16,8 +16,12 @@ let didError = false;
let
files
=
[];
const
jsFiles
=
glob
.
sync
(
'
src/**/*.js*
'
,
{
ignore
:
[
'
**/node_modules/**
'
,
'
build/**
'
]
});
const
tsFiles
=
glob
.
sync
(
'
src/**/*.ts*
'
,
{
ignore
:
[
'
**/node_modules/**
'
,
'
build/**
'
]
});
const
configFiles
=
glob
.
sync
(
'
config/**/*.js*
'
,
{
ignore
:
[
'
**/node_modules/**
'
,
'
build/**
'
]
});
const
lessFiles
=
glob
.
sync
(
'
src/**/*.less*
'
,
{
ignore
:
[
'
**/node_modules/**
'
,
'
build/**
'
]
});
files
=
files
.
concat
(
jsFiles
);
files
=
files
.
concat
(
tsFiles
);
files
=
files
.
concat
(
configFiles
);
files
=
files
.
concat
(
lessFiles
);
if
(
!
files
.
length
)
{
return
;
}
...
...
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