Skip to content

Commit

Permalink
refactor: convert TS files using rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
goosewobbler committed Sep 9, 2024
1 parent 72c4535 commit f94572a
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 874 deletions.
748 changes: 0 additions & 748 deletions e2e/js/api.spec.js

This file was deleted.

18 changes: 0 additions & 18 deletions e2e/js/application.spec.js

This file was deleted.

35 changes: 0 additions & 35 deletions e2e/js/dom.spec.js

This file was deleted.

62 changes: 0 additions & 62 deletions e2e/js/interaction.spec.js

This file was deleted.

5 changes: 4 additions & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"private": "true",
"scripts": {
"ci": "pnpm i && pnpm test",
"clean": "pnpm dlx shx rm -rf ./node_modules pnpm-lock.yaml ./wdio-logs* ./out",
"clean": "pnpm dlx shx rm -rf ./js ./node_modules pnpm-lock.yaml ./wdio-logs* ./out",
"init": "pnpm dlx shx mkdir -p ./js && rollup -c",
"logs": "pnpm dlx shx cat ./wdio-logs*/*.log",
"test:e2e:forge-cjs": "cross-env EXAMPLE_DIR=forge-cjs pnpm run exec",
"test:e2e:forge-esm": "cross-env EXAMPLE_DIR=forge-esm pnpm run exec",
Expand Down Expand Up @@ -44,13 +45,15 @@
},
"devDependencies": {
"@electron-forge/cli": "^7.2.0",
"@rollup/plugin-typescript": "^11.1.6",
"@types/mocha": "^10.0.6",
"@types/node": "^20.16.1",
"@vitest/spy": "^2.0.5",
"@wdio/types": "^9.0.8",
"global-jsdom": "^24.0.0",
"jsdom": "^24.1.1",
"read-package-up": "^11.0.0",
"rollup": "^4.21.2",
"ts-loader": "^9.4.4",
"typescript": "^5.5.4"
}
Expand Down
10 changes: 10 additions & 0 deletions e2e/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import typescript from '@rollup/plugin-typescript';

export default {
input: '*.spec.ts',
output: {
dir: 'js',
format: 'esm',
},
plugins: [typescript()],
};
28 changes: 28 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 13 additions & 10 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,43 +20,46 @@
"//#lint": {
"inputs": ["**/*.{j,mj,cj,t}s"]
},
"@repo/e2e#init": {
"dependsOn": ["wdio-electron-service#build"]
},
"@repo/e2e#test:e2e:builder-cjs": {
"dependsOn": ["example-builder-cjs#build", "wdio-electron-service#build", "@repo/e2e#test:e2e:builder-esm"]
"dependsOn": ["example-builder-cjs#build", "@repo/e2e#init", "@repo/e2e#test:e2e:builder-esm"]
},
"@repo/e2e#test:e2e:builder-esm": {
"dependsOn": ["example-builder-esm#build", "wdio-electron-service#build"]
"dependsOn": ["example-builder-esm#build", "@repo/e2e#init"]
},
"@repo/e2e#test:e2e:forge-cjs": {
"dependsOn": ["example-forge-cjs#build", "wdio-electron-service#build", "@repo/e2e#test:e2e:forge-esm"]
"dependsOn": ["example-forge-cjs#build", "@repo/e2e#init", "@repo/e2e#test:e2e:forge-esm"]
},
"@repo/e2e#test:e2e:forge-esm": {
"dependsOn": ["example-forge-esm#build", "wdio-electron-service#build"]
"dependsOn": ["example-forge-esm#build", "@repo/e2e#init"]
},
"@repo/e2e#test:e2e:no-binary-cjs": {
"dependsOn": ["example-no-binary-cjs#build", "wdio-electron-service#build", "@repo/e2e#test:e2e:no-binary-esm"]
"dependsOn": ["example-no-binary-cjs#build", "@repo/e2e#init", "@repo/e2e#test:e2e:no-binary-esm"]
},
"@repo/e2e#test:e2e:no-binary-esm": {
"dependsOn": ["example-no-binary-esm#build", "example-no-binary-cjs#build", "wdio-electron-service#build"]
"dependsOn": ["example-no-binary-esm#build", "example-no-binary-cjs#build", "@repo/e2e#init"]
},
"@repo/e2e#test:e2e-mac-universal:forge-cjs": {
"dependsOn": [
"example-forge-cjs#build:mac-universal",
"wdio-electron-service#build",
"@repo/e2e#init",
"@repo/e2e#test:e2e-mac-universal:forge-esm"
]
},
"@repo/e2e#test:e2e-mac-universal:forge-esm": {
"dependsOn": ["example-forge-esm#build:mac-universal", "wdio-electron-service#build"]
"dependsOn": ["example-forge-esm#build:mac-universal", "@repo/e2e#init"]
},
"@repo/e2e#test:e2e-mac-universal:builder-cjs": {
"dependsOn": [
"example-builder-cjs#build:mac-universal",
"wdio-electron-service#build",
"@repo/e2e#init",
"@repo/e2e#test:e2e-mac-universal:builder-esm"
]
},
"@repo/e2e#test:e2e-mac-universal:builder-esm": {
"dependsOn": ["example-builder-esm#build:mac-universal", "wdio-electron-service#build"]
"dependsOn": ["example-builder-esm#build:mac-universal", "@repo/e2e#init"]
},
"@wdio/electron-types#build": {
"dependsOn": ["//#lint", "//#format:check", "test:unit"],
Expand Down

0 comments on commit f94572a

Please sign in to comment.