Skip to content

Commit

Permalink
templates: add typecheck script (#4783)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Dec 6, 2022
1 parent 7efd080 commit c9c9459
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 13 deletions.
3 changes: 2 additions & 1 deletion templates/arc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev:remix": "remix watch",
"dev:arc": "cross-env NODE_ENV=development arc sandbox",
"dev": "remix build && run-p \"dev:*\"",
"start": "cross-env NODE_ENV=production arc sandbox"
"start": "cross-env NODE_ENV=production arc sandbox",
"typecheck": "tsc -b"
},
"dependencies": {
"@remix-run/architect": "*",
Expand Down
3 changes: 2 additions & 1 deletion templates/cloudflare-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev:remix": "remix watch",
"dev:wrangler": "cross-env NODE_ENV=development wrangler pages dev ./public",
"dev": "remix build && run-p \"dev:*\"",
"start": "cross-env NODE_ENV=production npm run dev:wrangler"
"start": "cross-env NODE_ENV=production npm run dev:wrangler",
"typecheck": "tsc -b"
},
"dependencies": {
"@remix-run/cloudflare": "*",
Expand Down
3 changes: 2 additions & 1 deletion templates/cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev:remix": "remix watch",
"dev:miniflare": "cross-env NODE_ENV=development miniflare ./build/index.js --watch",
"dev": "remix build && run-p \"dev:*\"",
"start": "cross-env NODE_ENV=production miniflare ./build/index.js"
"start": "cross-env NODE_ENV=production miniflare ./build/index.js",
"typecheck": "tsc -b"
},
"dependencies": {
"@remix-run/cloudflare": "*",
Expand Down
11 changes: 7 additions & 4 deletions templates/deno/.vscode/resolve_npm_imports.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"// This import map is used solely for the denoland.vscode-deno extension.": "",
"// Remix does not support import maps.": "",
"// Dependency management is done through `npm` and `node_modules/` instead.": "",
"// Deno-only dependencies may be imported via URL imports (without using import maps).": "",
"comment": [
"Resolve NPM imports for `packages/remix-deno`.",
"This import map is used solely for the denoland.vscode-deno extension.",
"Remix does not support import maps.",
"Dependency management is done through `npm` and `node_modules/` instead.",
"Deno-only dependencies may be imported via URL imports (without using import maps)."
],
"imports": {
"// `@remix-run/deno` code is already a Deno module, so just get types for it directly from `node_modules/`": "",
"@remix-run/deno": "../node_modules/@remix-run/deno/index.ts",
Expand Down
3 changes: 2 additions & 1 deletion templates/deno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"dev:remix": "remix watch",
"format": "deno fmt --ignore=node_modules,build,public/build",
"lint": "deno lint --ignore=node_modules,build,public/build",
"start": "cross-env NODE_ENV=production deno run --unstable --allow-net --allow-read --allow-env ./build/index.js"
"start": "cross-env NODE_ENV=production deno run --unstable --allow-net --allow-read --allow-env ./build/index.js",
"typecheck": "deno check"
},
"dependencies": {
"@remix-run/deno": "*",
Expand Down
3 changes: 2 additions & 1 deletion templates/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "remix build && run-p \"dev:*\"",
"dev:node": "cross-env NODE_ENV=development nodemon --require dotenv/config ./server.js --watch ./server.js",
"dev:remix": "remix watch",
"start": "cross-env NODE_ENV=production node ./server.js"
"start": "cross-env NODE_ENV=production node ./server.js",
"typecheck": "tsc -b"
},
"dependencies": {
"@remix-run/express": "*",
Expand Down
3 changes: 2 additions & 1 deletion templates/fly/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"build": "remix build",
"deploy": "fly deploy --remote-only",
"dev": "remix dev",
"start": "remix-serve build"
"start": "remix-serve build",
"typecheck": "tsc -b"
},
"dependencies": {
"@remix-run/node": "*",
Expand Down
3 changes: 2 additions & 1 deletion templates/netlify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"scripts": {
"build": "remix build",
"dev": "remix dev",
"start": "cross-env NODE_ENV=production netlify dev"
"start": "cross-env NODE_ENV=production netlify dev",
"typecheck": "tsc -b"
},
"dependencies": {
"@netlify/functions": "^1.3.0",
Expand Down
3 changes: 2 additions & 1 deletion templates/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"scripts": {
"build": "remix build",
"dev": "remix dev",
"start": "remix-serve build"
"start": "remix-serve build",
"typecheck": "tsc -b"
},
"dependencies": {
"@remix-run/node": "*",
Expand Down
3 changes: 2 additions & 1 deletion templates/vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"sideEffects": false,
"scripts": {
"build": "remix build",
"dev": "remix dev"
"dev": "remix dev",
"typecheck": "tsc -b"
},
"dependencies": {
"@remix-run/node": "*",
Expand Down

0 comments on commit c9c9459

Please sign in to comment.