Skip to content

Commit

Permalink
infra done
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandra-c committed May 17, 2022
1 parent 46951a7 commit 5652291
Show file tree
Hide file tree
Showing 9 changed files with 205 additions and 3,285 deletions.
10 changes: 0 additions & 10 deletions .editorconfig

This file was deleted.

6 changes: 0 additions & 6 deletions .vim/coc-settings.json

This file was deleted.

28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.2.0.cjs
22 changes: 4 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,20 @@
"name": "rocket-toolkit",
"packageManager": "yarn@3.2.0",
"private": true,
"engines": {
"node": ">=16.x"
},
"workspaces": [
"packages/*"
],
"scripts": {
"build": "yarn run clean && yarn run -T tsc",
"clean": "rimraf ./dist && rimraf ./tsconfig.buildinfo",
"compile": "tsc --build",
"compile-watch": "tsc -b -w",
"test": "yarn run build",
"prettier": "prettier --write .",
"lint": "eslint --fix --ext ."
"build": "yarn workspaces foreach run build"
},
"devDependencies": {
"@types/eslint": "^8",
"@types/jest": "^27.5.1",
"@types/node": "^17.0.32",
"@types/prettier": "^2",
"@types/rimraf": "^3",
"@typescript-eslint/eslint-plugin": "^5.23.0",
"@typescript-eslint/parser": "^5.23.0",
"eslint": "7.32.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^28.1.0",
"prettier": "^2.6.2",
"rimraf": "^3.0.2",
"ts-jest": "^28.0.2",
"ts-node": "^10.7.0",
"typescript": "^4.6.3"
}
}
12 changes: 6 additions & 6 deletions packages/apollo-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "@rocket-toolkit/apollo-logger",
"packageManager": "yarn@3.2.0",
"type": "commonjs",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"composite": true,
"scripts": {
"build": "yarn run clean && yarn run compile",
"clean": "rimraf ./dist && rimraf ./tsconfig.buildinfo",
"compile": "tsc --build",
"test": "yarn run build"
"build": "tsc",
"lint": "eslint src/*.ts",
"test": "jest",
"clean": "rm -r dist/*"
},
"devDependencies": {
"@types/node": "^17.0.32",
Expand Down
11 changes: 9 additions & 2 deletions packages/apollo-logger/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"compilerOptions": {
"composite": true
"composite": true,
"target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
"outDir": "./dist" /* Redirect output structure to the directory. */,
"strict": true /* Enable all strict type-checking options. */,
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
"skipLibCheck": true /* Skip type checking of declaration files. */,
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
},
"extends": "../../tsconfig"
"exclude": ["tests/**", "dist/**"]
}
19 changes: 0 additions & 19 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"lib": ["ESNext", "ES2015"],
"outDir": "./dist",
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true,
"noEmitOnError": true,
"forceConsistentCasingInFileNames": true,
"declaration": true,
"declarationMap": true,
// "sourceMap": true,
"strictNullChecks": true,
"useUnknownInCatchVariables": false,
"resolveJsonModule": true
},
"include": ["**/src/**/*"],
"exclude": ["**/dist", ".vscode", "packages/**/dist/**"],
"references": [
{
"path": "./packages/apollo-logger"
Expand Down
Loading

0 comments on commit 5652291

Please sign in to comment.