fix: ejs render issue by hard coding npm run in readmes

This commit is contained in:
Thomas Allmer
2021-01-05 08:17:15 +01:00
parent 3ebfc1a65e
commit 0500372233
6 changed files with 20 additions and 20 deletions

View File

@@ -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
```

View File

@@ -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
```

View File

@@ -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
```

View File

@@ -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
```

View File

@@ -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
```

View File

@@ -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
```