forked from finos/legend-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
103 lines (103 loc) · 5.31 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
{
"name": "legend-studio",
"private": true,
"type": "module",
"workspaces": [
"packages/*"
],
"scripts": {
"build": "yarn clean && yarn workspaces foreach --topological-dev --verbose run build",
"build:sass": "yarn workspaces foreach --all --parallel --verbose run build:sass",
"build:tsc": "tsc --build",
"changeset": "node ./scripts/workflow/generateChangeset.js",
"changeset:cli": "changeset",
"check:changeset": "node ./scripts/workflow/checkChangesets.js",
"check:ci": "yarn check:pkg-constraints && yarn check:project-ref && yarn check:tsc && yarn check:format && yarn check:copyright && yarn check:changeset",
"check:copyright": "node ./scripts/copyright/checkCopyrightHeaders.js",
"check:format": "prettier --list-different \"(scripts|docs)/**/*.{md,json,mjs,cjs,js,ts,tsx,html,scss,css}\" \"packages/*/**/*.{md,json,mjs,cjs,js,ts,tsx,html,scss,css}\" && yarn sort-package-json --check \"package.json\" \"packages/*/package.json\"",
"check:pkg-constraints": "yarn constraints && echo \"Checking for circular dependencies...\" && yarn workspaces foreach --topological-dev exec \"echo '' >/dev/null\"",
"check:project-ref": "node ./scripts/typescript/checkProjectReferenceConfigs.js",
"check:tsc": "yarn build:tsc",
"check:update": "yarn upgrade-interactive",
"clean": "rimraf \"build\" && yarn workspaces foreach --all --topological-dev --parallel --verbose run clean",
"dev": "yarn dev:studio",
"dev:query": "yarn workspace @finos/legend-query-deployment dev",
"dev:studio": "yarn workspace @finos/legend-studio-deployment dev",
"dev:tsc": "tsc --build --watch",
"fix": "yarn fix:copyright && yarn fix:style && yarn fix:js && yarn fix:format",
"fix:copyright": "node ./scripts/copyright/checkCopyrightHeaders.js --update",
"fix:format": "prettier --write --loglevel=warn \"(scripts|docs)/**/*.{md,json,mjs,cjs,js,ts,tsx,html,scss,css}\" \"packages/*/**/*.{md,json,mjs,cjs,js,ts,tsx,html,scss,css}\" && yarn sort-package-json \"package.json\" \"packages/*/package.json\"",
"fix:js": "cross-env NODE_ENV=production FORCE_COLOR=1 eslint --cache --cache-location ./build/.eslintcache \"scripts/**/*.{mjs,cjs,js,ts,tsx}\" --report-unused-disable-directives --fix && cross-env FORCE_COLOR=1 yarn workspaces foreach --all --topological-dev --parallel --exclude legend-studio --verbose run lint:js --fix",
"fix:style": "yarn lint:style --fix",
"git:install-hooks": "husky install",
"git:pre-commit": "lint-staged",
"git:upstream:setup": "git remote add upstream https://github.com/finos/legend-studio.git",
"git:upstream:sync": "git pull --rebase upstream",
"postinstall": "husky install",
"lint": "yarn lint:js && yarn lint:style",
"lint:ci": "yarn lint:js --max-warnings=0 && yarn lint:style --max-warnings=0",
"lint:js": "cross-env NODE_ENV=production FORCE_COLOR=1 eslint --cache --cache-location ./build/.eslintcache \"scripts/**/*.{mjs,cjs,js,ts,tsx}\" --report-unused-disable-directives && cross-env FORCE_COLOR=1 yarn workspaces foreach --all --topological-dev --parallel --verbose run lint:js",
"lint:style": "stylelint --cache --cache-location ./build/.stylelintcache \"packages/*/style/**/*.{scss,css}\"",
"publish:prepare": "cross-env FORCE_COLOR=1 yarn build && cross-env FORCE_COLOR=1 yarn workspaces foreach --all --no-private --topological-dev --parallel --verbose run publish:prepare",
"release": "yarn publish:prepare && changeset publish",
"release:bump": "node ./scripts/release/createVersionBumpChangeset.js",
"release:github": "node ./scripts/release/createGithubVersion.js",
"setup": "yarn install && node ./scripts/workflow/checkNodeVersion.js && yarn git:install-hooks && yarn workspaces foreach --topological-dev --verbose run setup && yarn build",
"start": "yarn dev",
"test": "jest",
"test:ci": "yarn build && yarn test:coverage",
"test:coverage": "jest --coverage",
"test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand",
"test:watch": "jest --watch",
"version": "changeset version && yarn install && yarn fix:format"
},
"lint-staged": {
"*.{html,md,mdx}": [
"prettier --write"
],
"*.{js,jsx,ts,tsx}": [
"prettier --write"
],
"*.{scss,css}": [
"stylelint --cache --cache-location ./build/.stylelintcache --fix",
"prettier --write"
],
"package.json": [
"sort-package-json"
]
},
"browserslist": [
"last 2 Chrome versions"
],
"devDependencies": {
"@actions/github": "5.0.0",
"@babel/core": "7.15.5",
"@changesets/cli": "2.17.0",
"@finos/babel-preset-legend-studio": "workspace:*",
"@finos/eslint-plugin-legend-studio": "workspace:*",
"@finos/legend-dev-utils": "workspace:*",
"@finos/stylelint-config-legend-studio": "workspace:*",
"@juggle/resize-observer": "3.3.1",
"@types/jest": "27.0.2",
"@types/node": "16.10.2",
"chalk": "4.1.2",
"cross-env": "7.0.3",
"eslint": "7.32.0",
"fs-extra": "10.0.0",
"husky": "7.0.2",
"inquirer": "8.1.5",
"jest": "27.2.4",
"lint-staged": "11.1.2",
"prettier": "2.4.1",
"rimraf": "3.0.2",
"semver": "7.3.5",
"sort-package-json": "1.52.0",
"stylelint": "13.13.1",
"typescript": "4.4.3",
"yargs": "17.2.1"
},
"engines": {
"node": ">=14.17.1",
"yarn": ">=1.22.10"
}
}