-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
134 lines (134 loc) · 4.9 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
{
"name": "readymade",
"version": "2.0.0",
"description": "JavaScript microlibrary for developing Web Components with Decorators",
"scripts": {
"build": "npm run clean && npm run prod",
"build:lib": "./BUILD.sh",
"build:mock": "rollup -c src/client/rollup.mock.js",
"build:dev": "npm run clean:dist && NODE_ENV=development parcel build src/client/index.html -d dist/client --no-source-maps --no-minify --out-file=index.html",
"build:prod": "concurrently \"npm run prod:client\" \"npm run prod:server\"",
"build:gh-pages": "yarn build:dev && node pages.js",
"copy:root": "copyfiles src/client/robots.txt src/client/static.html src/client/hello.html src/client/hello-state.html src/client/performance.html src/client/custom.html dist/client --flat",
"clean": "yarn clean:dist && yarn clean:packages",
"clean:dist": "rimraf dist",
"clean:packages": "rimraf packages",
"deploy:gh-pages": "gh-pages -d dist/client --branch gh-pages",
"dev": "NODE_ENV=development parcel src/client/index.html --port 4444",
"dev:server": "NODE_ENV=development node watch.js",
"lint": "eslint src/**/*.ts --fix",
"prod": "NODE_ENV=production npm run clean:dist && npm run build:prod && npm run copy:root && npm run prod:static && npm run build:mock",
"prod:static": "rollup -c src/client/rollup.static.js",
"prod:client": "parcel build src/client/index.html -d dist/client --no-source-maps --no-minify --out-file=index.html",
"prod:server": "npm run serve:config && parcel build src/server/index.ts -d dist/server --public-url /dist --target=node --no-source-maps",
"prod:ssr": "NODE_ENV=production rollup -c src/client/rollup.config.js",
"pretty": "prettier \"src/**/*.{js,ts,html,css,scss}\" --write",
"pretty:check": "prettier \"src/**/*.{js,ts,html,css,scss}\" --check",
"serve:config": "tsc ./src/server/config.js --outDir ./dist --module CommonJS --allowJS && mkdir -p ./dist/server/src/server && cp ./dist/config.js ./dist/server/src/server/config.js",
"serve:dev": "NODE_ENV=development node dist/server",
"serve": "NODE_ENV=production node dist/server",
"start": "concurrently \"npm run dev\" \"npm run dev:server\"",
"test": "cypress run",
"test:chrome": "cypress run --browser chrome",
"test:open": "cypress open --browser chrome",
"test:paint": "tach mock/paint/index.html --root=mock/paint --browser=chrome-headless --measure=fcp"
},
"repository": {
"type": "git",
"url": "git+https://github.com/steveblue/custom-elements.git"
},
"keywords": [
"custom",
"elements",
"web",
"components",
"custom",
"elements",
"api",
"ui",
"library"
],
"author": "Steve Belovarich",
"license": "MIT",
"bugs": {
"url": "https://github.com/steveblue/custom-elements/issues"
},
"homepage": "https://github.com/steveblue/custom-elements#readme",
"dependencies": {
"@skatejs/ssr": "^0.19.11",
"@ungap/custom-elements": "^0.1.8",
"broadcastchannel-polyfill": "^1.0.0",
"chalk": "^3.0.0",
"compression": "^1.7.4",
"concurrently": "^5.1.0",
"cors": "^2.8.5",
"element-internals-polyfill": "^0.1.9",
"express": "^4.17.1",
"html-minifier-terser": "^5.1.1",
"http": "^0.0.0",
"https": "^1.0.0",
"parcel-bundler": "^1.12.4",
"parcel-plugin-css-as-string": "^1.0.1",
"parcel-plugin-externals": "^0.5.1",
"prismjs": "^1.27.0",
"rimraf": "^3.0.2"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^11.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^7.1.3",
"@rollup/plugin-replace": "^2.3.3",
"@rollup/plugin-typescript": "^4.1.1",
"@types/node": "^13.7.4",
"@typescript-eslint/eslint-plugin": "^2.19.2",
"@typescript-eslint/parser": "^2.19.2",
"autoprefixer": "^9.7.4",
"chokidar": "^3.4.0",
"chromedriver": "^101.0.0",
"copyfiles": "^2.4.0",
"cssnano": "^4.1.10",
"cypress": "^5.3.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-prettier": "^3.1.2",
"gh-pages": "^3.1.0",
"htmlnano": "^0.2.7",
"http-server": "^0.12.3",
"husky": "^4.3.0",
"lint-staged": "^10.5.0",
"node-sass": "^7.0.0",
"posthtml": "^0.13.4",
"posthtml-inline": "^1.0.0",
"prettier": "^1.19.1",
"rollup": "2.3.2",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-module-replacement": "^1.1.0",
"rollup-plugin-postcss": "^3.1.1",
"rollup-plugin-string-html": "^1.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.27.3",
"tachometer": "^0.5.5",
"tslib": "^2.0.3",
"typescript": "^4.5.5"
},
"browserslist": [
">2%",
"Edge > 14",
"Firefox > 63",
"Chrome > 67"
],
"externals": [
"./src/server/config.js"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{ts}": [
"eslint --fix",
"prettier --write"
]
}
}