@effindomv2/create-fui-as-app 0.1.7 → 0.1.9

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.
@@ -1,2 +1,2 @@
1
- export declare const FUI_AS_VERSION = "latest";
2
- export declare const RUNTIME_VERSION = "0.1.0";
1
+ export declare const FUI_AS_VERSION = "0.1.6";
2
+ export declare const RUNTIME_VERSION = "0.1.1";
@@ -1,2 +1,2 @@
1
- export const FUI_AS_VERSION = "latest";
2
- export const RUNTIME_VERSION = "0.1.0";
1
+ export const FUI_AS_VERSION = "0.1.6";
2
+ export const RUNTIME_VERSION = "0.1.1";
@@ -15,6 +15,9 @@ test("createProject writes hello-world scaffold including AssemblyScript tsconfi
15
15
  const tsconfig = JSON.parse(readFileSync(join(target, "tsconfig.json"), "utf8"));
16
16
  assert.equal(tsconfig.extends, "assemblyscript/std/assembly.json");
17
17
  assert.deepEqual(tsconfig.include, ["src/**/*.ts"]);
18
+ assert.deepEqual(tsconfig.compilerOptions?.paths?.["@effindomv2/fui-as/src/*"], [
19
+ "./node_modules/@effindomv2/fui-as/src/*",
20
+ ]);
18
21
  const packageJson = JSON.parse(readFileSync(join(target, "package.json"), "utf8"));
19
22
  assert.equal(typeof packageJson.scripts.dev, "string");
20
23
  assert.equal(typeof packageJson.scripts.build, "string");
@@ -23,6 +26,7 @@ test("createProject writes hello-world scaffold including AssemblyScript tsconfi
23
26
  assert.equal(readFileSync(join(target, "src", "HelloWorld.ts"), "utf8").includes("Hello world"), true);
24
27
  assert.equal(readFileSync(join(target, "README.md"), "utf8").includes("Hello World scaffold guide"), true);
25
28
  assert.equal(readFileSync(join(target, "src", "fui", "Fui.ts"), "utf8").includes("@effindomv2/fui-as/src/Fui"), true);
29
+ assert.deepEqual(JSON.parse(readFileSync(join(target, "src", "host", "tsconfig.json"), "utf8")).compilerOptions.lib, ["ES2022", "DOM"]);
26
30
  assert.equal(readFileSync(join(target, "src", "host", "host-events.ts"), "utf8").includes("appHostEvents"), true);
27
31
  assert.equal(readFileSync(join(target, "src", "host", "host-services.ts"), "utf8").includes("appHostServices"), true);
28
32
  assert.equal(readFileSync(join(target, "src", "host", "generated", "HostEvents.ts"), "utf8").includes("onAppClockTick"), true);
@@ -48,6 +52,8 @@ test("createProject writes mvc scaffold when template is mvc", () => {
48
52
  assert.equal(readFileSync(join(target, "src", "routes", "home", "HomeController.ts"), "utf8").includes("HomeController"), true);
49
53
  assert.equal(readFileSync(join(target, "src", "routes", "HomeApp.ts"), "utf8").includes("createManagedApplication"), true);
50
54
  assert.equal(readFileSync(join(target, "README.md"), "utf8").includes("MVC scaffold guide"), true);
55
+ assert.deepEqual(JSON.parse(readFileSync(join(target, "tsconfig.json"), "utf8")).compilerOptions.paths["@effindomv2/fui-as/src/*"], ["./node_modules/@effindomv2/fui-as/src/*"]);
56
+ assert.deepEqual(JSON.parse(readFileSync(join(target, "src", "host", "tsconfig.json"), "utf8")).compilerOptions.lib, ["ES2022", "DOM"]);
51
57
  assert.equal(readFileSync(join(target, "src", "host", "host-events.ts"), "utf8").includes("appHostEvents"), true);
52
58
  assert.equal(readFileSync(join(target, "src", "host", "host-services.ts"), "utf8").includes("appHostServices"), true);
53
59
  assert.equal(readFileSync(join(target, "src", "fui", "Fui.ts"), "utf8").includes("@effindomv2/fui-as/src/Fui"), true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effindomv2/create-fui-as-app",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "Scaffold a minimal EffinDom v2 FUI-AS app",
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "Bundler",
6
+ "lib": ["ES2022", "DOM"],
7
+ "strict": true,
8
+ "noEmit": true
9
+ },
10
+ "include": [
11
+ "*.ts"
12
+ ]
13
+ }
@@ -1,9 +1,21 @@
1
1
  {
2
2
  "extends": "assemblyscript/std/assembly.json",
3
3
  "compilerOptions": {
4
- "noEmit": true
4
+ "noEmit": true,
5
+ "paths": {
6
+ "@effindomv2/fui-as/src/*": [
7
+ "./node_modules/@effindomv2/fui-as/src/*"
8
+ ],
9
+ "@effindomv2/fui-as/browser/src/*": [
10
+ "./node_modules/@effindomv2/fui-as/browser/src/*"
11
+ ]
12
+ }
5
13
  },
6
14
  "include": [
7
15
  "src/**/*.ts"
16
+ ],
17
+ "exclude": [
18
+ "src/host/host-events.ts",
19
+ "src/host/host-services.ts"
8
20
  ]
9
21
  }
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "Bundler",
6
+ "lib": ["ES2022", "DOM"],
7
+ "strict": true,
8
+ "noEmit": true
9
+ },
10
+ "include": [
11
+ "*.ts"
12
+ ]
13
+ }
@@ -1,9 +1,21 @@
1
1
  {
2
2
  "extends": "assemblyscript/std/assembly.json",
3
3
  "compilerOptions": {
4
- "noEmit": true
4
+ "noEmit": true,
5
+ "paths": {
6
+ "@effindomv2/fui-as/src/*": [
7
+ "./node_modules/@effindomv2/fui-as/src/*"
8
+ ],
9
+ "@effindomv2/fui-as/browser/src/*": [
10
+ "./node_modules/@effindomv2/fui-as/browser/src/*"
11
+ ]
12
+ }
5
13
  },
6
14
  "include": [
7
15
  "src/**/*.ts"
16
+ ],
17
+ "exclude": [
18
+ "src/host/host-events.ts",
19
+ "src/host/host-services.ts"
8
20
  ]
9
21
  }