imxc 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/init.js +7 -0
- package/package.json +1 -1
package/dist/init.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import * as fs from 'node:fs';
|
|
2
2
|
import * as path from 'node:path';
|
|
3
|
+
const GITIGNORE = `build/
|
|
4
|
+
node_modules/
|
|
5
|
+
*.ini
|
|
6
|
+
.cache/
|
|
7
|
+
`;
|
|
3
8
|
const APPSTATE_H = `#pragma once
|
|
4
9
|
#include <functional>
|
|
5
10
|
|
|
@@ -490,6 +495,7 @@ export function initProject(projectDir, projectName) {
|
|
|
490
495
|
fs.writeFileSync(path.join(srcDir, 'imx.d.ts'), IMX_DTS);
|
|
491
496
|
fs.writeFileSync(path.join(projectDir, 'tsconfig.json'), TSCONFIG);
|
|
492
497
|
fs.writeFileSync(path.join(projectDir, 'CMakeLists.txt'), cmakeTemplate(name, 'https://github.com/bgocumlu/imx.git'));
|
|
498
|
+
fs.writeFileSync(path.join(projectDir, '.gitignore'), GITIGNORE);
|
|
493
499
|
console.log(`imxc: initialized project "${name}"`);
|
|
494
500
|
console.log('');
|
|
495
501
|
console.log(' Created:');
|
|
@@ -499,6 +505,7 @@ export function initProject(projectDir, projectName) {
|
|
|
499
505
|
console.log(` src/imx.d.ts — type definitions for IDE support`);
|
|
500
506
|
console.log(` tsconfig.json — TypeScript config`);
|
|
501
507
|
console.log(` CMakeLists.txt — build config with FetchContent`);
|
|
508
|
+
console.log(` .gitignore — ignores build/, node_modules/, *.ini`);
|
|
502
509
|
console.log(` public/ — static assets (copied to exe directory)`);
|
|
503
510
|
console.log('');
|
|
504
511
|
console.log(' Next steps:');
|