vitorsalgado / create-nodejs-ts Goto Github PK
View Code? Open in Web Editor NEWStarter Project for Node.js With TypeScript.
Home Page: https://www.npmjs.com/package/create-nodejs-ts
License: MIT License
Starter Project for Node.js With TypeScript.
Home Page: https://www.npmjs.com/package/create-nodejs-ts
License: MIT License
Describe the bug
By the readme Install app name is wrong
To Reproduce
Steps to reproduce the behavior:
npx create-nodejs-ts --no --app=bot
it will create a folder named my-app
Expected behavior
a folder created named bot
Screenshots
Environment (please complete the following information):
Additional context
i checked the source, it should use --name instead of --app arg
错误如下:
node is not recognized as an internal or external command
启动时提示,node不是内容命令,有人提示是环境变量错误,经过我检查node的环境变量是正确的。
解决办法:填写具体的node路径,
改制前
"start:dev": "nodemon --ext js,ts,json,env --exec "node --experimental-specifier-resolution=node --loader ts-node/esm" src/main.ts",
改之后
"start:dev": "nodemon --ext js,ts,json,env --exec "C://PROGRA~1//nodejs//node --experimental-specifier-resolution=node --loader ts-node/esm" src/main.ts",
Describe the bug
After generating a project with create-nodejs-ts, when I open the project using Microsoft Visual Studio Code (vscode) several error messages are popping up saying that some of the add-ins are terminating.
To Reproduce
Steps to reproduce the behavior:
npm create nodejs-ts
, creating a \try\my-app directorycode my-app
opens the vscode editor** Observed **
VSCode has outputs errors related to jest. It is complaining that an external process running jest has terminated. The text says:
'"jest.cmd"' is not recognized as an internal or external command,
operable program or batch file.
Jest process "watch-tests" ended unexpectedly
see troubleshooting: https://github.com/jest-community/vscode-jest/blob/master/README.md#troubleshooting
Expected behavior
Normal VsCode startup
Diagnosed Issue
The template seemed to have left out two steps VsCode assumes have been done.
git init
npm install
(or equivalant)It obviously wasn't a big deal to figure that out, but for less experienced devs, executing those steps would be great.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
PS C:\Try\my-app> npm -v
8.13.2
\\PS C:\Try\my-app> node -v
v18.5.0
PS C:\Try\my-app> code -v
1.69.1
b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a
x64
Additional context
Thanks, for your efforts so far. This is obviously only a minor glitch.
Hi, thank you for your project, i have question how it's supposed to work in development?
I try this command:
docker-compose -f deployments/dev/docker-compose.yml up
But there is no npm install in Dockerfile.dev so there is no nodemon and npm start fail.
Did i missing something ?
Describe the bug
Test suit fails. I suspect it is related to ES modules.
In this case the test was launched by a VSCode add-in for Jest. I will research and add more details.
Repro setup just like #385, but I ran git and npm install.
** messages **
[my-app]: Scheduled test run "watch-tests-1" for "orta.vscode-jest:my-app"
FAIL src/main.spec.ts
● Test suite failed to run
src/main.spec.ts:25:39 - error TS1343: The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.
25 const dir = dirname(fileURLToPath(import.meta.url))
~~~~~~~~~~~
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 3.21 s
* Screenshot *
![image](https://user-images.githubusercontent.com/2715647/179315420-bd6038da-b13e-41d3-a660-b35ec153fd0a.png)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.