mirror of
https://github.com/jlengrand/create-1.git
synced 2026-03-10 08:11:25 +00:00
fix: ejs render issue by hard coding npm run in readmes
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user