Skip to content

Commit

Permalink
added babel jest and css
Browse files Browse the repository at this point in the history
  • Loading branch information
bateman001 committed Aug 22, 2024
1 parent ef3bd39 commit 86dc720
Show file tree
Hide file tree
Showing 9 changed files with 17,447 additions and 2,055 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
# base-react-component-library
# base-react-component-library

Hi this is a base project for a react component library. This project is meant to have all of the simple things you need to start a new react component library.

## Get Started

1. Run `npm install`
2. In package.json update `name` to the name of your library
3. Update registery in publishConfig like this `https://npm.pkg.github.com/<GITHUB_ACCOUNT_NAME>`
4. create a `.npmrc` file that looks something like this

```
registry=https://registry.npmjs.org/
//npm.pkg.github.com/:<AUTH_TOKEN>
@<GITHUB_ACCOUNT_NAME>:registry=https://npm.pkg.github.com
```
5. Run `npm run rollbar`
6. Run `npm publish --access public`
3 changes: 3 additions & 0 deletions babel.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"]
};
3 changes: 3 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
testEnvironment: "jsdom"
};
Loading

0 comments on commit 86dc720

Please sign in to comment.