forked from modernweb-dev/web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
121 lines (121 loc) · 4.25 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
{
"name": "@web/root",
"private": true,
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.git"
},
"scripts": {
"build": "rimraf packages/*/tsconfig.tsbuildinfo && tsc --build",
"build:production": "node scripts/workspaces-scripts-bin.mjs build:production",
"build:site": "yarn build && rocket build",
"build:watch": "rimraf packages/*/tsconfig.tsbuildinfo && tsc --build --watch",
"dev-to-git": "dev-to-git",
"format": "npm run format:eslint && npm run format:prettier",
"format:eslint": "eslint --ext .ts,.js,.mjs,.cjs . --fix",
"format:prettier": "node node_modules/prettier/bin-prettier.js \"**/*.{ts,js,mjs,cjs,md}\" \"**/package.json\" --write --ignore-path .eslintignore",
"install-puppeteer-firefox": "cd node_modules/puppeteer && PUPPETEER_PRODUCT=firefox node install.js",
"lint": "npm run lint:eslint && npm run lint:prettier",
"lint:eslint": "eslint --ext .ts,.js,.mjs,.cjs .",
"lint:prettier": "node node_modules/prettier/bin-prettier.js \"**/*.{ts,js,mjs,cjs,md}\" --check --ignore-path .eslintignore",
"reinstall-workspace": "rimraf packages/*/node_modules && rimraf node_modules && yarn install && yarn build",
"release": "changeset publish && yarn format",
"review-content": "alex 'docs/**/*.md'",
"search": "rocket search",
"start": "rocket start",
"start:build": "node packages/dev-server/dist/bin.js --root-dir _site --open",
"test": "yarn test:node && yarn test:browser && node scripts/workspaces-scripts-bin.mjs test:ci",
"test:browser": "node packages/test-runner/dist/bin.js \"packages/*/test-browser/**/*.test.{js,ts}\"",
"test:node": "mocha \"packages/*/test/**/*.test.{ts,js,mjs,cjs}\" --require ts-node/register --exit --retries 3",
"update": "npm run update:mjs-dts-entrypoints && npm run update:tsconfigs",
"update-dependency": "node scripts/update-dependency.js",
"update:mjs-dts-entrypoints": "node scripts/generate-mjs-dts-entrypoints.mjs && yarn format",
"update:tsconfigs": "node scripts/generate-ts-configs.mjs && yarn format"
},
"dependencies": {
"@rocket/blog": "^0.3.0",
"@rocket/cli": "^0.5.0",
"@rocket/launch": "^0.4.0",
"@rocket/search": "^0.3.0"
},
"devDependencies": {
"@changesets/cli": "^2.12.0",
"@rollup/plugin-node-resolve": "^11.0.1",
"@rollup/plugin-typescript": "^8.1.0",
"@types/chai": "^4.2.14",
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.19",
"@types/node-fetch": "^2.5.8",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"alex": "^9.1.0",
"chai": "^4.2.0",
"concurrently": "^6.0.0",
"deepmerge": "^4.2.2",
"dev-to-git": "^1.4.1",
"eslint": "^7.16.0",
"eslint-config-prettier": "^7.1.0",
"hanbi": "^0.4.1",
"husky": "^6.0.0",
"lint-staged": "^10.5.3",
"mocha": "^8.2.1",
"prettier": "^2.2.1",
"prettier-plugin-package": "^1.3.0",
"rimraf": "^3.0.2",
"rollup": "^2.35.1",
"rollup-plugin-terser": "^7.0.2",
"ts-node": "^9.1.1",
"typescript": "4.1.3"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"eslint-config-prettier",
"plugin:@typescript-eslint/recommended"
],
"env": {
"browser": true,
"node": true,
"mocha": true,
"es2020": true
},
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/ban-ts-comment": "off"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"prettier --write --ignore-path .eslintignore"
],
"*.md": [
"prettier --write --ignore-path .eslintignore"
]
},
"prettier": {
"singleQuote": true,
"arrowParens": "avoid",
"printWidth": 100,
"trailingComma": "all"
},
"workspaces": [
"packages/*",
"integration/*"
]
}