chore: add stylelint checks to CI (#532)

This commit is contained in:
Sendil Kumar N
2016-05-27 01:58:46 +08:00
committed by Jeremy Elbourn
parent 632e90cb73
commit 8f9bc7795b
3 changed files with 10 additions and 2 deletions
+3 -1
View File
@@ -8,11 +8,12 @@
"url": "https://github.com/angular/material2.git"
},
"scripts": {
"ci:forbidden-identifiers": "node ./scripts/ci/forbidden-identifiers.js",
"ci:forbidden-identifiers": "node ./scripts/ci/forbidden-identifiers.js",
"build": "ng build",
"demo-app": "ng serve",
"test": "karma start test/karma.conf.js",
"tslint": "tslint -c tslint.json 'src/**/*.ts'",
"stylelint": "stylelint 'src/**/*.scss' --config .stylelint-config.json --syntax scss",
"typings": "typings install --ambient",
"postinstall": "npm run typings",
"e2e": "protractor",
@@ -64,6 +65,7 @@
"sass": "^0.5.0",
"strip-ansi": "^3.0.0",
"symlink-or-copy": "^1.0.1",
"stylelint": "^6.5.1",
"ts-node": "^0.7.3",
"tslint": "^3.5.0",
"typescript": "^1.9.0-dev",
+2 -1
View File
@@ -16,8 +16,9 @@ npm run inline-resources
wait_for_tunnel
if is_lint; then
npm run tslint
npm run tslint
npm run ci:forbidden-identifiers
npm run stylelint
elif is_e2e; then
MD_APP=e2e ng serve &
sleep 20
+5
View File
@@ -0,0 +1,5 @@
{
"rules": {
"selector-no-id": true
}
}