Skip to content

Commit

Permalink
feat: setup project to build and run on windows os
Browse files Browse the repository at this point in the history
  • Loading branch information
cahnory committed Oct 30, 2023
1 parent 864b8c0 commit 439fc56
Show file tree
Hide file tree
Showing 6 changed files with 149 additions and 10 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ on:

jobs:
ci:
runs-on: ubuntu-latest

strategy:
matrix:
os:
- ubuntu-latest
node-version:
- 18.x
- 20.x
include:
- os: windows-latest
node-version: 20.x

runs-on: ${{ matrix.os }}

steps:
- name: Checkout to ${{ github.ref }}
Expand Down
5 changes: 3 additions & 2 deletions apps/node-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "rm -rf ./build && tsc --build --force",
"dev": "rm -f ./tsconfig.tsbuildinfo && tsc --watch",
"build": "rimraf ./build && tsc --build --force",
"dev": "tsc --watch",
"test": "pnpm test:lint && pnpm test:types && pnpm test:unit",
"test:lint": "eslint .",
"test:types": "tsc --noEmit",
Expand All @@ -19,6 +19,7 @@
"@pnpm-monorepo/sample-lib": "workspace:*"
},
"devDependencies": {
"rimraf": "^5.0.5",
"typescript": "^5.2.2"
}
}
5 changes: 3 additions & 2 deletions libs/react-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
}
},
"scripts": {
"build": "rm -rf ./build && tsc --build --force",
"dev": "rm -f ./tsconfig.tsbuildinfo && tsc --watch",
"build": "rimraf ./build && tsc --build --force",
"dev": "rimraf ./tsconfig.tsbuildinfo && tsc --watch",
"test": "pnpm test:lint && pnpm test:types && pnpm test:unit",
"test:lint": "eslint .",
"test:types": "tsc --noEmit",
Expand All @@ -28,6 +28,7 @@
"@types/react": "^18.2.28",
"@types/react-dom": "^18.2.13",
"@vanilla-extract/css": "^1.13.0",
"rimraf": "^5.0.5",
"typescript": "^5.2.2"
}
}
5 changes: 3 additions & 2 deletions libs/sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
}
},
"scripts": {
"build": "rm -rf ./build && tsc --build --force",
"dev": "rm -f ./tsconfig.tsbuildinfo && tsc --watch",
"build": "rimraf ./build && tsc --build --force",
"dev": "rimraf ./tsconfig.tsbuildinfo && tsc --watch",
"test": "pnpm test:lint && pnpm test:types && pnpm test:unit",
"test:lint": "eslint .",
"test:types": "tsc --noEmit",
"test:unit": "echo \"Warning: no test specified\" && exit 0"
},
"devDependencies": {
"rimraf": "^5.0.5",
"typescript": "^5.2.2"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"test:lint": "turbo run test:lint --continue --output-logs=errors-only",
"test:types": "turbo run test:types --continue --output-logs=errors-only",
"test:unit": "turbo run test:unit --continue --output-logs=errors-only",
"test:commit": "scripts/test-commit.sh $npm_package_config_defaultBranch",
"test:rebase": "scripts/test-rebase.sh $npm_package_config_defaultBranch"
"test:commit": "bash scripts/test-commit.sh $npm_package_config_defaultBranch",
"test:rebase": "bash scripts/test-rebase.sh $npm_package_config_defaultBranch"
},
"devDependencies": {
"@commitlint/cli": "^18.2.0",
Expand Down
131 changes: 131 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 439fc56

Please sign in to comment.