Skip to content

Commit

Permalink
cleanup templates further
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 committed Sep 12, 2024
1 parent 5aadbbd commit d901341
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 223 deletions.
27 changes: 0 additions & 27 deletions templates/basic/flake.lock

This file was deleted.

5 changes: 2 additions & 3 deletions templates/basic/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
bun
corepack
deno
nodejs
nodejs_22
# For systems that do not ship with Python by default (required by `node-gyp`)
python3
];
};
Expand Down
29 changes: 2 additions & 27 deletions templates/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"access": "public",
"directory": "dist"
},
"description": "A basic Effect package",
"license": "MIT",
"scripts": {
"codegen": "build-utils prepare-v2",
"build": "pnpm build-esm && pnpm build-annotate && pnpm build-cjs && build-utils pack-v2",
Expand All @@ -21,19 +23,6 @@
"changeset-version": "changeset version && node scripts/version.mjs",
"changeset-publish": "pnpm build && TEST_DIST= pnpm vitest && changeset publish"
},
"resolutions": {
"dependency-tree": "^10.0.9",
"detective-amd": "^5.0.2",
"detective-cjs": "^5.0.1",
"detective-es6": "^4.0.1",
"detective-less": "^1.0.2",
"detective-postcss": "^6.1.3",
"detective-sass": "^5.0.3",
"detective-scss": "^4.0.3",
"detective-stylus": "^4.0.0",
"detective-typescript": "^11.1.0",
"@types/node": "^22.5.4"
},
"dependencies": {
"effect": "latest"
},
Expand All @@ -44,7 +33,6 @@
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.8",
"@edge-runtime/vm": "^4.0.0",
"@effect/build-utils": "^0.7.7",
"@effect/docgen": "^0.4.4",
"@effect/dtslint": "^0.1.0",
Expand All @@ -56,10 +44,6 @@
"@types/node": "^22.5.2",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"@vitest/browser": "^2.0.5",
"@vitest/coverage-v8": "^2.0.5",
"@vitest/expect": "^2.0.5",
"@vitest/web-worker": "^2.0.5",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"eslint": "^9.10.0",
"eslint-import-resolver-typescript": "^3.6.3",
Expand All @@ -68,13 +52,8 @@
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sort-destructure-keys": "^2.0.0",
"fast-check": "^3.21.0",
"glob": "^11.0.0",
"playwright": "^1.46.0",
"rimraf": "^6.0.1",
"tsx": "^4.17.0",
"typescript": "^5.6.2",
"vite": "^5.4.3",
"vitest": "^2.0.5"
},
"effect": {
Expand All @@ -90,12 +69,8 @@
}
},
"pnpm": {
"overrides": {
"vitest": "^2.0.5"
},
"patchedDependencies": {
"@changesets/[email protected]": "patches/@[email protected]",
"@changesets/[email protected]": "patches/@[email protected]",
"[email protected]": "patches/[email protected]"
}
}
Expand Down
26 changes: 0 additions & 26 deletions templates/basic/patches/@[email protected]

This file was deleted.

2 changes: 1 addition & 1 deletion templates/basic/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "./tsconfig.base.json",
"include": [],
"references": [
{ "path": "tsconfig.src.json" },
Expand Down
2 changes: 1 addition & 1 deletion templates/basic/tsconfig.src.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "./tsconfig.base.json",
"include": ["src"],
"compilerOptions": {
"types": ["node"],
Expand Down
2 changes: 1 addition & 1 deletion templates/basic/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "./tsconfig.base.json",
"include": ["test"],
"references": [
{ "path": "tsconfig.src.json" }
Expand Down
27 changes: 0 additions & 27 deletions templates/cli/flake.lock

This file was deleted.

5 changes: 2 additions & 3 deletions templates/cli/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
bun
corepack
deno
nodejs
nodejs_22
# For systems that do not ship with Python by default (required by `node-gyp`)
python3
];
};
Expand Down
19 changes: 4 additions & 15 deletions templates/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"access": "public",
"directory": "dist"
},
"description": "An Effect CLI application",
"license": "MIT",
"scripts": {
"build": "tsup && pnpm copy-package-json",
"build:ts": "tsup",
Expand Down Expand Up @@ -34,34 +36,21 @@
"@types/node": "^22.5.2",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"@vitest/browser": "^2.0.5",
"@vitest/coverage-v8": "^2.0.5",
"@vitest/expect": "^2.0.5",
"@vitest/web-worker": "^2.0.5",
"effect": "latest",
"eslint": "^9.9.1",
"eslint": "^9.10.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-codegen": "0.28.0",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sort-destructure-keys": "^2.0.0",
"fast-check": "^3.21.0",
"glob": "^11.0.0",
"playwright": "^1.46.0",
"rimraf": "^6.0.1",
"tsup": "^8.2.4",
"typescript": "^5.6.2",
"vite": "^5.4.3",
"vitest": "^2.0.5"
},
"pnpm": {
"overrides": {
"vitest": "^2.0.5"
},
"patchedDependencies": {
"@changesets/[email protected]": "patches/@[email protected]",
"@changesets/[email protected]": "patches/@[email protected]"
"@changesets/[email protected]": "patches/@[email protected]"
}
}
}
26 changes: 0 additions & 26 deletions templates/cli/patches/@[email protected]

This file was deleted.

13 changes: 0 additions & 13 deletions templates/cli/patches/[email protected]

This file was deleted.

27 changes: 0 additions & 27 deletions templates/monorepo/flake.lock

This file was deleted.

5 changes: 2 additions & 3 deletions templates/monorepo/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
bun
corepack
deno
nodejs
nodejs_22
# For systems that do not ship with Python by default (required by `node-gyp`)
python3
];
};
Expand Down
23 changes: 0 additions & 23 deletions templates/monorepo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,13 @@
"changeset-version": "changeset version && node scripts/version.mjs",
"changeset-publish": "pnpm build && TEST_DIST= pnpm vitest && changeset publish"
},
"resolutions": {
"dependency-tree": "^10.0.9",
"detective-amd": "^5.0.2",
"detective-cjs": "^5.0.1",
"detective-es6": "^4.0.1",
"detective-less": "^1.0.2",
"detective-postcss": "^6.1.3",
"detective-sass": "^5.0.3",
"detective-scss": "^4.0.3",
"detective-stylus": "^4.0.0",
"detective-typescript": "^11.1.0",
"@types/node": "^22.5.4"
},
"devDependencies": {
"@babel/cli": "^7.24.8",
"@babel/core": "^7.25.2",
"@babel/plugin-transform-export-namespace-from": "^7.24.7",
"@babel/plugin-transform-modules-commonjs": "^7.24.8",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.8",
"@edge-runtime/vm": "^4.0.0",
"@effect/build-utils": "^0.7.7",
"@effect/eslint-plugin": "^0.2.0",
"@effect/language-service": "^0.1.0",
Expand All @@ -48,10 +34,6 @@
"@types/node": "^22.5.2",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"@vitest/browser": "^2.0.5",
"@vitest/coverage-v8": "^2.0.5",
"@vitest/expect": "^2.0.5",
"@vitest/web-worker": "^2.0.5",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"eslint": "^9.10.0",
"eslint-import-resolver-typescript": "^3.6.3",
Expand All @@ -60,13 +42,8 @@
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-sort-destructure-keys": "^2.0.0",
"fast-check": "^3.21.0",
"glob": "^11.0.0",
"playwright": "^1.46.0",
"rimraf": "^6.0.1",
"tsx": "^4.17.0",
"typescript": "^5.6.2",
"vite": "^5.4.3",
"vitest": "^2.0.5"
},
"pnpm": {
Expand Down
1 change: 1 addition & 0 deletions templates/monorepo/packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@template/cli",
"version": "0.0.0",
"type": "module",
"license": "MIT",
"scripts": {
"codegen": "build-utils prepare-v2",
"build": "pnpm build-esm && pnpm build-annotate && pnpm build-cjs && build-utils pack-v2",
Expand Down
Loading

0 comments on commit d901341

Please sign in to comment.