Makes sure that only node tests are ran on multiple versions, rather than also running linting and browser tests on multiple node versions
90 lines
3.2 KiB
JSON
90 lines
3.2 KiB
JSON
{
|
|
"private": true,
|
|
"name": "@lion/root",
|
|
"license": "MIT",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"build:docs": "wca analyze \"packages/tabs/**/*.js\"",
|
|
"build:types": "tsc -p tsconfig.build.types.json",
|
|
"bundlesize": "rollup -c bundlesize/rollup.config.js && bundlesize",
|
|
"dev-server": "es-dev-server",
|
|
"format": "npm run format:eslint && npm run format:prettier",
|
|
"format:eslint": "eslint --ext .js,.html . --fix",
|
|
"format:prettier": "prettier \"**/*.{js,md}\" --write",
|
|
"lint": "run-p lint:*",
|
|
"lint:eclint": "git ls-files | xargs eclint check",
|
|
"lint:eslint": "eslint --ext .js,.html .",
|
|
"lint:markdownlint": "git ls-files '*.md' | xargs markdownlint --ignore '**/CHANGELOG.md'",
|
|
"lint:prettier": "prettier \"**/*.js\" --list-different || (echo '↑↑ these files are not prettier formatted ↑↑' && exit 1)",
|
|
"lint:types": "tsc",
|
|
"lint:versions": "node ./scripts/lint-versions.js",
|
|
"release": "npm run build:types && npm run build:docs && changeset publish",
|
|
"start": "npm run storybook",
|
|
"storybook": "start-storybook -p 9001",
|
|
"storybook:build": "build-storybook",
|
|
"storybook:build:start": "es-dev-server --root-dir storybook-static --open",
|
|
"test": "run-p test:browser test:node",
|
|
"test:browser": "wtr \"packages/**/*/test/**/*.test.js\" --coverage",
|
|
"test:browser:watch": "wtr \"packages/**/*/test/**/*.test.js\" --watch",
|
|
"test:browserstack": "wtr --config ./web-test-runner-browserstack.config.js \"packages/form-core/test/**/*.test.js\"",
|
|
"test:node": "node scripts/workspaces-scripts.mjs run test:node"
|
|
},
|
|
"devDependencies": {
|
|
"@changesets/cli": "^2.9.2",
|
|
"@commitlint/cli": "^7.0.0",
|
|
"@commitlint/config-conventional": "^7.0.0",
|
|
"@mdjs/core": "^0.3.1",
|
|
"@open-wc/building-rollup": "^1.2.1",
|
|
"@open-wc/demoing-storybook": "^2.0.2",
|
|
"@open-wc/eslint-config": "^1.0.0",
|
|
"@open-wc/testing": "^2.5.18",
|
|
"@open-wc/testing-helpers": "^1.0.0",
|
|
"@storybook/addon-a11y": "~5.0.0",
|
|
"@types/chai-dom": "^0.0.8",
|
|
"@web/dev-server-legacy": "^0.0.1",
|
|
"@web/test-runner": "^0.6.40",
|
|
"@web/test-runner-browserstack": "^0.0.6",
|
|
"@webcomponents/webcomponentsjs": "^2.4.4",
|
|
"babel-eslint": "^8.2.6",
|
|
"babel-polyfill": "^6.26.0",
|
|
"bundlesize": "^0.17.1",
|
|
"chai": "^4.2.0",
|
|
"chalk": "^4.1.0",
|
|
"concurrently": "^5.2.0",
|
|
"eclint": "^2.8.1",
|
|
"eslint": "^6.1.0",
|
|
"eslint-config-prettier": "^6.11.0",
|
|
"husky": "^1.0.0",
|
|
"lint-staged": "^10.0.0",
|
|
"markdownlint-cli": "^0.17.0",
|
|
"mocha": "^7.1.1",
|
|
"npm-run-all": "^4.1.5",
|
|
"prettier": "^2.0.5",
|
|
"prettier-package-json": "^2.1.3",
|
|
"rimraf": "^2.6.3",
|
|
"rollup": "^2.0.0",
|
|
"sinon": "^7.2.2",
|
|
"typescript": "^3.8.3",
|
|
"web-component-analyzer": "^1.0.3",
|
|
"webpack-merge": "^4.1.5",
|
|
"whatwg-fetch": "^3.0.0"
|
|
},
|
|
"bundlesize": [
|
|
{
|
|
"path": "./bundlesize/dist/core/*.js",
|
|
"maxSize": "11 kB"
|
|
},
|
|
{
|
|
"path": "./bundlesize/dist/all/*.js",
|
|
"maxSize": "45 kB"
|
|
}
|
|
],
|
|
"prettier": {
|
|
"printWidth": 100,
|
|
"singleQuote": true,
|
|
"arrowParens": "avoid",
|
|
"trailingComma": "all"
|
|
}
|
|
}
|