-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ejs render issue by hard coding npm run in readmes
- Loading branch information
Showing
6 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/generators/wc-lit-element-ts/templates/partials/README.demoing.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
## Demoing with Storybook | ||
To run a local instance of Storybook for your component, run | ||
```bash | ||
<%= scriptRunCommand %> storybook | ||
npm run storybook | ||
``` | ||
|
||
To build a production version of Storybook, run | ||
```bash | ||
<%= scriptRunCommand %> storybook:build | ||
npm run storybook:build | ||
``` |
12 changes: 6 additions & 6 deletions
12
src/generators/wc-lit-element-ts/templates/partials/README.linting.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
## Linting with ESLint, Prettier, and Types | ||
To scan the project for linting errors, run | ||
```bash | ||
<%= scriptRunCommand %> lint | ||
npm run lint | ||
``` | ||
|
||
You can lint with ESLint and Prettier individually as well | ||
```bash | ||
<%= scriptRunCommand %> lint:eslint | ||
npm run lint:eslint | ||
``` | ||
```bash | ||
<%= scriptRunCommand %> lint:prettier | ||
npm run lint:prettier | ||
``` | ||
|
||
To automatically fix many linting errors, run | ||
```bash | ||
<%= scriptRunCommand %> format | ||
npm run format | ||
``` | ||
|
||
You can format using ESLint and Prettier individually as well | ||
```bash | ||
<%= scriptRunCommand %> format:eslint | ||
npm run format:eslint | ||
``` | ||
```bash | ||
<%= scriptRunCommand %> format:prettier | ||
npm run format:prettier | ||
``` |
4 changes: 2 additions & 2 deletions
4
src/generators/wc-lit-element-ts/templates/partials/README.testing.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
## Testing with Web Test Runner | ||
To run the suite of Web Test Runner tests, run | ||
```bash | ||
<%= scriptRunCommand %> test | ||
npm run test | ||
``` | ||
|
||
To run the tests in watch mode (for <abbr title="test driven development">TDD</abbr>, for example), run | ||
|
||
```bash | ||
<%= scriptRunCommand %> test:watch | ||
npm run test:watch | ||
``` |
4 changes: 2 additions & 2 deletions
4
src/generators/wc-lit-element/templates/partials/README.demoing.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
## Demoing with Storybook | ||
To run a local instance of Storybook for your component, run | ||
```bash | ||
<%= scriptRunCommand %> storybook | ||
npm run storybook | ||
``` | ||
|
||
To build a production version of Storybook, run | ||
```bash | ||
<%= scriptRunCommand %> storybook:build | ||
npm run storybook:build | ||
``` |
12 changes: 6 additions & 6 deletions
12
src/generators/wc-lit-element/templates/partials/README.linting.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
## Linting with ESLint, Prettier, and Types | ||
To scan the project for linting errors, run | ||
```bash | ||
<%= scriptRunCommand %> lint | ||
npm run lint | ||
``` | ||
|
||
You can lint with ESLint and Prettier individually as well | ||
```bash | ||
<%= scriptRunCommand %> lint:eslint | ||
npm run lint:eslint | ||
``` | ||
```bash | ||
<%= scriptRunCommand %> lint:prettier | ||
npm run lint:prettier | ||
``` | ||
|
||
To automatically fix many linting errors, run | ||
```bash | ||
<%= scriptRunCommand %> format | ||
npm run format | ||
``` | ||
|
||
You can format using ESLint and Prettier individually as well | ||
```bash | ||
<%= scriptRunCommand %> format:eslint | ||
npm run format:eslint | ||
``` | ||
```bash | ||
<%= scriptRunCommand %> format:prettier | ||
npm run format:prettier | ||
``` |
4 changes: 2 additions & 2 deletions
4
src/generators/wc-lit-element/templates/partials/README.testing.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
## Testing with Web Test Runner | ||
To run the suite of Web Test Runner tests, run | ||
```bash | ||
<%= scriptRunCommand %> test | ||
npm run test | ||
``` | ||
|
||
To run the tests in watch mode (for <abbr title="test driven development">TDD</abbr>, for example), run | ||
|
||
```bash | ||
<%= scriptRunCommand %> test:watch | ||
npm run test:watch | ||
``` |