-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
142 lines (142 loc) · 4.85 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"name": "@eruditorgroup/profi-design-system",
"version": "0.1.21",
"description": "Essential cross-platform UI components for React for Eruditor Group",
"homepage": "https://github.com/eruditorgroup/profi-design-system#readme",
"author": "profiru",
"license": "ISC",
"main": "dist/cjs/index.js",
"types": "dist/esm/index.d.ts",
"module": "dist/esm/index.js",
"bugs": {
"url": "https://github.com/eruditorgroup/profi-design-system/issues"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/profiru"
},
"repository": {
"type": "git",
"url": "git://github.com/eruditorgroup/profi-design-system.git"
},
"dependencies": {
"body-scroll-lock": "^3.1.5",
"classnames": "^2.2.6",
"react-input-mask": "^2.0.4",
"react-transition-group": "^4.4.1"
},
"files": [
"/dist",
"/src"
],
"scripts": {
"clean": "rimraf lib && rimraf dist && rimraf test/visual/dist",
"start": "yarn storybook",
"build": "yarn clean && yarn build:cjs && yarn webpack build && yarn build:esm",
"build:cjs": "yarn compile:typescript --outDir dist/cjs && MODULE_TYPE=cjs yarn compile:babel -d dist/cjs",
"build:esm": "yarn compile:typescript --outDir dist/esm && MODULE_TYPE=esm yarn compile:babel -d dist/esm",
"build:typescript": "tsc --declaration --emitDeclarationOnly --noEmit false --declarationMap --allowJs false --checkJs false",
"compile:flow": "for i in $(find dist -type f -name \"*.d.ts\"); do sh -c \"flowgen $i -o ${i%.*.*}.js.flow --add-flow-header;echo 'Done $i';\"; done;",
"compile:babel": "CSS_MODULES=1 babel src -x '.ts','.tsx' -d dist/cjs --ignore '**/*.test.tsx','**/*.stories.tsx','**/*.d.ts','**/__mocks__'",
"compile:typescript": "tsc --declaration --emitDeclarationOnly --noEmit false --declarationMap --allowJs false --checkJs false",
"test": "MODULE_TYPE=cjs jest",
"storybook": "start-storybook -p 6006",
"lint": "yarn eslint src --cache --ext .js,.jsx,.ts,.tsx --max-warnings 0",
"precommit": "APP_ROOT_PATH=. lint-staged"
},
"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": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/src/__mocks__/fileMock.js",
"\\.(css|less|sass|scss)$": "<rootDir>/src/__mocks__/styleMock.js"
},
"moduleFileExtensions": [
"js",
"jsx",
"ts",
"tsx"
],
"moduleDirectories": [
"node_modules"
],
"setupFilesAfterEnv": [
"<rootDir>/src/setupTests.js"
]
},
"husky": {
"hooks": {
"pre-commit": "yarn precommit"
}
},
"devDependencies": {
"@babel/cli": "^7.13.10",
"@babel/core": "^7.13.10",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8",
"@babel/plugin-proposal-optional-chaining": "^7.13.8",
"@babel/plugin-transform-typescript": "^7.13.0",
"@babel/preset-env": "^7.13.10",
"@babel/preset-react": "^7.12.13",
"@storybook/addon-actions": "^6.1.21",
"@storybook/addon-essentials": "^6.1.21",
"@storybook/addon-links": "^6.1.21",
"@storybook/react": "^6.1.21",
"@testing-library/react-hooks": "^5.1.0",
"@types/classnames": "^2.2.11",
"@types/enzyme": "^3.10.8",
"@types/jest": "^26.0.15",
"@types/node": "^12.20.5",
"@types/react": "^16.14.5",
"@types/react-dom": "^16.8.6",
"@types/react-input-mask": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^4.17.0",
"@typescript-eslint/parser": "^4.17.0",
"autoprefixer": "^9.0.0",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"babel-plugin-css-modules-transform": "^1.6.2",
"babel-plugin-transform-postcss": "^0.3.0",
"babel-plugin-transform-rename-import": "^2.3.0",
"core-js": "^3.9.1",
"css-loader": "^5.1.1",
"css-modules-flow-types-loader": "^1.4.1",
"cssnext": "^1.8.4",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint": "^7.21.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-jest": "^24.2.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"flowgen": "^1.13.0",
"generic-names": "^3.0.0",
"husky": "^4.3.8",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"mini-css-extract-plugin": "^1.3.9",
"node-sass": "^5.0.0",
"postcss": "^8.2.8",
"postcss-loader": "^4.2.0",
"postcss-scss": "^3.0.5",
"precss": "^4.0.0",
"prettier": "^2.2.1",
"react": "16.14.0",
"react-dom": "16.14.0",
"sass-loader": "^10.1.1",
"style-loader": "^2.0.0",
"typescript": "^4.2.3",
"typescript-eslint": "^0.0.1-alpha.0",
"webpack-cli": "^4.5.0"
}
}