Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
ccbikai(👎🏻🍜)
8 years ago
Commit
e97159e5d38d37198a72f28404733911fdebe94a
1 parent
0f8c1b5a
stylelint support cache
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
.gitignore
lint-all.js
package.json
.gitignore
View file @
e97159e
...
...
@@ -147,6 +147,7 @@ public/build/dist/*
public/css/*
public/bundle/*
.eslintcache
.stylelintcache
*.log.*
nbproject/*
.DS_Store
...
...
lint-all.js
View file @
e97159e
...
...
@@ -17,5 +17,5 @@ jsfiles.forEach(function(filepath) {
cssfiles
.
forEach
(
function
(
filepath
)
{
console
.
log
(
`
CSS
$
{
filepath
}
检查结果:`
);
shelljs
.
exec
(
`
$
{
lintPath
.
css
}
$
{
ext
}
--
syntax
scss
--
config
.
stylelintrc
--
custom
-
formatter
.
/
node_modules
/
stylelint
-
formatter
-
table
/
index
.
js
"${filepath}"
`
);
// eslint-disable-line
shelljs
.
exec
(
`
$
{
lintPath
.
css
}
$
{
ext
}
--
syntax
scss
--
cache
--
config
.
stylelintrc
--
custom
-
formatter
.
/
node_modules
/
stylelint
-
formatter
-
table
/
index
.
js
"${filepath}"
`
);
// eslint-disable-line
});
...
...
package.json
View file @
e97159e
...
...
@@ -14,9 +14,9 @@
"build"
:
"webpack --config ./public/build/webpack.prod.config.js"
,
"debug"
:
"DEBUG=\"express:*\" nodemon -e js,hbs -i public/ app.js"
,
"lint-js"
:
"eslint -c .eslintrc --cache ."
,
"lint-css"
:
"stylelint --syntax scss --config .stylelintrc 'public/scss/**/*.css'"
,
"lint-css"
:
"stylelint --syntax scss --c
ache --c
onfig .stylelintrc 'public/scss/**/*.css'"
,
"lint-vue-js"
:
"eslint -c .eslintrc --cache public/vue"
,
"lint-vue-css"
:
"stylelint --syntax scss --extract --config .stylelintrc 'public/scss/**/*.vue'"
,
"lint-vue-css"
:
"stylelint --syntax scss --extract --c
ache --c
onfig .stylelintrc 'public/scss/**/*.vue'"
,
"lint-all"
:
"node lint-all.js"
,
"precommit"
:
"node lint-commit.js"
},
...
...
Please
register
or
login
to post a comment