-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
140 lines (140 loc) · 4.98 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
{
"name": "slidish",
"version": "1.0.8",
"description": "Full-featured slider component for react",
"author": {
"name": "Abbas Hosseini",
"email": "hosseini44444@gmail.com"
},
"repository": {
"type": "git",
"url": "https://github.com/hosseini44444/slidish.git"
},
"license": "MIT",
"homepage": "https://hosseini44444.github.io/slidish/",
"bugs": {
"url": "https://github.com/hosseini44444/slidish/issues"
},
"keywords": [
"react",
"slider",
"carousel",
"image",
"gallery",
"slideshow",
"swiper",
"responsive",
"mobile-friendly",
"touch"
],
"main": "library/cjs/index.js",
"module": "library/index.js",
"types": "library/types/index.d.ts",
"files": [
"library/**/*",
"style.css"
],
"scripts": {
"browsersList:update": "browserslist --update-db",
"start": "cross-env NODE_ENV=development webpack serve --config webpack.dev.js",
"start:docs": "styleguidist server --open",
"build:demo": "npm run browsersList:update && cross-env BABEL_SHOW_CONFIG_FOR=./src/components/slider/index.tsx NODE_ENV=production webpack",
"build:local": "npm run browsersList:update && eslint src && npm run test && npm run delete-library && npm run build:types && npm run build:lib && npm run build:cjs && npm run generate-style && npm run build:docs",
"build:ci": "npm run browsersList:update && eslint src && npm run build:types && npm run build:lib && npm run build:cjs && npm run generate-style",
"build:lib": "cross-env NODE_ENV=production babel src --out-dir library --extensions \".ts\",\".tsx\" --ignore \"src/**/*.d.ts\",\"src/**/*.spec.js\",\"src/**/*.test.js\",\"src/App.tsx\",\"src/demo.tsx\" --no-babelrc --config-file ./.babelrc.lib.json",
"build:cjs": "cross-env NODE_ENV=production babel src --out-dir library/cjs --extensions \".ts\",\".tsx\" --ignore \"src/**/*.d.ts\",\"src/**/*.spec.js\",\"src/**/*.test.js\",\"src/App.tsx\",\"src/demo.tsx\" --no-babelrc --config-file ./.babelrc.cjs.json",
"build:types": "tsc -p tsconfig.types.json",
"build:docs": "styleguidist build && cp 404.md docs",
"generate-style": "sass ./src/style.scss --no-source-map | postcss --no-map --use autoprefixer -o style.css",
"delete-library": "rm -rf ./library",
"test": "jest",
"prepublishOnly": "npm run build:ci",
"postversion": "git push && git push --tags"
},
"peerDependencies": {
"react": "16.8.0 - 17",
"react-dom": "16.8.0 - 17"
},
"dependencies": {
"@juggle/resize-observer": "^3.3.1",
"react-fast-compare": "^3.2.0"
},
"devDependencies": {
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.14.5",
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.1.9",
"@types/react": "^17.0.14",
"@types/react-dom": "^17.0.9",
"@types/youtube": "^0.0.44",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"autoprefixer": "^10.3.1",
"babel-loader": "^8.2.2",
"babel-plugin-auto-import": "^1.1.0",
"babel-plugin-module-resolver": "^4.1.0",
"browserslist": "^4.16.6",
"copy-webpack-plugin": "^9.0.1",
"core-js": "^3.15.2",
"cross-env": "^7.0.3",
"css-loader": "^6.0.0",
"css-minimizer-webpack-plugin": "^3.0.2",
"eslint": "^7.30.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"html-webpack-plugin": "^5.3.2",
"jest": "^27.0.6",
"mini-css-extract-plugin": "^2.1.0",
"postcss": "^8.3.5",
"postcss-cli": "^8.3.1",
"postcss-loader": "^6.1.1",
"react": "16.8.0 - 17",
"react-dom": "16.8.0 - 17",
"react-styleguidist": "^11.1.7",
"react-youtube": "^7.13.1",
"sass": "^1.35.2",
"sass-loader": "^12.1.0",
"style-loader": "^3.1.0",
"ts-loader": "^9.2.3",
"typescript": "^4.3.5",
"webpack": "^5.45.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2"
},
"jest": {
"collectCoverage": true,
"coverageDirectory": "./coverage",
"coverageReporters": [
"text",
"lcov"
],
"coverageProvider": "v8",
"coverageThreshold": {
"global": {
"branches": 75,
"functions": 75,
"lines": 75,
"statements": 75
}
},
"moduleNameMapper": {
"^components/(.*)$": "<rootDir>/src/components/$1",
"^hooks/(.*)$": "<rootDir>/src/hooks/$1",
"^store/(.*)$": "<rootDir>/src/store/$1",
"^src/(.*)$": "<rootDir>/src/$1",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(css|less|sass)$": "<rootDir>/__mocks__/styleMock.js"
},
"setupFilesAfterEnv": [
"<rootDir>/setupTests.js"
],
"testEnvironment": "jsdom"
}
}