Co-authored-by: Oleksii Kadurin <ovkadurin@gmail.com>; Thijs Louisse <Thijs.Louisse@ing.com>
150 lines
5.7 KiB
JSON
150 lines
5.7 KiB
JSON
{
|
|
"private": true,
|
|
"name": "@lion/root",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"build": "export PROD=true && npm run build-docs && npx astro build && node -e 'require(\"./src/utils/post-build-dist/post-build-dist.js\").postBuildDist()'",
|
|
"build-docs": "npm run clean && node -e 'require(\"./src/utils/copy-docs\").copyDocs()' && node -e 'require(\"./src/utils/copy-docs\").processImports()'",
|
|
"build-docs:watch": "node -e 'require(\"./src/utils/copy-docs\").watch()'",
|
|
"bundlesize": "rollup -c bundlesize/rollup.config.js && bundlesize",
|
|
"changeset": "changeset",
|
|
"clean": "rm -rf ./public/docs && rm -rf ./src/content/docs && rm -rf ./dist",
|
|
"clean:full": "npm run clean && rm -rf ./node_modules",
|
|
"custom-elements-manifest": "npm run custom-elements-manifest --workspaces --if-present",
|
|
"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",
|
|
"dev": "astro dev",
|
|
"format": "npm run format:eslint && npm run format:prettier",
|
|
"format:eslint": "eslint --ext .js,.html . --fix",
|
|
"format:prettier": "prettier \"**/*.{js,md}\" \"packages/*/package.json\" \"package.json\" --write",
|
|
"postinstall": "npx patch-package && npm run custom-elements-manifest",
|
|
"lint": "run-p lint:*",
|
|
"lint:eslint": "eslint --ext .js,.html .",
|
|
"lint:markdownlint": "git ls-files '*.md' | xargs markdownlint --ignore '{.github/**/*.md,.changeset/*.md,**/CHANGELOG.md,packages/ui/_legacy-changelogs/*.md}'",
|
|
"lint:prettier": "prettier \"**/*.js\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)",
|
|
"lint:types": "npm run types",
|
|
"lint:versions": "node ./scripts/lint-versions.js",
|
|
"prepare": "husky install",
|
|
"preview": "astro preview",
|
|
"release": "changeset publish",
|
|
"rm-all-node_modules": "npm exec --workspaces -- npx rimraf node_modules && npx rimraf node_modules",
|
|
"start": "npm run build-docs && npm run watch & astro dev",
|
|
"start:prod": "npm run preview",
|
|
"test": "run-p test:browser test:node",
|
|
"test:browser": "web-test-runner --coverage",
|
|
"test:browserstack": "web-test-runner --config ./web-test-runner-browserstack.config.js",
|
|
"test:node": "npm run test:node --workspaces --if-present",
|
|
"test:screenshots": "rimraf screenshots/.diff/ && rimraf screenshots/.current/ && mocha --require scripts/screenshots/bootstrap.js --exit --timeout 10000 \"packages/**/test/*.screenshots-test.js\"",
|
|
"test:screenshots:update": "cross-env UPDATE_SCREENSHOTS=true npm run test:screenshots",
|
|
"types": "npm run types --workspaces --if-present",
|
|
"types-check-only": "npm run types-check-only --workspaces --if-present",
|
|
"watch": "npm-watch"
|
|
},
|
|
"workspaces": [
|
|
"packages/*",
|
|
"packages-node/*"
|
|
],
|
|
"dependencies": {
|
|
"@astrojs/lit": "^3.0.2",
|
|
"@mdjs/core": "^0.20.0",
|
|
"@rollup/plugin-commonjs": "^24.0.0",
|
|
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
"astro": "^3.3.1",
|
|
"astro-seo": "^0.8.0",
|
|
"changeset": "^0.2.6",
|
|
"find-node-modules": "^2.1.3",
|
|
"image-extensions": "^1.1.0",
|
|
"npm-watch": "^0.11.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.10.1",
|
|
"@bundled-es-modules/fetch-mock": "^6.5.2",
|
|
"@changesets/cli": "^2.26.1",
|
|
"@custom-elements-manifest/analyzer": "^0.5.7",
|
|
"@open-wc/building-rollup": "^1.2.1",
|
|
"@open-wc/eslint-config": "^7.0.0",
|
|
"@open-wc/testing": "^3.1.2",
|
|
"@open-wc/testing-helpers": "^2.1.2",
|
|
"@types/chai-as-promised": "^7.1.5",
|
|
"@types/chai-dom": "^0.0.8",
|
|
"@types/convert-source-map": "^1.5.1",
|
|
"@types/fs-extra": "^9.0.7",
|
|
"@types/glob": "^7.1.3",
|
|
"@types/istanbul-reports": "^3.0.0",
|
|
"@types/mocha": "^10.0.0",
|
|
"@types/prettier": "^2.2.1",
|
|
"@web/dev-server": "^0.1.8",
|
|
"@web/dev-server-legacy": "^0.1.7",
|
|
"@web/test-runner": "^0.13.7",
|
|
"@web/test-runner-browserstack": "^0.5.0",
|
|
"@web/test-runner-commands": "^0.6.1",
|
|
"@web/test-runner-playwright": "^0.8.8",
|
|
"@webcomponents/scoped-custom-element-registry": "^0.0.5",
|
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
"babel-polyfill": "^6.26.0",
|
|
"bundlesize": "^1.0.0-beta.2",
|
|
"cem-plugin-vs-code-custom-data-generator": "^1.4.1",
|
|
"chai": "^4.2.0",
|
|
"chai-as-promised": "^7.1.1",
|
|
"chalk": "^4.1.0",
|
|
"concurrently": "^5.2.0",
|
|
"cross-env": "^7.0.2",
|
|
"es6-promisify": "^6.1.1",
|
|
"eslint": "^8.26.0",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-lit": "^1.6.1",
|
|
"eslint-plugin-lit-a11y": "^2.2.0",
|
|
"eslint-plugin-wc": "^1.3.2",
|
|
"globby": "^13.1.2",
|
|
"husky": "^6.0.0",
|
|
"lint-staged": "^10.0.0",
|
|
"looks-same": "^7.2.3",
|
|
"markdownlint-cli": "^0.17.0",
|
|
"mermaid": "^9.3.0",
|
|
"mkdirp-promise": "^5.0.1",
|
|
"mocha": "^10.1.0",
|
|
"mock-fs": "^5.1.2",
|
|
"npm-run-all": "^4.1.5",
|
|
"nyc": "^15.0.0",
|
|
"playwright": "^1.20.0",
|
|
"postinstall-postinstall": "^2.1.0",
|
|
"prettier": "^2.0.5",
|
|
"prettier-package-json": "^2.1.3",
|
|
"remark-html": "^13.0.1",
|
|
"rimraf": "^2.6.3",
|
|
"rollup": "^2.0.0",
|
|
"semver": "^7.5.2",
|
|
"sinon": "^7.2.2",
|
|
"ssl-root-cas": "^1.3.1",
|
|
"typescript": "~4.8.4",
|
|
"whatwg-fetch": "^3.0.0",
|
|
"wireit": "^0.7.2"
|
|
},
|
|
"bundlesize": [
|
|
{
|
|
"path": "./bundlesize/dist/*/*.js",
|
|
"maxSize": "20 kB"
|
|
}
|
|
],
|
|
"overrides": {
|
|
"sharp": "^0.31.x"
|
|
},
|
|
"prettier": {
|
|
"printWidth": 100,
|
|
"singleQuote": true,
|
|
"arrowParens": "avoid",
|
|
"trailingComma": "all"
|
|
},
|
|
"watch": {
|
|
"build-docs:watch": {
|
|
"patterns": [
|
|
"docs"
|
|
],
|
|
"extensions": [
|
|
"*"
|
|
]
|
|
}
|
|
}
|
|
}
|