mirror of
https://github.com/modernweb-dev/rocket.git
synced 2026-03-10 08:51:24 +00:00
150 lines
5.5 KiB
JSON
150 lines
5.5 KiB
JSON
{
|
|
"name": "@rocket/root",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/modernweb-dev/rocket.git"
|
|
},
|
|
"type": "module",
|
|
"scripts": {
|
|
"analyze": "run-s analyze:* format:*",
|
|
"analyze:analyze": "node scripts/workspaces-scripts-bin.mjs analyze",
|
|
"build": "npm run build:packages && NODE_DEBUG=engine:rendering node packages/cli/src/cli.js build",
|
|
"build:packages": "node scripts/workspaces-scripts-bin.mjs build:package",
|
|
"build:site": "run-s analyze:* rocket:build",
|
|
"changeset": "changeset",
|
|
"debug": "web-test-runner --watch --config web-test-runner-chrome.config.mjs",
|
|
"debug:firefox": "web-test-runner --watch --config web-test-runner-firefox.config.mjs",
|
|
"debug:webkit": "web-test-runner --watch --config web-test-runner-webkit.config.mjs",
|
|
"format": "run-s format:*",
|
|
"format:eslint": "eslint --ext .ts,.js,.mjs,.cjs . --fix",
|
|
"format:prettier": "node node_modules/prettier/bin-prettier.js \"**/*.{ts,js,mjs,cjs,md}\" \"**/!(expected)/package.json\" --write --ignore-path .eslintignore",
|
|
"lint": "run-p lint:*",
|
|
"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",
|
|
"lint:types": "npm run types",
|
|
"lint:versions": "node scripts/lint-versions.js",
|
|
"postinstall": "npm run setup",
|
|
"release": "changeset publish && yarn format",
|
|
"rocket:build": "node packages/cli/src/cli.js build",
|
|
"rocket:upgrade": "node packages/cli/src/cli.js upgrade",
|
|
"search": "node packages/cli/src/cli.js search",
|
|
"setup": "npm run setup:ts-configs && npm run setup:patches",
|
|
"setup:patches": "npx patch-package",
|
|
"setup:ts-configs": "node scripts/generate-ts-configs.mjs",
|
|
"start": "NODE_DEBUG=engine:rendering node --no-warnings --experimental-loader ./packages/engine/src/litCssLoader.js packages/cli/src/cli.js start --open",
|
|
"test": "yarn test:node && yarn test:web",
|
|
"test:integration": "playwright test packages/*/test-node/*.spec.js",
|
|
"test:node": "yarn test:unit && yarn test:integration",
|
|
"test:unit": "node --trace-warnings ./node_modules/.bin/mocha --require ./scripts/testMochaGlobalHooks.js \"packages/*/test-node/**/*.test.{ts,js,mjs,cjs}\" -- --timeout 8000 --reporter dot --exit",
|
|
"test:web": "web-test-runner",
|
|
"types": "run-s types:clear types:copy types:build",
|
|
"types:build": "tsc --build",
|
|
"types:clear": "rimraf packages/*/dist-types/",
|
|
"types:copy": "node scripts/workspaces-scripts-bin.mjs types:copy",
|
|
"update-dependency": "node scripts/update-dependency.js",
|
|
"update-esm-entrypoints": "node scripts/update-esm-entrypoints.mjs && yarn format",
|
|
"update-package-configs": "node scripts/update-package-configs.mjs && yarn format",
|
|
"xprestart": "yarn analyze"
|
|
},
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"@changesets/cli": "^2.20.0",
|
|
"@custom-elements-manifest/analyzer": "^0.4.12",
|
|
"@open-wc/testing": "^3.0.0",
|
|
"@playwright/test": "^1.18.1",
|
|
"@rollup/plugin-commonjs": "^17.0.0",
|
|
"@rollup/plugin-json": "^4.1.0",
|
|
"@rollup/plugin-typescript": "^8.1.0",
|
|
"@types/chai": "^4.2.14",
|
|
"@types/fs-extra": "^9.0.6",
|
|
"@types/mocha": "^9.0.0",
|
|
"@types/node": "^14.14.20",
|
|
"@types/sinon": "^9.0.10",
|
|
"@typescript-eslint/eslint-plugin": "^5.1.0",
|
|
"@typescript-eslint/parser": "^5.1.0",
|
|
"@web/test-runner": "^0.13.0",
|
|
"@web/test-runner-commands": "^0.6.0",
|
|
"@web/test-runner-playwright": "^0.8.8",
|
|
"cem-plugin-readme": "^0.1.3",
|
|
"chai": "^4.2.0",
|
|
"concurrently": "^5.3.0",
|
|
"copyfiles": "^2.4.1",
|
|
"deepmerge": "^4.2.2",
|
|
"esbuild": "^0.12.15",
|
|
"eslint": "^8.1.0",
|
|
"eslint-config-prettier": "^7.1.0",
|
|
"hanbi": "^0.4.1",
|
|
"husky": "^4.3.7",
|
|
"lint-staged": "^10.5.3",
|
|
"mocha": "^9.1.3",
|
|
"node-fetch": "^2.6.7",
|
|
"npm-run-all": "^4.1.5",
|
|
"onchange": "^7.1.0",
|
|
"prettier": "^2.5.1",
|
|
"prettier-plugin-package": "^1.3.0",
|
|
"publish-docs": "^0.1.2",
|
|
"puppeteer": "^13.0.0",
|
|
"remark-emoji": "^2.1.0",
|
|
"rimraf": "^3.0.2",
|
|
"rollup": "^2.36.1",
|
|
"rollup-plugin-terser": "^7.0.2",
|
|
"sinon": "^9.2.3",
|
|
"ts-node": "^9.1.1",
|
|
"typescript": "^4.6.1-rc"
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"imports": {
|
|
"#pageTree": "./site/pages/__shared/pageTree.js",
|
|
"#assets/*": "./site/src/assets/*"
|
|
},
|
|
"lint-staged": {
|
|
"*.js": [
|
|
"eslint --fix",
|
|
"prettier --write --ignore-path .eslintignore"
|
|
]
|
|
},
|
|
"prettier": {
|
|
"singleQuote": true,
|
|
"arrowParens": "avoid",
|
|
"printWidth": 100,
|
|
"trailingComma": "all"
|
|
},
|
|
"workspaces": [
|
|
"packages/*",
|
|
"examples/*",
|
|
"examples/sanity-minimal-starter/frontend",
|
|
"presets/*"
|
|
]
|
|
}
|