-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
125 lines (125 loc) · 3.15 KB
/
package.json
File metadata and controls
125 lines (125 loc) · 3.15 KB
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
{
"name": "parcelui",
"version": "0.1.1",
"description": "Parcel + Typescript + React/Preact + Router + CSS Modules + SASS + Jest + Api-Now",
"author": "Duc Nguyen",
"private": false,
"license": "MIT",
"engines": {
"node": ">=8",
"yarn": "*"
},
"dependencies": {
"abortcontroller-polyfill": "^1.3.0",
"components": "^0.1.0",
"preact": "^10.0.0-rc.1",
"react": "^16.6.3",
"react-dom": "^16.4.2",
"react-easy-state": "^6.1.3",
"react-router-dom": "^5.0.1",
"whatwg-fetch": "^3.0.0"
},
"devDependencies": {
"@babel/core": "^7.5.5",
"@babel/plugin-transform-runtime": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.3.3",
"@types/jest": "^25.2.3",
"@types/node": "^14.0.5",
"@types/react": "^16.7.17",
"@types/react-dom": "^16.0.7",
"api-now": "^0.3.5",
"autoprefixer": "^9.6.1",
"babel-jest": "^26.0.1",
"concurrently": "^4.1.2",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"faker": "^4.1.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.0.1",
"parcel": "^1.12.4",
"parcel-plugin-typed-css-modules": "^1.1.0",
"postcss-modules": "^1.4.1",
"rimraf": "^3.0.0",
"sass": "^1.26.5",
"typescript": "^3.9.3"
},
"scripts": {
"build": "rimraf ./dist && parcel build ./src/index.html",
"start": "parcel serve ./src/index.html",
"mock-api": "$(cat .env | xargs -n1 echo export) && api-now ./tools/mockData/jsonData.js --port $API_PORT",
"serve": "api-now --static ./dist",
"dev": "concurrently -r \"tsc --noEmit --watch\" \"npm:start\" \"npm:mock-api\"",
"test": "jest",
"test:watch": "jest --watch"
},
"repository": {
"type": "git",
"url": "https://github.com/ngduc/parcelui.git"
},
"keywords": [
"parcel",
"parcelui",
"typescript",
"react",
"router",
"css",
"sass"
],
"prettier": {
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "avoid"
},
"postcss": {
"modules": true,
"plugins": {
"autoprefixer": {
"grid": true
}
}
},
"jest": {
"moduleDirectories": [
"node_modules",
"src"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
},
"testRegex": "/__tests__/.*\\.(ts|tsx|js)$",
"setupFiles": [
"dotenv/config"
],
"setupFilesAfterEnv": [
"<rootDir>tools/setupTests.ts"
],
"transform": {
"^.+\\.[t|j]sx?$": "babel-jest",
"^.+.js$": "babel-jest"
}
},
"alias": {
"components": "./src/components",
"stores": "./src/stores",
"utils": "./src/utils",
"react": "./node_modules/preact/compat",
"react-dom": "./node_modules/preact/compat"
},
"resolutions": {
"parcel-bundler": "1.12.4"
}
}