This commit is contained in:
Zengtudor 2024-08-11 10:48:23 +08:00
parent 417ffc49de
commit b7ae7cc27b
5 changed files with 17 additions and 3 deletions

1
.gitignore vendored
View File

@ -132,3 +132,4 @@ dist
.pnp.*
package-lock.json
pnpm-lock.yaml

View File

@ -1,3 +1,13 @@
# nmake
一个用Nodejs作为框架编译C/C++的代码库,未来可能会支持更多语言
一个用Nodejs作为框架编译C/C++的代码库,未来可能会支持更多语言
## 运行源码
```bash
npm i pnpm -g
pnpm install
pnpm run dev
# or
tsc -w
node ./build/index.js
```

View File

@ -18,6 +18,8 @@
"author": "Zengtudor",
"license": "MIT",
"devDependencies": {
"@types/minimist": "^1.2.5",
"@types/node": "^22.2.0",
"typescript": "^5.5.4"
},
"dependencies": {

View File

@ -1 +1,2 @@
console.log("hello world")
const argv = require('minimist')(process.argv.slice(2));

View File

@ -76,7 +76,7 @@
/* Interop Constraints */
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */