Skip to content

Commit

Permalink
Add all the basic libraries needed (#1)
Browse files Browse the repository at this point in the history
* Add all the basic libraries needed

* Remove dist folder from repo
  • Loading branch information
dgading authored Jul 11, 2022
1 parent 4988cb1 commit f73f098
Show file tree
Hide file tree
Showing 26 changed files with 51,725 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react", "@babel/preset-typescript"]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
15 changes: 15 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions"
],
"framework": "@storybook/react",
"core": {
"builder": "@storybook/builder-webpack5"
}
}
9 changes: 9 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# FE-resource-library
Front end resource library

## Commands
- `npm test` will run the complete test suite.
- `npm run build` will run Webpack and build the dist file.
- `npm run storybook` will create a Storybook instance at `localhost:6006`.
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.js",
],
"testEnvironment": "jsdom",
}
2 changes: 2 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import '@testing-library/jest-dom';
import '@testing-library/jest-dom/extend-expect';
Loading

0 comments on commit f73f098

Please sign in to comment.