Add polymer.json and move lint settings to it.
Change-Id: I84a9901695a3b9a7bb85b1bb275469cde86fd174
This commit is contained in:
@@ -125,6 +125,7 @@ sh_test(
|
||||
size = "large",
|
||||
srcs = ["polylint_test.sh"],
|
||||
data = [
|
||||
"polymer.json",
|
||||
":pg_code_without_test",
|
||||
"//polygerrit-ui:polygerrit_components.bower_components.zip",
|
||||
],
|
||||
|
@@ -25,4 +25,7 @@ fi
|
||||
|
||||
unzip -o polygerrit-ui/polygerrit_components.bower_components.zip -d polygerrit-ui/app
|
||||
|
||||
$polymer_bin lint --root polygerrit-ui/app --entrypoint polygerrit-ui/app/elements/gr-app.html --component-dir 'polygerrit-ui/app/bower_components' --verbose --rules polymer-2-hybrid --sources "polygerrit-ui/app/**/*"
|
||||
#Can't use --root with polymer.json - see https://github.com/Polymer/tools/issues/2616
|
||||
#Change current directory to the root folder
|
||||
cd polygerrit-ui/app
|
||||
$polymer_bin lint --component-dir 'bower_components' --verbose
|
||||
|
13
polygerrit-ui/app/polymer.json
Normal file
13
polygerrit-ui/app/polymer.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"entrypoint": "elements/gr-app.html",
|
||||
"sources": [
|
||||
"behaviors/**/*",
|
||||
"elements/**/*",
|
||||
"scripts/**/*",
|
||||
"styles/**/*",
|
||||
"types/**/*"
|
||||
],
|
||||
"lint": {
|
||||
"rules": ["polymer-2-hybrid"]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user