-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef3bd39
commit 86dc720
Showing
9 changed files
with
17,447 additions
and
2,055 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
testEnvironment: "jsdom" | ||
}; |
Oops, something went wrong.