Skip to content

Commit

Permalink
fix: ejs render issue by hard coding npm run in readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
daKmoR committed Jan 5, 2021
1 parent 3ebfc1a commit 0500372
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
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
```
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
```
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
```
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
```
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
```
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
```

0 comments on commit 0500372

Please sign in to comment.