Skip to content

Commit

Permalink
Merge pull request #360 from material-components/lit-analyzer
Browse files Browse the repository at this point in the history
Add lit-analyzer to linting
  • Loading branch information
dfreedm authored Aug 12, 2019
2 parents f30dc4d + b38f381 commit 6aaf412
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ addons:

before_script:
- npm run bootstrap
- >-
npm run format && git diff --exit-code || (echo -e '\n\033[31mERROR:\033[0m
Project is not formatted. Please run "npm run format".' && false)

script:
- npm run lint
- npm test
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fix bug where `<mwc-snackbar>` `open` method threw if called immediately
after construction (before `firstUpdated`).
- Add support for `<svg>` and `<img>` to `<mwc-icon-button>`
- Add `lit-analyzer` to CI
- Only set up structure in `bootstrap`, make `build` explicit.
Run `lint` and `format` in CI

## [0.6.0] - 2019-06-05
- Upgrade lerna to 3.x
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ Below are instructions for setting up project development.

1. Clone this repo with `git clone`.
1. Install dependencies by running `npm run bootstrap`
1. Build the project with `npm run build`
1. Run a development server with `npm run dev`
- View the demos by accessing `<dev server url>`/demos/index.html
- This will also build the project.
1. Build the project with `npm run build`
1. Run tests with `npm run test`
1. Run benchmarks with `npm run build:tests && npm run test:bench`

Expand Down
120 changes: 120 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
"dev": "polyserve --npm --module-resolution=node",
"format": "clang-format --version; find . -name '*.ts' | grep -v node_modules | xargs clang-format -style=file -i",
"lint:imports": "node scripts/check-imports.js",
"lint": "npm run lint:typescript",
"lint": "npm run lint:typescript && npm run lint:lit",
"lint:typescript": "eslint \"packages/**/*.ts\"",
"lint:lit": "lit-analyzer \"packages/**/*.ts\" --strict --quiet",
"test": "karma start --single-run",
"test:bench": "node test/benchmark/cli.js",
"bootstrap": "npm install && ./scripts/bootstrap.sh && npm run build",
"build": "npm run lint && npm run build:styling && npm run build:typescript -- --verbose",
"bootstrap": "npm install && ./scripts/bootstrap.sh",
"build": "npm run build:styling && npm run build:typescript -- --verbose",
"build:styling": "./scripts/build-styling.sh",
"build:typescript": "tsc --build packages/**/tsconfig.json",
"build:tests": "tsc --build test/tsconfig.json && tsc --build test/tsconfig-node.json",
Expand Down Expand Up @@ -56,6 +57,7 @@
"karma-sauce-launcher": "^2.0.2",
"karma-sourcemap-loader": "^0.3.7",
"lerna": "^3.13.1",
"lit-analyzer": "^1.1.7",
"mocha": "^5.0.0",
"node-sass-import": "^2.0.1",
"node-watch": "^0.6.0",
Expand Down

0 comments on commit 6aaf412

Please sign in to comment.