Created
May 13, 2020 15:46
-
-
Save maxx-coffee/2e7775163f45754573c5e88f2a6b3b64 to your computer and use it in GitHub Desktop.
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
var path = require("path"); | |
module.exports = { | |
stories: ["../src/**/*.stories.js", "../src/**/*.stories.mdx"], | |
webpackFinal: async (config) => { | |
const aliases = { ...config.resolve.alias }; | |
config.output["globalObject"] = "this"; | |
config.node = { | |
fs: "empty", | |
}; | |
const newAliases = { | |
"@utils": path.resolve(__dirname, "../src/utils/"), | |
"@components": path.resolve(__dirname, "../src/components/"), | |
"@reducers": path.resolve(__dirname, "../src/reducers/"), | |
"@constants": path.resolve(__dirname, "../src/constants/"), | |
"@actions": path.resolve(__dirname, "../src/actions/"), | |
"@sagas": path.resolve(__dirname, "../src/sagas/"), | |
"@selectors": path.resolve(__dirname, "../src/selectors/"), | |
"@database": path.resolve(__dirname, "../src/database/"), | |
}; | |
config.resolve.alias = { ...aliases, ...newAliases }; | |
return config; | |
}, | |
addons: [ | |
"@storybook/preset-create-react-app", | |
"@storybook/addon-actions", | |
"@storybook/addon-links", | |
"@storybook/addon-storysource", | |
"@storybook/addon-knobs/register", | |
"@storybook/addon-docs", | |
], | |
}; |
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
{ | |
"name": "atlas", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"@atlaskit/dynamic-table": "^13.7.3", | |
"@material-ui/core": "4.9.11", | |
"@material-ui/icons": "4.9.1", | |
"@redux-requests/axios": "^0.9.0", | |
"@redux-requests/core": "^0.28.1", | |
"@testing-library/dom": "^7.2.1", | |
"@testing-library/jest-dom": "^4.2.4", | |
"@testing-library/react": "^10.0.3", | |
"@testing-library/user-event": "^7.2.1", | |
"axios": "^0.19.2", | |
"better-docs": "^1.4.7", | |
"immer": "^6.0.3", | |
"jsdoc": "^3.6.4", | |
"papaparse": "^5.2.0", | |
"prop-types": "^15.7.2", | |
"re-reselect": "^3.4.0", | |
"react": "^16.13.1", | |
"react-dom": "^16.13.1", | |
"react-json-pretty": "^2.2.0", | |
"react-redux": "^7.2.0", | |
"react-scripts": "3.4.1", | |
"react-test-renderer": "^16.13.1", | |
"recharts": "^1.8.5", | |
"redux": "^4.0.5", | |
"redux-devtools-extension": "^2.13.8", | |
"redux-saga": "^1.1.3", | |
"reselect": "^4.0.0", | |
"styled-components": "^5.1.0", | |
"use-immer": "^0.4.0" | |
}, | |
"scripts": { | |
"start": "react-scripts start", | |
"build": "react-scripts build", | |
"test": "react-scripts test --env=jest-environment-jsdom-sixteen", | |
"eject": "react-scripts eject", | |
"storybook": "start-storybook -p 9009 -s public", | |
"build-storybook": "build-storybook -s public", | |
"api": "DEBUG=express-session node ./mock_api/server.js" | |
}, | |
"eslintConfig": { | |
"extends": "react-app" | |
}, | |
"browserslist": { | |
"production": [ | |
">0.2%", | |
"not dead", | |
"not op_mini all" | |
], | |
"development": [ | |
"last 1 chrome version", | |
"last 1 firefox version", | |
"last 1 safari version" | |
] | |
}, | |
"jest": { | |
"moduleNameMapper": { | |
"^@components(.*)": "<rootDir>/src/components$1", | |
"^@constants(.*)": "<rootDir>/src/constants$1", | |
"^@utils(.*)": "<rootDir>/src/utils$1", | |
"^@sagas(.*)": "<rootDir>/src/sagas$1", | |
"^@actions(.*)": "<rootDir>/src/actions$1", | |
"^@testUtils(.*)": "<rootDir>/src/test-utils.js" | |
} | |
}, | |
"devDependencies": { | |
"@storybook/addon-actions": "^5.3.18", | |
"@storybook/addon-docs": "^5.3.18", | |
"@storybook/addon-knobs": "^5.3.18", | |
"@storybook/addon-links": "^5.3.18", | |
"@storybook/addon-storysource": "^5.3.18", | |
"@storybook/addons": "^5.3.18", | |
"@storybook/preset-create-react-app": "^2.1.1", | |
"@storybook/react": "^5.3.18", | |
"@testing-library/react-hooks": "^3.2.1", | |
"body-parser": "^1.19.0", | |
"cookie-session": "^1.4.0", | |
"jest-environment-jsdom-sixteen": "^1.0.3", | |
"jest-mock-axios": "^4.0.0", | |
"jest-styled-components": "^7.0.2", | |
"json-server": "^0.16.1", | |
"prettier": "^2.0.4", | |
"redux-devtools": "^3.5.0", | |
"redux-mock-store": "^1.5.4", | |
"redux-saga-test-plan": "^4.0.0-rc.3" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment