package.json 5.75 KB
Newer Older
1
{
2
3
4
5
  "license": "MIT",
  "name": "sdk-codegen-all",
  "description": "All workspaces for SDK code generation",
  "author": "Looker",
Luke Bowerman's avatar
Luke Bowerman committed
6
7
8
9
  "private": true,
  "workspaces": [
    "packages/*"
  ],
10
11
12
13
  "homepage": "https://github.com/looker-open-source/sdk-codegen#readme",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/looker-open-source/sdk-codegen.git"
Luke Bowerman's avatar
Luke Bowerman committed
14
  },
15
16
17
18
19
20
  "bugs": {
    "url": "https://github.com/looker-open-source/sdk-codegen/issues"
  },
  "engines": {
    "node": ">=12",
    "yarn": ">=1.14.0"
Luke Bowerman's avatar
Luke Bowerman committed
21
22
  },
  "scripts": {
23
24
    "convert": "ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/src/specConvert.ts",
    "legacy": "ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/src/legacy.ts",
25
    "sdk": "NODE_CONFIG_DIR=./packages/sdk-codegen-scripts/config ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/src/sdkGen.ts",
26
    "jsonify": "ts-node -O '{ \"module\": \"commonjs\", \"target\": \"es2019\" }' packages/sdk-codegen-scripts/src/yamlToJson.ts",
27
    "view": "yarn api-explorer",
28
    "wipe": "rm -rf api spec",
29
30
    "prebuild": "yarn clean",
    "build": "run-p -c build:*",
Luke Bowerman's avatar
Luke Bowerman committed
31
32
33
    "build:es": "yarn lerna exec --stream 'BABEL_ENV=build babel src --root-mode upward --out-dir lib --source-maps --extensions .ts,.tsx --no-comments'",
    "build:ts": "yarn lerna exec --stream --sort 'tsc -b tsconfig.build.json'",
    "clean": "rm -Rf packages/*/lib",
34
    "prepublishOnly": "yarn test",
35
    "deploy": "yarn workspace sdk deploy",
36
37
    "deploy:codegen": "lerna run deploy --scope sdk-codegen -c",
    "deploy:sdk": "lerna run deploy --scope sdk",
38
39
40
41
42
43
    "fix": "yarn lint:es --fix",
    "lint": "run-p -c lint:*",
    "lint:es": "eslint 'packages/**/*.ts{,x}' --cache",
    "lint:ts": "tsc",
    "lint-staged": "yarn exec lint-staged",
    "test": "yarn jest",
44
45
46
    "test:ts": "yarn jest --reporters=default --reporters=jest-junit",
    "test:iphone": "xcodebuild test -project swift/looker/looker.xcodeproj -scheme looker-Package -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11,OS=13.4.1' | xcpretty --test --color",
    "test:jest": "DOT_ENV_FILE=.env.test jest",
47
    "bootstrap": "lerna clean -y && lerna bootstrap"
Luke Bowerman's avatar
Luke Bowerman committed
48
  },
49
50
51
52
53
54
55
56
57
58
59
  "devDependencies": {
    "@babel/cli": "^7.8.4",
    "@babel/core": "^7.9.0",
    "@babel/plugin-proposal-class-properties": "^7.8.3",
    "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
    "@babel/plugin-proposal-object-rest-spread": "^7.9.5",
    "@babel/plugin-proposal-optional-chaining": "^7.9.0",
    "@babel/preset-env": "^7.9.6",
    "@babel/preset-react": "7.9.4",
    "@babel/preset-typescript": "^7.9.0",
    "@babel/runtime": "^7.9.2",
Luke Bowerman's avatar
Luke Bowerman committed
60
    "@babel/runtime-corejs3": "^7.10.2",
61
62
    "@looker/eslint-config": "^1.0.14",
    "@looker/prettier-config": "^1.0.15",
63
    "@stoplight/spectral": "^5.0.0",
64
    "@testing-library/jest-dom": "^5.5.0",
65
66
    "@types/blueimp-md5": "^2.7.0",
    "@types/ini": "^1.3.30",
67
    "@types/jest": "^25.2.3",
68
69
    "@types/js-yaml": "^3.12.1",
    "@types/lodash": "^4.14.144",
70
    "@types/node": "^13.13.4",
71
72
73
74
    "@types/prettier": "^1.18.2",
    "@types/readable-stream": "^2.3.5",
    "@types/request": "^2.48.3",
    "@types/request-promise-native": "^1.0.17",
75
76
77
78
79
80
81
82
83
    "babel-core": "^7.0.0-bridge",
    "babel-plugin-styled-components": "^1.10.7",
    "core-js": "^3.6.5",
    "enzyme": "^3.11.0",
    "enzyme-adapter-react-16": "^1.15.2",
    "eslint": "^6.8.0",
    "eslint-import-resolver-typescript": "^2.0.0",
    "eslint-import-resolver-webpack": "^0.12.1",
    "eslint-plugin-header": "^3.0.0",
Luke Bowerman's avatar
Luke Bowerman committed
84
    "eslint-plugin-import": "^2.20.2",
85
    "eslint-plugin-mdx": "^1.6.8",
John Kaster's avatar
John Kaster committed
86
    "eslint-plugin-prettier": "^3.1.3",
87
    "jest": "^26.0.1",
88
    "jest-canvas-mock": "^2.2.0",
89
    "jest-junit": "^10.0.0",
90
    "jest-styled-components": "^6.3.4",
91
    "js-yaml": "^3.13.1",
92
93
    "lerna": "^3.20.2",
    "lint-staged": "^10.2.2",
94
95
    "lodash": "^4.17.15",
    "node-fetch": "^2.6.0",
96
    "npm-run-all": "^4.1.5",
97
    "openapi3-ts": "^1.3.0",
98
    "pre-commit": "1.2.2",
99
    "prettier": "^1.18.2",
100
101
102
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "styled-components": "^4.4.1",
103
    "ts-jest": "^26.0.0",
104
    "ts-node": "^8.1.0",
105
    "typescript": "3.8.2",
Luke Bowerman's avatar
Luke Bowerman committed
106
    "webpack": "^4.43.0"
107
  },
108
  "dependencies": {},
109
110
  "lint-staged": {
    "**/*.ts?(x)": [
Luke Bowerman's avatar
Luke Bowerman committed
111
      "eslint"
112
113
    ],
    "**/*.js?(x)": [
Luke Bowerman's avatar
Luke Bowerman committed
114
      "eslint"
115
116
    ],
    "**/*.mdx": [
Luke Bowerman's avatar
Luke Bowerman committed
117
      "eslint"
118
    ]
Luke Bowerman's avatar
Luke Bowerman committed
119
  },
120
121
122
123
124
125
126
127
128
  "pre-commit": [
    "lint-staged"
  ],
  "eslintConfig": {
    "extends": [
      "@looker/eslint-config/no-type-checking"
    ],
    "plugins": [
      "header",
129
      "prettier"
130
131
132
133
134
135
136
137
138
    ],
    "rules": {
      "prettier/prettier": "error",
      "@typescript-eslint/no-explicit-any": "off",
      "header/header": [
        2,
        "config/license-header.js"
      ],
      "import/default": "off",
139
      "sort-keys": "off"
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
    },
    "settings": {
      "import/resolver": {
        "typescript": {
          "directory": "./tsconfig.json"
        }
      },
      "import/external-module-folders": [
        "node_modules",
        "packages"
      ]
    },
    "overrides": [
      {
        "files": [
          "**/*.ts"
        ],
        "rules": {
          "@typescript-eslint/interface-name-prefix": "off",
159
          "@typescript-eslint/no-unused-vars": "warn",
160
          "@typescript-eslint/camelcase": "off",
161
162
163
164
          "sort-keys": "off",
          "sort-keys-fix/sort-keys-fix": "off",
          "no-useless-constructor": "off",
          "@typescript-eslint/no-empty-interface": "off"
165
166
167
168
169
        }
      }
    ]
  },
  "prettier": "@looker/prettier-config",
170
171
172
173
174
175
176
  "prettierConfig": {
    "overrides": {
      "rules": {
        "trailingComma": "all"
      }
    }
  },
177
178
  "keywords": [],
  "resolutions": {
jax's avatar
jax committed
179
180
    "set-value": "^2.0.1",
    "typescript": "3.8.2"
181
  }
John Kaster's avatar
John Kaster committed
182
}