create-feltdb 0.3.0 → 0.4.0
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/cli.js +15 -3
- package/dist/package-versions.js +1 -1
- package/package.json +2 -3
package/dist/cli.js
CHANGED
|
@@ -114,14 +114,26 @@ async function promptForOptions(defaults) {
|
|
|
114
114
|
async function main() {
|
|
115
115
|
const args = process.argv.slice(2);
|
|
116
116
|
if (args.includes('--help') || args.includes('-h')) {
|
|
117
|
-
console.log(`create-feltdb 0.
|
|
117
|
+
console.log(`create-feltdb 0.4.0\n\nUsage: create-feltdb [project-name] [options]\n\nOptions:\n --runtime <browser|node|self-hosted>\n --framework <react|vanilla>\n --no-distributed\n --no-agents\n --capabilities <list>\n -y, --yes\n -h, --help\n --version`);
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
if (args.includes('--version')) {
|
|
121
|
-
console.log('0.
|
|
121
|
+
console.log('0.4.0');
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
// Find project name (first non-flag argument)
|
|
125
|
+
let projectName = 'feltdb-app';
|
|
126
|
+
for (let i = 0; i < args.length; i++) {
|
|
127
|
+
const arg = args[i];
|
|
128
|
+
if (!arg.startsWith('-')) {
|
|
129
|
+
projectName = arg;
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
// Skip next arg if current arg is a flag that takes a value
|
|
133
|
+
if (arg === '--runtime' || arg === '--framework' || arg === '--capabilities') {
|
|
134
|
+
i++;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
125
137
|
const shouldAutoYes = args.includes('--yes') || args.includes('-y');
|
|
126
138
|
let options = parseArgs(args);
|
|
127
139
|
console.log('\n✨ Creating FeltDB Application\n');
|
package/dist/package-versions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// One release train keeps generated applications installable. The repository
|
|
2
2
|
// validation script checks these values against every workspace manifest.
|
|
3
|
-
export const FELTDB_PACKAGE_VERSION = '0.
|
|
3
|
+
export const FELTDB_PACKAGE_VERSION = '0.4.0';
|
|
4
4
|
export const feltdbPackageRange = `^${FELTDB_PACKAGE_VERSION}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-feltdb",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Create a new FeltDB application with one command",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"files": [
|
|
12
12
|
"dist/",
|
|
13
|
-
"bin/"
|
|
14
|
-
"templates/"
|
|
13
|
+
"bin/"
|
|
15
14
|
],
|
|
16
15
|
"scripts": {
|
|
17
16
|
"build": "rm -rf dist && tsc",
|