create-feltdb 0.2.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/LICENSE +19 -0
- package/dist/cli.js +21 -1
- package/dist/index.js +1 -1
- package/dist/package-versions.js +1 -1
- package/package.json +4 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 FeltDB Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE.
|
package/dist/cli.js
CHANGED
|
@@ -113,7 +113,27 @@ async function promptForOptions(defaults) {
|
|
|
113
113
|
}
|
|
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.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
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
if (args.includes('--version')) {
|
|
121
|
+
console.log('0.4.0');
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
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
|
+
}
|
|
117
137
|
const shouldAutoYes = args.includes('--yes') || args.includes('-y');
|
|
118
138
|
let options = parseArgs(args);
|
|
119
139
|
console.log('\n✨ Creating FeltDB Application\n');
|
package/dist/index.js
CHANGED
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,12 +10,12 @@
|
|
|
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",
|
|
18
|
-
"dev": "node dist/cli.js"
|
|
17
|
+
"dev": "node dist/cli.js",
|
|
18
|
+
"test": "node --test test/*.test.mjs"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"typescript": "^5.0.0",
|