nextdesk 0.1.0 → 0.1.1
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/commands/init.js +7 -7
- package/package.json +1 -1
- package/src/commands/init.ts +7 -7
package/dist/commands/init.js
CHANGED
|
@@ -66,19 +66,19 @@ async function init(options) {
|
|
|
66
66
|
if (!packageJson.scripts) {
|
|
67
67
|
packageJson.scripts = {};
|
|
68
68
|
}
|
|
69
|
-
if (!packageJson.scripts['
|
|
70
|
-
packageJson.scripts['
|
|
69
|
+
if (!packageJson.scripts['nextdesk:dev']) {
|
|
70
|
+
packageJson.scripts['nextdesk:dev'] = 'nextdesk dev';
|
|
71
71
|
}
|
|
72
|
-
if (!packageJson.scripts['
|
|
73
|
-
packageJson.scripts['
|
|
72
|
+
if (!packageJson.scripts['nextdesk:build']) {
|
|
73
|
+
packageJson.scripts['nextdesk:build'] = 'nextdesk build';
|
|
74
74
|
}
|
|
75
75
|
fs_1.default.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2) + '\n');
|
|
76
76
|
}
|
|
77
|
-
spinner.succeed('
|
|
77
|
+
spinner.succeed('NextDesk initialized!');
|
|
78
78
|
console.log(chalk_1.default.bold('\n✨ All set!\n'));
|
|
79
79
|
console.log(chalk_1.default.gray(' Run these commands:'));
|
|
80
|
-
console.log(chalk_1.default.cyan(' npm run
|
|
81
|
-
console.log(chalk_1.default.cyan(' npm run
|
|
80
|
+
console.log(chalk_1.default.cyan(' npm run nextdesk:dev # Start desktop app in dev mode'));
|
|
81
|
+
console.log(chalk_1.default.cyan(' npm run nextdesk:build # Build desktop app for production\n'));
|
|
82
82
|
}
|
|
83
83
|
catch (err) {
|
|
84
84
|
spinner.fail(`Initialization failed: ${err.message}`);
|
package/package.json
CHANGED
package/src/commands/init.ts
CHANGED
|
@@ -77,22 +77,22 @@ export async function init(options: InitOptions) {
|
|
|
77
77
|
packageJson.scripts = {}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
if (!packageJson.scripts['
|
|
81
|
-
packageJson.scripts['
|
|
80
|
+
if (!packageJson.scripts['nextdesk:dev']) {
|
|
81
|
+
packageJson.scripts['nextdesk:dev'] = 'nextdesk dev'
|
|
82
82
|
}
|
|
83
|
-
if (!packageJson.scripts['
|
|
84
|
-
packageJson.scripts['
|
|
83
|
+
if (!packageJson.scripts['nextdesk:build']) {
|
|
84
|
+
packageJson.scripts['nextdesk:build'] = 'nextdesk build'
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2) + '\n')
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
spinner.succeed('
|
|
90
|
+
spinner.succeed('NextDesk initialized!')
|
|
91
91
|
|
|
92
92
|
console.log(chalk.bold('\n✨ All set!\n'))
|
|
93
93
|
console.log(chalk.gray(' Run these commands:'))
|
|
94
|
-
console.log(chalk.cyan(' npm run
|
|
95
|
-
console.log(chalk.cyan(' npm run
|
|
94
|
+
console.log(chalk.cyan(' npm run nextdesk:dev # Start desktop app in dev mode'))
|
|
95
|
+
console.log(chalk.cyan(' npm run nextdesk:build # Build desktop app for production\n'))
|
|
96
96
|
|
|
97
97
|
} catch (err: any) {
|
|
98
98
|
spinner.fail(`Initialization failed: ${err.message}`)
|