@outwalk/create-firefly 0.5.0 → 0.6.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/index.js +3 -0
- package/package.json +1 -1
- package/templates/snippets/custom-database/javascript/define-database.template +7 -1
- package/templates/snippets/custom-database/typescript/define-database.template +7 -1
- package/templates/typescript/package.json.template +1 -1
- package/templates/typescript/tsconfig.json.template +18 -0
package/dist/index.js
CHANGED
|
@@ -167,6 +167,9 @@ const questions = [
|
|
|
167
167
|
const force = args["force"];
|
|
168
168
|
const settings = { useCurrentDirectory: false };
|
|
169
169
|
const dependencies = ["@outwalk/firefly"];
|
|
170
|
+
if (config.language != "javascript") {
|
|
171
|
+
dependencies.push(config.language);
|
|
172
|
+
}
|
|
170
173
|
if (!["none", "custom-platform"].includes(config.platform)) {
|
|
171
174
|
dependencies.push(config.platform);
|
|
172
175
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/* implement a database using the firefly database interface */
|
|
2
2
|
class CustomDatabase extends Database {
|
|
3
3
|
|
|
4
|
-
async connect() {
|
|
4
|
+
async connect() {
|
|
5
|
+
super.displayConnectionMessage();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
isConnected() {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
5
11
|
}
|
|
6
12
|
|
|
7
13
|
const database = new CustomDatabase();
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/* implement a database using the firefly database interface */
|
|
2
2
|
class CustomDatabase extends Database {
|
|
3
3
|
|
|
4
|
-
async connect(): Promise<void> {
|
|
4
|
+
async connect(): Promise<void> {
|
|
5
|
+
super.displayConnectionMessage();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
isConnected(): boolean {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
5
11
|
}
|
|
6
12
|
|
|
7
13
|
const database = new CustomDatabase();
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
+
"include": ["src"],
|
|
2
3
|
"compilerOptions": {
|
|
4
|
+
/* features */
|
|
3
5
|
"experimentalDecorators": true,
|
|
6
|
+
"useDefineForClassFields": true,
|
|
7
|
+
|
|
8
|
+
/* syntax */
|
|
9
|
+
"target": "ES2020",
|
|
10
|
+
"module": "ESNext",
|
|
11
|
+
"lib": ["ES2020"],
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
|
|
14
|
+
/* bundler mode */
|
|
15
|
+
"moduleResolution": "Bundler",
|
|
16
|
+
"allowImportingTsExtensions": true,
|
|
17
|
+
"resolveJsonModule": true,
|
|
18
|
+
"isolatedModules": true,
|
|
19
|
+
"noEmit": true,
|
|
20
|
+
|
|
21
|
+
/* import path aliases */
|
|
4
22
|
"baseUrl": "./src",
|
|
5
23
|
"paths": {
|
|
6
24
|
"@/*": [
|