@ngrs/build 0.0.0-stage → 0.1.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.
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ const { createCjsBuilder } = require('../../architect-compat.cjs');
4
+
5
+ async function extractI18nProxy(options, context) {
6
+ const mod = await import('./index.mjs');
7
+ return mod.executeExtractI18nBuilder(options, context);
8
+ }
9
+
10
+ const builder = createCjsBuilder(extractI18nProxy);
11
+ builder.executeExtractI18nBuilder = extractI18nProxy;
12
+
13
+ module.exports = builder;
@@ -0,0 +1,60 @@
1
+ import { createRequire } from 'node:module';
2
+ import path from 'node:path';
3
+ import { formatDiagnostics } from '@ngrs/vite';
4
+ import { createBuilder, createConsoleLogger } from '../../architect-compat.mjs';
5
+ import {
6
+ loadWorkspace,
7
+ parseTargetString,
8
+ resolveProjectName,
9
+ resolveTargetOptions,
10
+ } from '../../workspace.mjs';
11
+
12
+ const require = createRequire(import.meta.url);
13
+ const napi = require('@ngrs/napi');
14
+
15
+ /**
16
+ * Architect-compatible `executeExtractI18nBuilder` (`@ngrs/build:extract-i18n`).
17
+ */
18
+ export async function executeExtractI18nBuilder(options, context) {
19
+ const workspaceRoot = context?.workspaceRoot || process.cwd();
20
+ const logger = context?.logger || createConsoleLogger(false);
21
+
22
+ const loaded = await loadWorkspace(workspaceRoot);
23
+ const projectName = resolveProjectName(loaded.workspace, context?.target?.project);
24
+ const targetSpecStr =
25
+ options?.buildTarget || options?.browserTarget || `${projectName}:build`;
26
+ const targetSpec = parseTargetString(targetSpecStr, projectName, 'build');
27
+ const buildOpts = resolveTargetOptions(loaded.workspace, targetSpec);
28
+
29
+ if (!buildOpts.tsConfig) {
30
+ logger.error(`Missing "tsConfig" on target "${targetSpec.project}:${targetSpec.target}".`);
31
+ return { success: false, outputFiles: [] };
32
+ }
33
+
34
+ const tsconfigPath = path.resolve(loaded.workspaceRoot, buildOpts.tsConfig);
35
+ const outputPath = options?.outputPath
36
+ ? path.resolve(loaded.workspaceRoot, options.outputPath)
37
+ : loaded.workspaceRoot;
38
+
39
+ const result = napi.extractI18nForProject(tsconfigPath, {
40
+ format: options?.format || 'xlf',
41
+ outputPath,
42
+ outFile: options?.outFile,
43
+ });
44
+
45
+ const { warnings, errors } = formatDiagnostics(result.diagnostics, loaded.workspaceRoot);
46
+ for (const w of warnings) logger.warn(w);
47
+ for (const e of errors) logger.error(e);
48
+
49
+ if (result.exitCode === 0 && result.outputFiles.length > 0) {
50
+ logger.info(`Extracted i18n messages to: ${result.outputFiles.join(', ')}`);
51
+ }
52
+
53
+ return {
54
+ success: result.exitCode === 0,
55
+ outputFiles: result.outputFiles,
56
+ };
57
+ }
58
+
59
+ export const extractI18nBuilder = createBuilder(executeExtractI18nBuilder);
60
+ export default extractI18nBuilder;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ const { createCjsBuilder } = require('../../architect-compat.cjs');
4
+
5
+ async function* executeUnitTestProxy(options, context) {
6
+ const mod = await import('./index.mjs');
7
+ yield* mod.executeUnitTestBuilder(options, context);
8
+ }
9
+
10
+ const builder = createCjsBuilder(executeUnitTestProxy);
11
+ builder.executeUnitTestBuilder = executeUnitTestProxy;
12
+
13
+ module.exports = builder;
@@ -0,0 +1,346 @@
1
+ import fs from 'node:fs';
2
+ import { readdir } from 'node:fs/promises';
3
+ import { createRequire } from 'node:module';
4
+ import path from 'node:path';
5
+ import { pathToFileURL } from 'node:url';
6
+ import { angularTesting } from '@ngrs/vite/testing';
7
+ import picomatch from 'picomatch';
8
+ import { createBuilder, createConsoleLogger } from '../../architect-compat.mjs';
9
+ import {
10
+ loadWorkspace,
11
+ parseTargetString,
12
+ resolveProjectName,
13
+ resolveTargetOptions,
14
+ toPosixPath,
15
+ } from '../../workspace.mjs';
16
+
17
+ const IGNORE_TEST_SCAN_DIRS = new Set([
18
+ 'node_modules',
19
+ 'dist',
20
+ '.angular',
21
+ '.nx',
22
+ '.git',
23
+ 'coverage',
24
+ 'out-tsc',
25
+ ]);
26
+
27
+ function resolveFromDirs(specifier, dirs) {
28
+ for (const dir of dirs) {
29
+ try {
30
+ const req = createRequire(path.join(dir, 'package.json'));
31
+ return req.resolve(specifier);
32
+ } catch {
33
+ // Try next directory
34
+ }
35
+ }
36
+ return null;
37
+ }
38
+
39
+ async function discoverSpecFiles(searchRoot, workspaceRoot, includePatterns, excludePatterns) {
40
+ const results = [];
41
+ const normIncludes = (includePatterns?.length ? includePatterns : ['**/*.spec.ts']).map((p) =>
42
+ toPosixPath(p),
43
+ );
44
+ const normExcludes = (excludePatterns || []).map((p) => toPosixPath(p));
45
+
46
+ const includeMatchers = normIncludes.map((pat) => picomatch(pat, { dot: false }));
47
+ const excludeMatchers = normExcludes.map((pat) => picomatch(pat, { dot: true }));
48
+
49
+ async function walk(absDir) {
50
+ let entries;
51
+ try {
52
+ entries = await readdir(absDir, { withFileTypes: true });
53
+ } catch {
54
+ return;
55
+ }
56
+ for (const entry of entries) {
57
+ if (entry.isDirectory()) {
58
+ if (IGNORE_TEST_SCAN_DIRS.has(entry.name)) continue;
59
+ await walk(path.join(absDir, entry.name));
60
+ } else if (entry.isFile()) {
61
+ const full = path.join(absDir, entry.name);
62
+ const relFromSearch = toPosixPath(path.relative(searchRoot, full));
63
+ const relFromWs = toPosixPath(path.relative(workspaceRoot, full));
64
+ const matched = includeMatchers.some((m) => m(relFromSearch) || m(relFromWs));
65
+ if (!matched) continue;
66
+ const excluded = excludeMatchers.some((m) => m(relFromSearch) || m(relFromWs));
67
+ if (!excluded) {
68
+ results.push(full);
69
+ }
70
+ }
71
+ }
72
+ }
73
+
74
+ await walk(searchRoot);
75
+ return results.sort();
76
+ }
77
+
78
+ function findExternalVitestConfig(dirs) {
79
+ const candidates = [
80
+ 'vitest.config.ts',
81
+ 'vitest.config.mts',
82
+ 'vitest.config.mjs',
83
+ 'vitest.config.js',
84
+ ];
85
+ for (const dir of dirs) {
86
+ for (const file of candidates) {
87
+ const full = path.join(dir, file);
88
+ if (fs.existsSync(full) && fs.statSync(full).isFile()) {
89
+ return full;
90
+ }
91
+ }
92
+ }
93
+ return false;
94
+ }
95
+
96
+ /**
97
+ * Architect-compatible `@ngrs/build:unit-test` async generator powered by Vitest + `@ngrs/vite/testing`.
98
+ * 1:1 drop-in replacement for `@angular/build:unit-test` (`ng test` / `ngrs test`).
99
+ */
100
+ export async function* executeUnitTestBuilder(options = {}, context = {}) {
101
+ const workspaceRoot = path.resolve(
102
+ context?.workspaceRoot || options?.workspaceRoot || process.cwd(),
103
+ );
104
+ const logger = context?.logger || createConsoleLogger(Boolean(options?.verbose));
105
+
106
+ let projectName = context?.target?.project || options?.project;
107
+ let projectMetadata = {};
108
+ let loadedWorkspace = null;
109
+
110
+ if (context?.getProjectMetadata && projectName) {
111
+ try {
112
+ projectMetadata = await context.getProjectMetadata(projectName);
113
+ } catch {
114
+ projectMetadata = {};
115
+ }
116
+ }
117
+ if (!projectMetadata || Object.keys(projectMetadata).length === 0) {
118
+ try {
119
+ const loaded = await loadWorkspace(workspaceRoot);
120
+ loadedWorkspace = loaded.workspace;
121
+ projectName = resolveProjectName(loaded.workspace, projectName);
122
+ projectMetadata = loaded.workspace.projects[projectName] || {};
123
+ } catch {
124
+ projectName = projectName || 'app';
125
+ }
126
+ }
127
+
128
+ const relProjectRoot = projectMetadata?.root ?? '';
129
+ const projectRoot = path.resolve(workspaceRoot, relProjectRoot);
130
+ const relSourceRoot =
131
+ projectMetadata?.sourceRoot ??
132
+ (fs.existsSync(path.join(projectRoot, 'src'))
133
+ ? path.posix.join(toPosixPath(relProjectRoot), 'src')
134
+ : toPosixPath(relProjectRoot));
135
+ const projectSourceRoot = path.resolve(workspaceRoot, relSourceRoot);
136
+
137
+ // Merge inherited options from `buildTarget` (`::development` by default)
138
+ const buildTargetSpec = parseTargetString(
139
+ options.buildTarget || '::development',
140
+ projectName || 'app',
141
+ 'build',
142
+ );
143
+ let baseBuildOpts = {};
144
+ if (context?.getTargetOptions) {
145
+ try {
146
+ baseBuildOpts = (await context.getTargetOptions(buildTargetSpec)) || {};
147
+ } catch {
148
+ baseBuildOpts = {};
149
+ }
150
+ } else if (loadedWorkspace) {
151
+ try {
152
+ baseBuildOpts =
153
+ resolveTargetOptions(loadedWorkspace, buildTargetSpec, 'development') || {};
154
+ } catch {
155
+ baseBuildOpts = {};
156
+ }
157
+ }
158
+
159
+ const searchDirs = [projectRoot, workspaceRoot, process.cwd()];
160
+ const includePatterns = options.include ?? ['**/*.spec.ts'];
161
+ const excludePatterns = options.exclude ?? [];
162
+
163
+ const scanRoot = fs.existsSync(projectSourceRoot) ? projectSourceRoot : projectRoot;
164
+ const discoveredTestFiles = await discoverSpecFiles(
165
+ scanRoot,
166
+ workspaceRoot,
167
+ includePatterns,
168
+ excludePatterns,
169
+ );
170
+
171
+ if (options.listTests) {
172
+ logger.info('Discovered test files:');
173
+ for (const file of discoveredTestFiles) {
174
+ logger.info(` ${path.relative(workspaceRoot, file)}`);
175
+ }
176
+ yield { success: true, testFiles: discoveredTestFiles };
177
+ return;
178
+ }
179
+
180
+ if (discoveredTestFiles.length === 0) {
181
+ logger.error(
182
+ 'No tests found matching the following patterns:\n' +
183
+ `- Included: ${includePatterns.join(', ')}\n` +
184
+ (excludePatterns.length ? `- Excluded: ${excludePatterns.join(', ')}\n` : ''),
185
+ );
186
+ yield { success: false };
187
+ return;
188
+ }
189
+
190
+ // Resolve `vitest/node` from project / workspace `node_modules`
191
+ const vitestNodeEntry = resolveFromDirs('vitest/node', searchDirs);
192
+ let vitestNode;
193
+ try {
194
+ vitestNode = vitestNodeEntry
195
+ ? await import(pathToFileURL(vitestNodeEntry).href)
196
+ : await import('vitest/node');
197
+ } catch (err) {
198
+ logger.error(
199
+ `The 'vitest' package was not found in "${workspaceRoot}". Please install 'vitest' and 'happy-dom' to run unit tests.`,
200
+ );
201
+ yield { success: false, error: err instanceof Error ? err.message : String(err) };
202
+ return;
203
+ }
204
+
205
+ const targetEnv = options.environment || 'happy-dom';
206
+ if (
207
+ targetEnv === 'happy-dom' &&
208
+ !options.browsers?.length &&
209
+ !resolveFromDirs('happy-dom', searchDirs)
210
+ ) {
211
+ logger.error(
212
+ `The 'happy-dom' package was not found in "${workspaceRoot}". Please install 'happy-dom' (e.g. 'npm i -D happy-dom' or 'ng add @ngrs/build') to run unit tests.`,
213
+ );
214
+ yield { success: false, error: `Missing 'happy-dom' dependency.` };
215
+ return;
216
+ }
217
+
218
+ // Resolve tsconfig (`options.tsConfig` -> `<projectRoot>/tsconfig.spec.json` -> `baseBuildOpts.tsConfig`)
219
+ let explicitTsconfig = options.tsConfig;
220
+ if (!explicitTsconfig) {
221
+ const candProjectSpec = path.join(projectRoot, 'tsconfig.spec.json');
222
+ const candWsSpec = path.join(workspaceRoot, 'tsconfig.spec.json');
223
+ if (fs.existsSync(candProjectSpec)) {
224
+ explicitTsconfig = candProjectSpec;
225
+ } else if (fs.existsSync(candWsSpec)) {
226
+ explicitTsconfig = candWsSpec;
227
+ } else if (typeof baseBuildOpts.tsConfig === 'string') {
228
+ explicitTsconfig = undefined; // Let `angularTesting` synthesize a spec config extending tsconfig
229
+ }
230
+ }
231
+
232
+ const rawPolyfills =
233
+ options.polyfills ??
234
+ (Array.isArray(baseBuildOpts.polyfills)
235
+ ? baseBuildOpts.polyfills
236
+ : typeof baseBuildOpts.polyfills === 'string'
237
+ ? [baseBuildOpts.polyfills]
238
+ : []);
239
+
240
+ const isInteractiveTty = Boolean(
241
+ process.stdout.isTTY && process.stdin.isTTY && !process.env.CI,
242
+ );
243
+ const watch = Boolean(options.watch ?? (options.ui ? true : isInteractiveTty && context?.isCliInteractive === true));
244
+
245
+ let externalConfigPath = false;
246
+ if (typeof options.runnerConfig === 'string' && options.runnerConfig.length > 0) {
247
+ externalConfigPath = path.resolve(workspaceRoot, options.runnerConfig);
248
+ } else if (options.runnerConfig === true) {
249
+ externalConfigPath = findExternalVitestConfig([projectRoot, workspaceRoot]);
250
+ }
251
+
252
+ const relativeDiscovered = discoveredTestFiles.map((f) =>
253
+ toPosixPath(path.relative(projectRoot, f)),
254
+ );
255
+
256
+ const rawReplacements = baseBuildOpts.fileReplacements || [];
257
+ const fileReplacements = rawReplacements
258
+ .map((r) => ({
259
+ replace: r.replace,
260
+ with: r.with ?? r.replaceWith,
261
+ }))
262
+ .filter((r) => r.replace && r.with);
263
+
264
+ const testingPlugins = angularTesting({
265
+ workspaceRoot,
266
+ projectRoot: path.relative(workspaceRoot, projectRoot) || '.',
267
+ tsconfig: explicitTsconfig,
268
+ polyfills: rawPolyfills,
269
+ providersFile: options.providersFile,
270
+ setupFiles: options.setupFiles,
271
+ inlineStyleLanguage: baseBuildOpts.inlineStyleLanguage ?? 'css',
272
+ stylePreprocessorOptions: baseBuildOpts.stylePreprocessorOptions,
273
+ fileReplacements,
274
+ environment: targetEnv,
275
+ isolate: options.isolate,
276
+ teardown: !options.debug,
277
+ include: relativeDiscovered,
278
+ exclude: excludePatterns,
279
+ });
280
+
281
+ const cliOptions = {
282
+ config: externalConfigPath,
283
+ root: projectRoot,
284
+ watch,
285
+ passWithNoTests: false,
286
+ ...(options.filter !== undefined ? { testNamePattern: options.filter } : {}),
287
+ ...(options.outputFile !== undefined ? { outputFile: options.outputFile } : {}),
288
+ ...(options.reporters ? { reporters: options.reporters } : {}),
289
+ ...(typeof options.ui === 'boolean' ? { ui: options.ui } : {}),
290
+ ...(options.coverage
291
+ ? {
292
+ coverage: {
293
+ enabled: true,
294
+ ...(options.coverageReporters ? { reporter: options.coverageReporters } : {}),
295
+ ...(options.coverageInclude ? { include: options.coverageInclude } : {}),
296
+ ...(options.coverageExclude ? { exclude: options.coverageExclude } : {}),
297
+ ...(options.coverageThresholds ? { thresholds: options.coverageThresholds } : {}),
298
+ },
299
+ }
300
+ : {}),
301
+ };
302
+
303
+ const viteServerOverrides = {
304
+ cacheDir: path.join(workspaceRoot, '.angular', 'cache', 'ngrs-vitest', projectName || 'app'),
305
+ plugins: testingPlugins,
306
+ };
307
+
308
+ process.exitCode = 0;
309
+ const vitest = await vitestNode.startVitest('test', [], cliOptions, viteServerOverrides);
310
+ if (!vitest) {
311
+ yield { success: false };
312
+ return;
313
+ }
314
+
315
+ context?.addTeardown?.(async () => {
316
+ await vitest.close();
317
+ });
318
+
319
+ try {
320
+ const testModules = vitest.state.getTestModules();
321
+ let success =
322
+ testModules.length > 0 && testModules.every((testModule) => testModule.ok());
323
+ if (success && process.exitCode === 1) {
324
+ success = false;
325
+ process.exitCode = 0;
326
+ }
327
+
328
+ if (!watch) {
329
+ await vitest.close();
330
+ yield { success };
331
+ return;
332
+ }
333
+
334
+ yield { success };
335
+ await new Promise((resolve) => {
336
+ vitest.onClose(resolve);
337
+ });
338
+ } finally {
339
+ if (!watch) {
340
+ await vitest.close().catch(() => {});
341
+ }
342
+ }
343
+ }
344
+
345
+ export const unitTestBuilder = createBuilder(executeUnitTestBuilder);
346
+ export default unitTestBuilder;
@@ -0,0 +1,126 @@
1
+ import { createHash } from 'node:crypto';
2
+
3
+ function escapeAttr(value) {
4
+ return String(value).replace(/&/g, '&amp;').replace(/"/g, '&quot;');
5
+ }
6
+
7
+ function applyDeployUrl(href, deployUrl) {
8
+ if (!deployUrl) {
9
+ return href;
10
+ }
11
+ if (/^(?:(?:\w+:)?\/\/|data:|chrome:|\/)/.test(href)) {
12
+ return href;
13
+ }
14
+ return `${deployUrl}${href}`;
15
+ }
16
+
17
+ function computeSri(content) {
18
+ const digest = createHash('sha384').update(content, 'utf8').digest('base64');
19
+ return `sha384-${digest}`;
20
+ }
21
+
22
+ function injectOrUpdateBaseHref(html, baseHref) {
23
+ if (typeof baseHref !== 'string') {
24
+ return html;
25
+ }
26
+ const escaped = escapeAttr(baseHref);
27
+ const existingBaseRe = /<base\b[^>]*>/i;
28
+ if (existingBaseRe.test(html)) {
29
+ return html.replace(existingBaseRe, (tag) => {
30
+ if (/\bhref\s*=/i.test(tag)) {
31
+ return tag.replace(/\bhref\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/i, `href="${escaped}"`);
32
+ }
33
+ return tag.replace(/\/?>$/, ` href="${escaped}">`);
34
+ });
35
+ }
36
+
37
+ const headOpenRe = /<head\b[^>]*>/i;
38
+ if (headOpenRe.test(html)) {
39
+ return html.replace(headOpenRe, (match) => `${match}\n <base href="${escaped}">`);
40
+ }
41
+
42
+ return `<base href="${escaped}">\n${html}`;
43
+ }
44
+
45
+ function insertBeforeClosingTag(html, tagName, snippet) {
46
+ if (!snippet) {
47
+ return html;
48
+ }
49
+ const closeRe = new RegExp(`</${tagName}\\s*>`, 'i');
50
+ if (closeRe.test(html)) {
51
+ return html.replace(closeRe, (match) => ` ${snippet}\n${match}`);
52
+ }
53
+ return `${html}\n${snippet}`;
54
+ }
55
+
56
+ /**
57
+ * Augments `index.html` with `<base href="...">`, global stylesheet `<link>` tags, global
58
+ * `<script defer>` tags, polyfill `<script type="module">`, and the main/entry `<script type="module">`
59
+ * tag (matching `@angular/build` `augmentIndexHtml` conventions).
60
+ *
61
+ * @param {object} params
62
+ * @param {string} params.html
63
+ * @param {string} [params.baseHref]
64
+ * @param {string} [params.deployUrl]
65
+ * @param {'none' | 'anonymous' | 'use-credentials'} [params.crossOrigin]
66
+ * @param {boolean} [params.sri]
67
+ * @param {Array<{ href: string, content?: string }>} [params.styles]
68
+ * @param {Array<{ src: string, isModule?: boolean, defer?: boolean, content?: string }>} [params.scripts]
69
+ * @returns {string}
70
+ */
71
+ export function transformIndexHtmlContent({
72
+ html,
73
+ baseHref,
74
+ deployUrl,
75
+ crossOrigin = 'none',
76
+ sri = false,
77
+ styles = [],
78
+ scripts = [],
79
+ }) {
80
+ let effectiveCrossOrigin = crossOrigin || 'none';
81
+ if (sri && effectiveCrossOrigin === 'none') {
82
+ effectiveCrossOrigin = 'anonymous';
83
+ }
84
+
85
+ let output = injectOrUpdateBaseHref(html, baseHref);
86
+
87
+ const linkTags = [];
88
+ for (const style of styles) {
89
+ const resolvedHref = applyDeployUrl(style.href, deployUrl);
90
+ const attrs = [`rel="stylesheet"`, `href="${escapeAttr(resolvedHref)}"`];
91
+ if (effectiveCrossOrigin !== 'none') {
92
+ attrs.push(`crossorigin="${escapeAttr(effectiveCrossOrigin)}"`);
93
+ }
94
+ if (sri && typeof style.content === 'string') {
95
+ attrs.push(`integrity="${computeSri(style.content)}"`);
96
+ }
97
+ linkTags.push(`<link ${attrs.join(' ')}>`);
98
+ }
99
+
100
+ const scriptTags = [];
101
+ for (const script of scripts) {
102
+ const resolvedSrc = applyDeployUrl(script.src, deployUrl);
103
+ const attrs = [`src="${escapeAttr(resolvedSrc)}"`];
104
+ if (script.isModule) {
105
+ attrs.push(`type="module"`);
106
+ } else if (script.defer !== false) {
107
+ attrs.push(`defer`);
108
+ }
109
+ if (effectiveCrossOrigin !== 'none') {
110
+ attrs.push(`crossorigin="${escapeAttr(effectiveCrossOrigin)}"`);
111
+ }
112
+ if (sri && typeof script.content === 'string') {
113
+ attrs.push(`integrity="${computeSri(script.content)}"`);
114
+ }
115
+ scriptTags.push(`<script ${attrs.join(' ')}></script>`);
116
+ }
117
+
118
+ if (linkTags.length > 0) {
119
+ output = insertBeforeClosingTag(output, 'head', linkTags.join('\n '));
120
+ }
121
+ if (scriptTags.length > 0) {
122
+ output = insertBeforeClosingTag(output, 'body', scriptTags.join('\n '));
123
+ }
124
+
125
+ return output;
126
+ }
package/src/index.cjs ADDED
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ const applicationBuilder = require('./builders/application/index.cjs');
4
+ const devServerBuilder = require('./builders/dev-server/index.cjs');
5
+ const extractI18nBuilder = require('./builders/extract-i18n/index.cjs');
6
+ const { BuilderSymbol, BuilderVersionSymbol, createCjsBuilder } = require('./architect-compat.cjs');
7
+
8
+ let esmPromise;
9
+ function loadEsm() {
10
+ if (!esmPromise) {
11
+ esmPromise = import('./index.mjs');
12
+ }
13
+ return esmPromise;
14
+ }
15
+
16
+ module.exports = {
17
+ BuilderSymbol,
18
+ BuilderVersionSymbol,
19
+ createBuilder: createCjsBuilder,
20
+ applicationBuilder,
21
+ buildApplication: applicationBuilder.buildApplication,
22
+ devServerBuilder,
23
+ executeDevServerBuilder: devServerBuilder.executeDevServerBuilder,
24
+ executeDevServer: devServerBuilder.executeDevServer,
25
+ serveApplication: devServerBuilder.serveApplication,
26
+ extractI18nBuilder,
27
+ executeExtractI18nBuilder: extractI18nBuilder.executeExtractI18nBuilder,
28
+ loadEsm,
29
+ };