Skip to content

Commit

Permalink
fix babel config file to run storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmars committed Feb 19, 2024
1 parent 000c6e0 commit 3eaf0bd
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 62 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ npm install
npm run start
```

### Unit testing

For unit test results, you can run:

```shell
npm run test
```

For unit test coverage, you can run:

```shell
npm run coverage
```

The coverage report index.html will be in the 'coverage' folder

### Compiles and minifies for production

```shell
Expand Down
7 changes: 1 addition & 6 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ module.exports = function (api) {
'@babel/preset-typescript',
['@babel/preset-react', { runtime: 'automatic' }]
];
const plugins = [
['@babel/plugin-transform-modules-commonjs'],
['@babel/plugin-transform-destructuring'],
['@babel/plugin-transform-template-literals'],
['@babel/plugin-transform-classes']
];
const plugins = [];

return {
presets,
Expand Down
112 changes: 56 additions & 56 deletions package-lock.json

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

0 comments on commit 3eaf0bd

Please sign in to comment.