Comments (6)
"scripts": {
"build": "run-s build:*",
"build:css": "npm run generate:css -- --minify",
"build:remix": "remix build",
"dev": "run-p dev:*",
"dev:css": "npm run generate:css -- --watch",
"dev:remix": "node --require ./mocks ./node_modules/.bin/remix dev",
"format": "prettier --write .",
"generate:css": "tailwindcss -o ./app/styles/tailwind.css",
"postinstall": "remix setup node",
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
"setup": "prisma migrate dev",
"start": "remix-serve build",
"start:mocks": "node --require ./mocks ./node_modules/.bin/remix-serve build",
"test": "vitest",
"test:e2e:dev": "start-server-and-test dev http://localhost:3000 \"cypress open\"",
"pretest:e2e:run": "npm run build",
"test:e2e:run": "cross-env PORT=8811 start-server-and-test start:mocks http://localhost:8811 \"cypress run\"",
"typecheck": "tsc -b && tsc -b cypress",
"validate": "run-p \"test -- --run\" lint typecheck test:e2e:run"
},
My Scripts
$ npm run validate
> validate
> run-p "test -- --run" lint typecheck test:e2e:run
> test
> vitest "--run"
> lint
> eslint --cache --cache-location ./node_modules/.cache/eslint .
> pretest:e2e:run
> npm run build
> typecheck
> tsc -b && tsc -b cypress
> build
> run-s build:*
RUN v0.7.4 C:/Users/Moish/Documents/Github Repos/my-remix-app
> build:css
> npm run generate:css -- --minify
> generate:css
> tailwindcss -o ./app/styles/tailwind.css "--minify"
Done in 677ms.
> build:remix
> remix build
Building Remix app in production mode...
√ app/utils.test.ts (2)
Test Files 1 passed (1)
Tests 2 passed (2)
Time 9.76s (in thread 8ms, 128585.79%)
Built in 2.7s
> test:e2e:run
> cross-env PORT=8811 start-server-and-test start:mocks http://localhost:8811 "cypress run"
1: starting server using command "npm run start:mocks"
and when url "[ 'http://localhost:8811' ]" is responding with HTTP status code 200
running tests using command "cypress run"
> start:mocks
> node --require ./mocks ./node_modules/.bin/remix-serve build
🔶 Mock server running
SyntaxError: missing ) after argument list
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1027:15)
at Module._compile (node:internal/modules/cjs/loader:1063:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Object.newLoader (C:\Users\Moish\Documents\Github Repos\my-remix-app\node_modules\esbuild-register\dist\node.js:2262:9)
at Object.extensions..js (C:\Users\Moish\Documents\Github Repos\my-remix-app\node_modules\esbuild-register\dist\node.js:4801:24)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
Node.js v17.7.1
Error: server closed unexpectedly
at ChildProcess.onClose (C:\Users\Moish\Documents\Github Repos\my-remix-app\node_modules\start-server-and-test\src\index.js:75:14)
at ChildProcess.emit (node:events:527:28)
at maybeClose (node:internal/child_process:1090:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
ERROR: "test:e2e:run" exited with 1.
Unfortunately this is the error.
from indie-stack.
I think I've fixed it now. Could you try again?
from indie-stack.
I think this should fix it: ab8566b
Could you verify that it's been fixed?
from indie-stack.
Heres a screen recording of the debugger:
New.Tab.mp4
from indie-stack.
Could you try the latest version of this stack with Node v16 (instead of v17 which is an unstable version of Node) and let me know whether that fixes the issue?
from indie-stack.
This is now being tracked in #20
from indie-stack.
Related Issues (20)
- Fly Instance runs out of memory on deployment HOT 11
- Failed app run HOT 3
- Missing Environment Variables when Prisma is removed HOT 3
- Env variables undefined in build but fine in dev HOT 1
- pnpm is not preinstalled and causes an error in Cypress HOT 3
- No region defined in the fly deploy command, causes deployment to crash HOT 10
- Remix and Cypress hydration problem HOT 7
- hydration failed,and css file will request twice HOT 1
- npm run dev errors out in windows machines with "Cannot find module '--require/package.json'"
- Error during deployment in Fly.io, Dockerfile needs to give permissons to `start.sh` script HOT 3
- Timeout when Running e2e tests on a fresh installation
- Typecheck fails because it can't find definitions for cypress or @testing-library/cypress HOT 6
- throw new Error(`Failed to kill process ${pid}: ${error}`) after code change HOT 3
- Tailwind SourceMap/EsBuild Issue HOT 4
- Error upon deployment: you must be authenticated
- Cypress custom commands doesn't load HOT 2
- Use `fly launch`/`dockerfile-node` instead of `.dockerignore`, `Dockerfile`, `fly.toml` & `start.sh` HOT 9
- Deployment in Fly.io crashes with JavaScript heap out of memory HOT 5
- bun breaks deploy HOT 2
- Initial commit will not deploy HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from indie-stack.