@virmator/frontend 13.3.12 → 13.3.14
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/configs/vite.config.base.ts +1 -1
- package/dist/always-reload.vite.js +1 -1
- package/dist/frontend.d.ts +8 -7
- package/dist/frontend.js +10 -9
- package/package.json +8 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {log, logColors} from '@augment-vir/
|
|
1
|
+
import {log, logColors} from '@augment-vir/common';
|
|
2
2
|
import {alwaysReloadPlugin} from '@virmator/frontend/src/always-reload.vite';
|
|
3
3
|
import {existsSync} from 'node:fs';
|
|
4
4
|
import {basename, dirname, join, relative} from 'node:path';
|
package/dist/frontend.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RuntimeEnv } from '@augment-vir/common';
|
|
2
|
+
import { NpmDepType, PackageType } from '@virmator/core';
|
|
2
3
|
/** A virmator plugin for running and building frontend packages. */
|
|
3
4
|
export declare const virmatorFrontendPlugin: Readonly<Readonly<{
|
|
4
5
|
name: string;
|
|
@@ -32,7 +33,7 @@ export declare const virmatorFrontendPlugin: Readonly<Readonly<{
|
|
|
32
33
|
readonly vite: {
|
|
33
34
|
readonly copyFromPath: string;
|
|
34
35
|
readonly copyToPath: string;
|
|
35
|
-
readonly env: [
|
|
36
|
+
readonly env: [RuntimeEnv.Web];
|
|
36
37
|
readonly packageType: [PackageType.TopPackage, PackageType.MonoPackage];
|
|
37
38
|
readonly required: true;
|
|
38
39
|
readonly configFlags: ["--config"];
|
|
@@ -41,12 +42,12 @@ export declare const virmatorFrontendPlugin: Readonly<Readonly<{
|
|
|
41
42
|
readonly npmDeps: {
|
|
42
43
|
readonly typescript: {
|
|
43
44
|
readonly type: NpmDepType.Dev;
|
|
44
|
-
readonly env: readonly [
|
|
45
|
+
readonly env: readonly [RuntimeEnv.Web];
|
|
45
46
|
readonly packageType: readonly [PackageType.MonoPackage, PackageType.TopPackage];
|
|
46
47
|
};
|
|
47
48
|
readonly vite: {
|
|
48
49
|
readonly type: NpmDepType.Dev;
|
|
49
|
-
readonly env: readonly [
|
|
50
|
+
readonly env: readonly [RuntimeEnv.Web];
|
|
50
51
|
readonly packageType: readonly [PackageType.MonoPackage, PackageType.TopPackage];
|
|
51
52
|
};
|
|
52
53
|
};
|
|
@@ -84,7 +85,7 @@ export declare const virmatorFrontendPlugin: Readonly<Readonly<{
|
|
|
84
85
|
readonly vite: {
|
|
85
86
|
readonly copyFromPath: string;
|
|
86
87
|
readonly copyToPath: string;
|
|
87
|
-
readonly env: [
|
|
88
|
+
readonly env: [RuntimeEnv.Web];
|
|
88
89
|
readonly packageType: [PackageType.TopPackage, PackageType.MonoPackage];
|
|
89
90
|
readonly required: true;
|
|
90
91
|
readonly configFlags: ["--config"];
|
|
@@ -93,12 +94,12 @@ export declare const virmatorFrontendPlugin: Readonly<Readonly<{
|
|
|
93
94
|
readonly npmDeps: {
|
|
94
95
|
readonly typescript: {
|
|
95
96
|
readonly type: NpmDepType.Dev;
|
|
96
|
-
readonly env: readonly [
|
|
97
|
+
readonly env: readonly [RuntimeEnv.Web];
|
|
97
98
|
readonly packageType: readonly [PackageType.MonoPackage, PackageType.TopPackage];
|
|
98
99
|
};
|
|
99
100
|
readonly vite: {
|
|
100
101
|
readonly type: NpmDepType.Dev;
|
|
101
|
-
readonly env: readonly [
|
|
102
|
+
readonly env: readonly [RuntimeEnv.Web];
|
|
102
103
|
readonly packageType: readonly [PackageType.MonoPackage, PackageType.TopPackage];
|
|
103
104
|
};
|
|
104
105
|
};
|
package/dist/frontend.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { check } from '@augment-vir/assert';
|
|
2
|
+
import { RuntimeEnv } from '@augment-vir/common';
|
|
3
|
+
import { toPosixPath } from '@augment-vir/node';
|
|
4
|
+
import { defineVirmatorPlugin, NpmDepType, PackageType } from '@virmator/core';
|
|
4
5
|
import mri from 'mri';
|
|
5
6
|
import { cp, rm } from 'node:fs/promises';
|
|
6
7
|
import { join, relative, resolve } from 'node:path';
|
|
@@ -57,7 +58,7 @@ export const virmatorFrontendPlugin = defineVirmatorPlugin(import.meta.dirname,
|
|
|
57
58
|
copyFromPath: join('configs', 'vite.config.ts'),
|
|
58
59
|
copyToPath: join('configs', 'vite.config.ts'),
|
|
59
60
|
env: [
|
|
60
|
-
|
|
61
|
+
RuntimeEnv.Web,
|
|
61
62
|
],
|
|
62
63
|
packageType: [
|
|
63
64
|
PackageType.TopPackage,
|
|
@@ -71,7 +72,7 @@ export const virmatorFrontendPlugin = defineVirmatorPlugin(import.meta.dirname,
|
|
|
71
72
|
typescript: {
|
|
72
73
|
type: NpmDepType.Dev,
|
|
73
74
|
env: [
|
|
74
|
-
|
|
75
|
+
RuntimeEnv.Web,
|
|
75
76
|
],
|
|
76
77
|
packageType: [
|
|
77
78
|
PackageType.MonoPackage,
|
|
@@ -81,7 +82,7 @@ export const virmatorFrontendPlugin = defineVirmatorPlugin(import.meta.dirname,
|
|
|
81
82
|
vite: {
|
|
82
83
|
type: NpmDepType.Dev,
|
|
83
84
|
env: [
|
|
84
|
-
|
|
85
|
+
RuntimeEnv.Web,
|
|
85
86
|
],
|
|
86
87
|
packageType: [
|
|
87
88
|
PackageType.MonoPackage,
|
|
@@ -119,7 +120,7 @@ export const virmatorFrontendPlugin = defineVirmatorPlugin(import.meta.dirname,
|
|
|
119
120
|
...filteredArgs,
|
|
120
121
|
...configArgs,
|
|
121
122
|
]
|
|
122
|
-
.filter(isTruthy)
|
|
123
|
+
.filter(check.isTruthy)
|
|
123
124
|
.join(' ');
|
|
124
125
|
log.faint('Building...');
|
|
125
126
|
await runShellCommand(buildCommand, {
|
|
@@ -141,7 +142,7 @@ export const virmatorFrontendPlugin = defineVirmatorPlugin(import.meta.dirname,
|
|
|
141
142
|
...filteredArgs,
|
|
142
143
|
...configArgs,
|
|
143
144
|
]
|
|
144
|
-
.filter(isTruthy)
|
|
145
|
+
.filter(check.isTruthy)
|
|
145
146
|
.join(' ');
|
|
146
147
|
log.faint('Previewing...');
|
|
147
148
|
await runShellCommand(previewCommand, {
|
|
@@ -159,7 +160,7 @@ export const virmatorFrontendPlugin = defineVirmatorPlugin(import.meta.dirname,
|
|
|
159
160
|
...filteredArgs,
|
|
160
161
|
...configArgs,
|
|
161
162
|
]
|
|
162
|
-
.filter(isTruthy)
|
|
163
|
+
.filter(check.isTruthy)
|
|
163
164
|
.join(' ');
|
|
164
165
|
await runShellCommand(devCommand, {
|
|
165
166
|
env: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/frontend",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.14",
|
|
4
4
|
"description": "Default frontend plugin for virmator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -34,15 +34,17 @@
|
|
|
34
34
|
"test:update": "npm test update"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@augment-vir/
|
|
38
|
-
"@augment-vir/
|
|
39
|
-
"@
|
|
37
|
+
"@augment-vir/assert": "^30.0.4",
|
|
38
|
+
"@augment-vir/common": "^30.0.4",
|
|
39
|
+
"@augment-vir/node": "^30.0.4",
|
|
40
|
+
"@virmator/core": "^13.3.14",
|
|
40
41
|
"mri": "^1.2.0"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@
|
|
44
|
+
"@augment-vir/test": "^30.0.4",
|
|
45
|
+
"@types/node": "^22.5.5",
|
|
44
46
|
"typescript": "^5.6.2",
|
|
45
|
-
"vite": "^5.4.
|
|
47
|
+
"vite": "^5.4.5",
|
|
46
48
|
"vite-tsconfig-paths": "^5.0.1"
|
|
47
49
|
},
|
|
48
50
|
"engines": {
|