88 lines
3 KiB
JSON
88 lines
3 KiB
JSON
{
|
|
"name": "@lion/root",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^7.0.0",
|
|
"@commitlint/config-conventional": "^7.0.0",
|
|
"@open-wc/demoing-storybook": "^1.1.1",
|
|
"@open-wc/eslint-config": "^1.0.0",
|
|
"@open-wc/prettier-config": "^0.1.0",
|
|
"@open-wc/testing": "^2.3.4",
|
|
"@open-wc/testing-karma": "^3.1.33",
|
|
"@open-wc/testing-karma-bs": "^1.1.58",
|
|
"@open-wc/testing-wallaby": "^0.1.12",
|
|
"@storybook/addon-a11y": "~5.0.0",
|
|
"@webcomponents/webcomponentsjs": "^2.2.5",
|
|
"babel-eslint": "^8.2.6",
|
|
"babel-polyfill": "^6.26.0",
|
|
"bundlesize": "^0.17.1",
|
|
"eclint": "^2.8.1",
|
|
"eslint": "^6.1.0",
|
|
"husky": "^1.0.0",
|
|
"lerna": "3.4.3",
|
|
"lint-staged": "^8.0.0",
|
|
"markdownlint-cli": "^0.17.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"rimraf": "^2.6.3",
|
|
"rollup": "^1.27.8",
|
|
"sinon": "^7.2.2",
|
|
"webpack-merge": "^4.1.5",
|
|
"whatwg-fetch": "^3.0.0"
|
|
},
|
|
"scripts": {
|
|
"start": "npm run storybook",
|
|
"storybook": "start-storybook -p 9001 --stories \"./packages/*/stories/*.stories.{js,mdx}\" --node-resolve --watch --open",
|
|
"storybook:build": "build-storybook --stories \"./packages/*/stories/*.stories.{js,mdx}\" --output-dir ./storybook-static",
|
|
"test": "karma start --coverage",
|
|
"test:watch": "karma start --auto-watch=true --single-run=false",
|
|
"test:compatibility": "karma start --compatibility all --coverage",
|
|
"test:compatibility:watch": "karma start --compatibility all --auto-watch=true --single-run=false",
|
|
"test:update-snapshots": "karma start --update-snapshots",
|
|
"test:prune-snapshots": "karma start --prune-snapshots",
|
|
"test:bs": "karma start karma.bs.config.js --coverage --compatibility all",
|
|
"test:bs:compatibility": "karma start karma.bs.config.js --coverage --compatibility all",
|
|
"lint": "run-p lint:*",
|
|
"lint:eclint": "git ls-files | xargs eclint check",
|
|
"lint:eslint": "eslint --ext .js,.html .",
|
|
"lint:prettier": "prettier \"**/*.js\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)",
|
|
"lint:markdownlint": "git ls-files '*.md' | xargs markdownlint --ignore '**/CHANGELOG.md'",
|
|
"lint:versions": "node ./scripts/lint-versions.js",
|
|
"format": "npm run format:eslint && npm run format:prettier",
|
|
"format:eslint": "eslint --ext .js,.html . --fix",
|
|
"format:prettier": "prettier \"**/*.{js,md}\" --write",
|
|
"bundlesize": "rollup -c bundlesize/rollup.config.js && bundlesize"
|
|
},
|
|
"lint-staged": {
|
|
"*": [
|
|
"eclint fix",
|
|
"git add"
|
|
],
|
|
"*.js": [
|
|
"eslint --fix",
|
|
"prettier --write",
|
|
"git add"
|
|
],
|
|
"*.md": [
|
|
"prettier --write",
|
|
"markdownlint",
|
|
"git add"
|
|
],
|
|
"*package.json": [
|
|
"node ./scripts/lint-versions.js"
|
|
]
|
|
},
|
|
"bundlesize": [
|
|
{
|
|
"path": "./bundlesize/dist/core/core-*.js",
|
|
"maxSize": "10 kB"
|
|
},
|
|
{
|
|
"path": "./bundlesize/dist/all/all-*.js",
|
|
"maxSize": "30 kB"
|
|
}
|
|
]
|
|
}
|