@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 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@outwalk/create-firefly",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "description": "Firefly - a modern scalable web framework.",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -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();
@@ -7,7 +7,7 @@
7
7
  "npm": "^9"
8
8
  },
9
9
  "scripts": {
10
- "build": "firefly build",
10
+ "build": "tsc && firefly build",
11
11
  "start": "firefly start",
12
12
  "dev": "firefly start --dev"
13
13
  }
@@ -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
  "@/*": [