@nf-beta/angular 0.0.2 → 0.0.4
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/package.json +17 -3
- package/src/builders/build/builder.d.ts.map +1 -1
- package/src/builders/build/builder.js +2 -1
- package/src/builders/build/federation-build-notifier.js +2 -2
- package/src/config.d.ts +2 -1
- package/src/config.d.ts.map +1 -1
- package/src/config.js +2 -1
- package/src/index.d.ts +1 -1
- package/src/index.d.ts.map +1 -1
- package/src/index.js +1 -1
- package/src/plugin/dev-externals-mixin.js +1 -1
- package/src/plugin/index.d.ts +1 -1
- package/src/plugin/index.d.ts.map +1 -1
- package/src/plugin/index.js +1 -1
- package/src/utils/angular-esbuild-adapter.d.ts +1 -1
- package/src/utils/angular-esbuild-adapter.d.ts.map +1 -1
- package/src/utils/angular-esbuild-adapter.js +1 -1
- package/src/utils/angular-locales.d.ts +5 -18
- package/src/utils/angular-locales.d.ts.map +1 -1
- package/src/utils/angular-locales.js +16 -11
- package/src/utils/i18n.d.ts +1 -1
- package/src/utils/i18n.d.ts.map +1 -1
- package/src/utils/i18n.js +1 -1
- package/src/utils/shared-mappings-plugin.d.ts +1 -1
- package/src/utils/shared-mappings-plugin.d.ts.map +1 -1
- package/src/utils/updateIndexHtml.d.ts +1 -1
- package/src/utils/updateIndexHtml.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nf-beta/angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"generators": "./collection.json",
|
|
5
5
|
"builders": "./builders.json",
|
|
6
6
|
"schematics": "./collection.json",
|
|
@@ -10,12 +10,13 @@
|
|
|
10
10
|
"url": "http://www.angulararchitects.io"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@nf-beta/core": "^0.0.
|
|
13
|
+
"@nf-beta/core": "^0.0.8",
|
|
14
14
|
"@angular-devkit/architect": "^0.2100.4",
|
|
15
15
|
"@angular-devkit/build-angular": "^21.0.4",
|
|
16
16
|
"@angular-devkit/core": "^21.0.4",
|
|
17
17
|
"@angular-devkit/schematics": "^21.0.4",
|
|
18
|
-
"@angular/build": "^21.0.4"
|
|
18
|
+
"@angular/build": "^21.0.4",
|
|
19
|
+
"@chialab/esbuild-plugin-commonjs": "^0.19.0"
|
|
19
20
|
},
|
|
20
21
|
"repository": {
|
|
21
22
|
"type": "git",
|
|
@@ -24,6 +25,19 @@
|
|
|
24
25
|
"ng-update": {
|
|
25
26
|
"migrations": "./migration-collection.json"
|
|
26
27
|
},
|
|
28
|
+
"exports": {
|
|
29
|
+
"./package.json": "./package.json",
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./src/index.d.ts",
|
|
32
|
+
"import": "./src/index.js",
|
|
33
|
+
"default": "./src/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./config": {
|
|
36
|
+
"types": "./src/config.d.ts",
|
|
37
|
+
"import": "./src/config.js",
|
|
38
|
+
"default": "./src/config.js"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
27
41
|
"homepage": "https://github.com/native-federation/angular",
|
|
28
42
|
"type": "module",
|
|
29
43
|
"files": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../../src/builders/build/builder.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,aAAa,EAGnB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../../src/builders/build/builder.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,aAAa,EAGnB,MAAM,2BAA2B,CAAC;AA6BnC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAsCnD,wBAAuB,UAAU,CAC/B,SAAS,EAAE,eAAe,EAC1B,OAAO,EAAE,cAAc,GACtB,aAAa,CAAC,aAAa,CAAC,CA8X9B;wBA6C2C,GAAG;AAA/C,wBAAgD"}
|
|
@@ -5,7 +5,8 @@ import { buildApplication } from '@angular/build';
|
|
|
5
5
|
import { buildApplicationInternal, serveWithVite } from '@angular/build/private';
|
|
6
6
|
import { createBuilder, targetFromTargetString, } from '@angular-devkit/architect';
|
|
7
7
|
import { normalizeOptions } from '@angular-devkit/build-angular/src/builders/dev-server/options.js';
|
|
8
|
-
import { buildForFederation, getExternals, loadFederationConfig,
|
|
8
|
+
import { buildForFederation, getExternals, loadFederationConfig, setBuildAdapter, } from '@nf-beta/core';
|
|
9
|
+
import { logger, setLogLevel, RebuildQueue, AbortedError } from '@nf-beta/core/internal';
|
|
9
10
|
import { createAngularBuildAdapter, setMemResultHandler, } from '../../utils/angular-esbuild-adapter.js';
|
|
10
11
|
import { existsSync, mkdirSync, rmSync } from 'fs';
|
|
11
12
|
import { fstart } from '../../tools/fstart-as-data-url.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildNotificationType } from '@nf-beta/
|
|
2
|
-
import { logger } from '@nf-beta/core/
|
|
1
|
+
import { BuildNotificationType } from '@nf-beta/core';
|
|
2
|
+
import { logger } from '@nf-beta/core/internal';
|
|
3
3
|
/**
|
|
4
4
|
* Manages Server-Sent Events for federation hot reload in local development
|
|
5
5
|
* Only active when running in development mode with dev server
|
package/src/config.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '@nf-beta/core/config';
|
|
2
|
+
export { DEFAULT_SKIP_LIST } from '@nf-beta/core';
|
|
2
3
|
export { shareAngularLocales } from './utils/angular-locales.js';
|
|
3
4
|
//# sourceMappingURL=config.d.ts.map
|
package/src/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC"}
|
package/src/config.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '@nf-beta/core/config';
|
|
2
|
+
export { DEFAULT_SKIP_LIST } from '@nf-beta/core';
|
|
2
3
|
export { shareAngularLocales } from './utils/angular-locales.js';
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '@nf-beta/
|
|
1
|
+
export * from '@nf-beta/core';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@nf-beta/
|
|
1
|
+
export * from '@nf-beta/core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { federationBuilder } from '@nf-beta/core
|
|
1
|
+
import { federationBuilder } from '@nf-beta/core';
|
|
2
2
|
import { filterExternals } from './externals-skip-list.js';
|
|
3
3
|
// see: https://github.com/vitejs/vite/issues/6393#issuecomment-1006819717
|
|
4
4
|
export const devExternalsMixin = {
|
package/src/plugin/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugin/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAoD,MAAM,MAAM,CAAC;AAIrF,OAAO,EAAE,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugin/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAoD,MAAM,MAAM,CAAC;AAIrF,OAAO,EAAE,KAAK,iBAAiB,EAA0C,MAAM,eAAe,CAAC;AAI/F,eAAO,MAAM,UAAU,GAAI,QAAQ,iBAAiB,KAAG,MAoCtD,CAAC"}
|
package/src/plugin/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as path from 'path';
|
|
|
3
3
|
import { lookup } from 'mrmime';
|
|
4
4
|
import { devExternalsMixin } from './dev-externals-mixin.js';
|
|
5
5
|
import { filterExternals } from './externals-skip-list.js';
|
|
6
|
-
import { federationBuilder } from '@nf-beta/core
|
|
6
|
+
import { federationBuilder } from '@nf-beta/core';
|
|
7
7
|
export const federation = (params) => {
|
|
8
8
|
return {
|
|
9
9
|
...devExternalsMixin,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BuildAdapter } from '@nf-beta/core
|
|
1
|
+
import { type BuildAdapter } from '@nf-beta/core';
|
|
2
2
|
import * as esbuild from 'esbuild';
|
|
3
3
|
import type { BuilderContext } from '@angular-devkit/architect';
|
|
4
4
|
import type { ApplicationBuilderOptions } from '@angular/build';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-esbuild-adapter.d.ts","sourceRoot":"","sources":["../../../src/utils/angular-esbuild-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"angular-esbuild-adapter.d.ts","sourceRoot":"","sources":["../../../src/utils/angular-esbuild-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAIlB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAWnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAShE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAQhE,OAAO,EAAE,KAAK,aAAa,EAAe,MAAM,qBAAqB,CAAC;AAMtE,MAAM,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,UAAU,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;AAKzF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAEnE;AAED,wBAAgB,yBAAyB,CACvC,cAAc,EAAE,yBAAyB,EACzC,OAAO,EAAE,cAAc,EACvB,gBAAgB,GAAE,aAAiC,GAClD,YAAY,CAwFd;AAgSD,wBAAgB,aAAa,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,CAErE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { logger, AbortedError } from '@nf-beta/core/internal';
|
|
2
2
|
import * as esbuild from 'esbuild';
|
|
3
3
|
import { transformSupportedBrowsersToTargets, getSupportedBrowsers, generateSearchDirectories, findTailwindConfiguration, loadPostcssConfiguration, } from '@angular/build/private';
|
|
4
4
|
import { createCompilerPluginOptions } from './create-compiler-options.js';
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare function shareAngularLocales(keys: string[],
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
resolveGlob?: boolean;
|
|
7
|
-
keepAll?: boolean;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
})[] | {
|
|
11
|
-
[x: string]: SharedConfig & {
|
|
12
|
-
includeSecondaries?: boolean | {
|
|
13
|
-
skip: string | string[];
|
|
14
|
-
resolveGlob?: boolean;
|
|
15
|
-
keepAll?: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
1
|
+
import { type ExternalConfig } from '@nf-beta/core/config';
|
|
2
|
+
export declare function shareAngularLocales(keys: string[], opts?: {
|
|
3
|
+
config?: ExternalConfig;
|
|
4
|
+
legacy?: boolean;
|
|
5
|
+
}): import("@nf-beta/core/config").ShareExternalsOptions;
|
|
19
6
|
//# sourceMappingURL=angular-locales.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-locales.d.ts","sourceRoot":"","sources":["../../../src/utils/angular-locales.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,
|
|
1
|
+
{"version":3,"file":"angular-locales.d.ts","sourceRoot":"","sources":["../../../src/utils/angular-locales.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAElE,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,GAAE;IAAE,MAAM,CAAC,EAAE,cAAc,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,wDAuBzD"}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { share } from '@nf-beta/core/
|
|
2
|
-
export function shareAngularLocales(keys,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { share } from '@nf-beta/core/config';
|
|
2
|
+
export function shareAngularLocales(keys, opts = {}) {
|
|
3
|
+
if (!opts.config) {
|
|
4
|
+
opts.config = {
|
|
5
|
+
singleton: true,
|
|
6
|
+
strictVersion: true,
|
|
7
|
+
requiredVersion: 'auto',
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
const ext = opts.legacy ? '.mjs' : '.js';
|
|
7
11
|
const locales = keys.reduce((acc, key) => {
|
|
8
12
|
acc[`@angular/common/locales/${key}`] = {
|
|
9
|
-
...config,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
...opts.config,
|
|
14
|
+
packageInfo: {
|
|
15
|
+
esm: true,
|
|
16
|
+
entryPoint: `node_modules/@angular/common/locales/${key}${ext}`,
|
|
17
|
+
...opts.config.packageInfo,
|
|
18
|
+
},
|
|
14
19
|
};
|
|
15
20
|
return acc;
|
|
16
21
|
}, {});
|
package/src/utils/i18n.d.ts
CHANGED
package/src/utils/i18n.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/utils/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAKhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/utils/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAKhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,iBAAiB,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,EAAE,MAAM,GAAG,kBAAkB,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,YAAY,CAAC,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAsB,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAO5F;AAED,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,OAAO,GAAG,MAAM,EAAE,EAC5B,UAAU,EAAE,MAAM,EAClB,gBAAgB,EAAE,cAAc,iBAgDjC"}
|
package/src/utils/i18n.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Plugin } from 'esbuild';
|
|
2
|
-
import type { MappedPath } from '@nf-beta/core/
|
|
2
|
+
import type { MappedPath } from '@nf-beta/core/internal';
|
|
3
3
|
export declare function createSharedMappingsPlugin(mappedPaths: MappedPath[]): Plugin;
|
|
4
4
|
//# sourceMappingURL=shared-mappings-plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-mappings-plugin.d.ts","sourceRoot":"","sources":["../../../src/utils/shared-mappings-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,SAAS,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"shared-mappings-plugin.d.ts","sourceRoot":"","sources":["../../../src/utils/shared-mappings-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,SAAS,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,MAAM,CA8B5E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FederationOptions } from '@nf-beta/core
|
|
1
|
+
import type { FederationOptions } from '@nf-beta/core';
|
|
2
2
|
import type { NfBuilderSchema } from '../builders/build/schema.js';
|
|
3
3
|
export declare function updateIndexHtml(fedOptions: FederationOptions, nfOptions: NfBuilderSchema): void;
|
|
4
4
|
export declare function updateScriptTags(indexContent: string, nfOptions: NfBuilderSchema): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateIndexHtml.d.ts","sourceRoot":"","sources":["../../../src/utils/updateIndexHtml.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"updateIndexHtml.d.ts","sourceRoot":"","sources":["../../../src/utils/updateIndexHtml.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEnE,wBAAgB,eAAe,CAAC,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,eAAe,QAuBxF;AAED,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,UAqBhF"}
|