feat: add medusa-react (#913)

This commit is contained in:
Zakaria El Asri
2021-12-14 19:09:36 +01:00
committed by GitHub
parent 40f6e88875
commit d0d8dd7bf6
97 changed files with 22822 additions and 7595 deletions

View File

@@ -0,0 +1,102 @@
{
"version": "0.1.0",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist",
"src"
],
"engines": {
"node": ">=10"
},
"scripts": {
"start": "tsdx watch",
"build": "tsdx build",
"test": "tsdx test --passWithNoTests",
"lint": "tsdx lint",
"prepare": "tsdx build",
"size": "size-limit",
"analyze": "size-limit --why",
"storybook": "start-storybook -p 6006 -s public",
"build-storybook": "build-storybook"
},
"peerDependencies": {
"react": ">=16",
"react-query": ">= 3.29.0"
},
"husky": {
"hooks": {
"pre-commit": "tsdx lint"
}
},
"prettier": {
"endOfLine": "lf",
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
},
"name": "medusa-react",
"author": "Zakaria S. El Asri",
"module": "dist/medusa-react.esm.js",
"size-limit": [
{
"path": "dist/medusa-react.cjs.production.min.js",
"limit": "10 KB"
},
{
"path": "dist/medusa-react.esm.js",
"limit": "10 KB"
}
],
"devDependencies": {
"@babel/core": "^7.16.0",
"@size-limit/preset-small-lib": "^6.0.4",
"@storybook/addon-contexts": "^5.3.21",
"@storybook/addon-essentials": "^6.3.12",
"@storybook/addon-info": "^5.3.21",
"@storybook/addon-links": "^6.3.12",
"@storybook/addons": "^6.3.12",
"@storybook/react": "^6.3.12",
"@testing-library/react": "^12.1.2",
"@testing-library/react-hooks": "^7.0.2",
"@types/lodash": "^4.14.177",
"@types/react": "^17.0.33",
"@types/react-dom": "^17.0.10",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"axios": "^0.24.0",
"babel-loader": "^8.2.3",
"eslint-config-react-app": "^6.0.0",
"eslint-plugin-prettier": "3.4.1",
"husky": "^7.0.4",
"msw": "^0.35.0",
"msw-storybook-addon": "^1.5.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-is": "^17.0.2",
"react-json-view": "^1.21.3",
"size-limit": "^6.0.4",
"tsdx": "^0.14.1",
"tslib": "^2.3.1",
"typescript": "^4.5.2"
},
"dependencies": {
"@medusajs/medusa": "^1.1.59",
"@medusajs/medusa-js": "^1.0.7",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"react-query": "^3.31.0"
},
"resolutions": {
"**/@typescript-eslint/eslint-plugin": "^4.11.1",
"**/@typescript-eslint/parser": "^4.11.1",
"**/jest": "^26.6.3",
"**/ts-jest": "^26.4.4",
"**/typescript": "^4.1.3"
},
"msw": {
"workerDirectory": "public"
}
}