@ms-cloudpack/common-types 0.2.5 → 0.3.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.
- package/lib/BundleOptions.d.ts +5 -0
- package/lib/BundleOptions.d.ts.map +1 -1
- package/lib/BundleOptions.js.map +1 -1
- package/lib/DevServer.d.ts +0 -6
- package/lib/DevServer.d.ts.map +1 -1
- package/lib/DevServer.js.map +1 -1
- package/lib/PackageSettings.d.ts +5 -0
- package/lib/PackageSettings.d.ts.map +1 -1
- package/lib/PackageSettings.js.map +1 -1
- package/lib/Route.d.ts +1 -1
- package/lib/Route.js.map +1 -1
- package/lib/allFeatures.d.ts +1 -0
- package/lib/allFeatures.d.ts.map +1 -1
- package/lib/allFeatures.js +1 -0
- package/lib/allFeatures.js.map +1 -1
- package/package.json +1 -1
- package/schema/GeneratedConfig.json +7 -0
- package/schema/UserConfig.json +11 -5
package/lib/BundleOptions.d.ts
CHANGED
|
@@ -47,6 +47,11 @@ export interface BundleOptions {
|
|
|
47
47
|
* the bundler type.
|
|
48
48
|
*/
|
|
49
49
|
bundlerType?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Paths to files that include dynamic imports. These are used by ori to determine which files should be
|
|
52
|
+
* processed by the dynamic-imports plugin.
|
|
53
|
+
*/
|
|
54
|
+
dynamicImports?: string[];
|
|
50
55
|
/**
|
|
51
56
|
* If specific settings are required to pass through to the specific bundler, they can be specified here are are
|
|
52
57
|
* expected to be merged in by the plugin. Specifying bundler-specific overrides is not recommended, as it locks
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BundleOptions.d.ts","sourceRoot":"","sources":["../src/BundleOptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;;OAOG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhC;;;O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,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC3C"}
|
package/lib/BundleOptions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BundleOptions.js","sourceRoot":"","sources":["../src/BundleOptions.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Options to create bundles from the bundler plugin.\n */\nexport interface BundleOptions {\n /**\n * The absolute input path for the entry points.\n */\n inputPath: string;\n\n /**\n * The entry point paths map. Key is path to the output file, relative to `outputPath` and stripped of `.js`\n * extension. Value is the input entry path, relative to `inputPath` including the extension. For example:\n * `{ 'lib/index': 'src/index.js' }`\n *\n * Note: Non-javascript extensions, such as `.css` or `.scss`, will not be stripped from the key.\n * This is to ensure the bundler keeps the original extension intact and adds `.js` after it.\n */\n entries: Record<string, string>;\n\n /**\n * The output path for bundled files. This can be either relative to `inputPath`, or absolute.\n * Defaults to `inputPath`.\n */\n outputPath?: string;\n\n /**\n * List of dependencies which should be externalized. Only applicable for ESM output.\n */\n external?: string[];\n\n /**\n * List of dependencies which should be inlined.\n */\n inlined?: string[];\n\n /**\n * If true, minify the output.\n */\n minify?: boolean;\n\n /**\n * If specified, will generate sourcemaps for the output. This may have a tax on performance.\n */\n sourcemap?: 'none' | 'linked' | 'inline' | 'external' | 'inline-and-external';\n\n /**\n * If true, the bundler is expected to stay alive and take requests to rebuild on demand. File watching is\n * managed at a higher layer. When we no longer care about incremental bundling, the bundler will receive a call\n * to `dispose` if returned.\n */\n incremental?: boolean;\n\n /**\n * If specified, will use a specific bundler type. This is not recommended unless there is a clear reason to hardcode\n * the bundler type.\n */\n // TODO: rename either this or BundleResult.bundlerName for consistency\n bundlerType?: string;\n\n /**\n * If specific settings are required to pass through to the specific bundler, they can be specified here are are\n * expected to be merged in by the plugin. Specifying bundler-specific overrides is not recommended, as it locks\n * us into a specific bundler implementation.\n */\n overrideOptions?: Record<string, unknown>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"BundleOptions.js","sourceRoot":"","sources":["../src/BundleOptions.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Options to create bundles from the bundler plugin.\n */\nexport interface BundleOptions {\n /**\n * The absolute input path for the entry points.\n */\n inputPath: string;\n\n /**\n * The entry point paths map. Key is path to the output file, relative to `outputPath` and stripped of `.js`\n * extension. Value is the input entry path, relative to `inputPath` including the extension. For example:\n * `{ 'lib/index': 'src/index.js' }`\n *\n * Note: Non-javascript extensions, such as `.css` or `.scss`, will not be stripped from the key.\n * This is to ensure the bundler keeps the original extension intact and adds `.js` after it.\n */\n entries: Record<string, string>;\n\n /**\n * The output path for bundled files. This can be either relative to `inputPath`, or absolute.\n * Defaults to `inputPath`.\n */\n outputPath?: string;\n\n /**\n * List of dependencies which should be externalized. Only applicable for ESM output.\n */\n external?: string[];\n\n /**\n * List of dependencies which should be inlined.\n */\n inlined?: string[];\n\n /**\n * If true, minify the output.\n */\n minify?: boolean;\n\n /**\n * If specified, will generate sourcemaps for the output. This may have a tax on performance.\n */\n sourcemap?: 'none' | 'linked' | 'inline' | 'external' | 'inline-and-external';\n\n /**\n * If true, the bundler is expected to stay alive and take requests to rebuild on demand. File watching is\n * managed at a higher layer. When we no longer care about incremental bundling, the bundler will receive a call\n * to `dispose` if returned.\n */\n incremental?: boolean;\n\n /**\n * If specified, will use a specific bundler type. This is not recommended unless there is a clear reason to hardcode\n * the bundler type.\n */\n // TODO: rename either this or BundleResult.bundlerName for consistency\n bundlerType?: string;\n\n /**\n * Paths to files that include dynamic imports. These are used by ori to determine which files should be\n * processed by the dynamic-imports plugin.\n */\n dynamicImports?: string[];\n\n /**\n * If specific settings are required to pass through to the specific bundler, they can be specified here are are\n * expected to be merged in by the plugin. Specifying bundler-specific overrides is not recommended, as it locks\n * us into a specific bundler implementation.\n */\n overrideOptions?: Record<string, unknown>;\n}\n"]}
|
package/lib/DevServer.d.ts
CHANGED
|
@@ -30,12 +30,6 @@ export interface DevServer {
|
|
|
30
30
|
* If not provided, the server will use http.
|
|
31
31
|
*/
|
|
32
32
|
https?: HttpsConfig;
|
|
33
|
-
/**
|
|
34
|
-
* If provided, will override where the publicDir is located, relative to the app package folder.
|
|
35
|
-
* Defaults to `./public`. The same thing can be achieved with `routes`, using route: '*' and
|
|
36
|
-
* staticPath: './public', so the `publicPath` setting may be removed in the future.
|
|
37
|
-
*/
|
|
38
|
-
publicPath?: string;
|
|
39
33
|
/**
|
|
40
34
|
* If provided, will register routes with the dev server to host various pages.
|
|
41
35
|
*/
|
package/lib/DevServer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevServer.d.ts","sourceRoot":"","sources":["../src/DevServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAExC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB
|
|
1
|
+
{"version":3,"file":"DevServer.d.ts","sourceRoot":"","sources":["../src/DevServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAExC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;CAClB"}
|
package/lib/DevServer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevServer.js","sourceRoot":"","sources":["../src/DevServer.ts"],"names":[],"mappings":"","sourcesContent":["import type { HttpsConfig } from './HttpsConfig.js';\nimport type { Route } from './Route.js';\n\nexport interface DevServer {\n /**\n * The domain name of the server.\n */\n domain?: string;\n\n /**\n * An optional dictionary of header key/value pairs to be use with the server.\n * NOTE: The following header values from Cloudpack will \"win\" against by a user's config:\n * 'Cache-Control': 'no-cache'\n * 'Access-Control-Allow-Origin': '*'\n */\n requestHeaders?: Record<string, string>;\n\n /**\n * The ports to be used by the server.\n * It can be a number or an array of numbers.\n * If ports are provided, an error will be thrown if none are available.\n * If no ports are provided, the server will attempt to find an available port.\n */\n port?: number | number[];\n\n /**\n * The default path to use when opening the browser.\n */\n defaultPath?: string;\n\n /**\n * The config settings for the https server.\n * Paths to files are accepted for 'ca', 'cert', 'key', and 'pfx' settings.\n * Everything else is passed directly to the https.createServer() method.\n * If not provided, the server will use http.\n */\n https?: HttpsConfig;\n\n /**\n * If provided, will
|
|
1
|
+
{"version":3,"file":"DevServer.js","sourceRoot":"","sources":["../src/DevServer.ts"],"names":[],"mappings":"","sourcesContent":["import type { HttpsConfig } from './HttpsConfig.js';\nimport type { Route } from './Route.js';\n\nexport interface DevServer {\n /**\n * The domain name of the server.\n */\n domain?: string;\n\n /**\n * An optional dictionary of header key/value pairs to be use with the server.\n * NOTE: The following header values from Cloudpack will \"win\" against by a user's config:\n * 'Cache-Control': 'no-cache'\n * 'Access-Control-Allow-Origin': '*'\n */\n requestHeaders?: Record<string, string>;\n\n /**\n * The ports to be used by the server.\n * It can be a number or an array of numbers.\n * If ports are provided, an error will be thrown if none are available.\n * If no ports are provided, the server will attempt to find an available port.\n */\n port?: number | number[];\n\n /**\n * The default path to use when opening the browser.\n */\n defaultPath?: string;\n\n /**\n * The config settings for the https server.\n * Paths to files are accepted for 'ca', 'cert', 'key', and 'pfx' settings.\n * Everything else is passed directly to the https.createServer() method.\n * If not provided, the server will use http.\n */\n https?: HttpsConfig;\n\n /**\n * If provided, will register routes with the dev server to host various pages.\n */\n routes?: Route[];\n}\n"]}
|
package/lib/PackageSettings.d.ts
CHANGED
|
@@ -60,5 +60,10 @@ export interface PackageSettings {
|
|
|
60
60
|
* - To ignore exports from another path: `{ "./lib/foo": ["badName"] }`
|
|
61
61
|
*/
|
|
62
62
|
ignoreMissingExports?: boolean | Record<string, string[]>;
|
|
63
|
+
/**
|
|
64
|
+
* Paths to files that include dynamic imports. These are used by ori to determine which files should be
|
|
65
|
+
* processed by the dynamic-imports plugin.
|
|
66
|
+
*/
|
|
67
|
+
dynamicImports?: string[];
|
|
63
68
|
}
|
|
64
69
|
//# sourceMappingURL=PackageSettings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageSettings.d.ts","sourceRoot":"","sources":["../src/PackageSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,EACD;QACE;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,GAED,MAAM,CAAC;IAEX;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,E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EAAE,MAAM,EAAE,CAAC;CAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageSettings.js","sourceRoot":"","sources":["../src/PackageSettings.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageJsonExports } from './PackageJson.js';\n\n/**\n * Settings which apply to a single package (app or library) as it pertains to the Cloudpack start experience.\n */\nexport interface PackageSettings {\n /**\n * A match to indicate the target for the settings to be applied to.\n */\n match:\n | {\n /**\n * Name of the package. Can use a trailing wildcard (e.g. \"\\@scope/*\").\n */\n name: string;\n\n /**\n * Version of the package. Unspecified matches any version.\n */\n version?: string;\n }\n // Match can be a string, which is a shortcut for the name.\n | string;\n\n /**\n * The dependencies which should be included when computing the import map. This is primarily used when\n * devDependencies are needed by the app. This often happens when a library has a demo app which relies\n * on devDependencies.\n */\n includedDependencies?: string[];\n\n /**\n * The dependencies which should be ignored by Cloudpack verbs. For example, if \"react-native\" is a dependency\n * which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it.\n */\n excludedDependencies?: string[];\n\n /**\n * Dependencies which should be inlined in the library bundled by Cloudpack. This is useful for libraries which\n * are small and don't need to be loaded separately, or ones which have issues being resolved by the browser.\n */\n inlinedDependencies?: string[];\n\n /**\n * The exports map that should be used for this package, ignoring entries which are defined in the original\n * package.json. This is useful for libraries which have a missing or broken exports map, or when we want to\n * trim the exports to reduce the api surface we expose to the inner loop experience.\n */\n exports?: PackageJsonExports;\n\n /**\n * Forces the package to be bundled using a specific bundler.\n */\n bundlerType?: string;\n\n /**\n * Options to pass to the bundler.\n */\n bundlerOptions?: Record<string, unknown>;\n\n /**\n * Paths used for file monitoring and input hashing. Supports glob matching.\n * Defaults to `[/src/**, *.json]` and excludes node_modules.\n * Use `...` to include the default paths.\n */\n inputPaths?: string[];\n\n /**\n * Controls the behavior of the `verifyExports` feature when checking consumed exports from this package:\n * - If true, don't check this package's exports at all.\n * - If an object, this is a mapping from package import paths to export names to ignore. Examples:\n * - To ignore top-level exports: `{ \".\": [\"badName\"] }`\n * - To ignore exports from another path: `{ \"./lib/foo\": [\"badName\"] }`\n */\n ignoreMissingExports?: boolean | Record<string, string[]>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"PackageSettings.js","sourceRoot":"","sources":["../src/PackageSettings.ts"],"names":[],"mappings":"","sourcesContent":["import type { PackageJsonExports } from './PackageJson.js';\n\n/**\n * Settings which apply to a single package (app or library) as it pertains to the Cloudpack start experience.\n */\nexport interface PackageSettings {\n /**\n * A match to indicate the target for the settings to be applied to.\n */\n match:\n | {\n /**\n * Name of the package. Can use a trailing wildcard (e.g. \"\\@scope/*\").\n */\n name: string;\n\n /**\n * Version of the package. Unspecified matches any version.\n */\n version?: string;\n }\n // Match can be a string, which is a shortcut for the name.\n | string;\n\n /**\n * The dependencies which should be included when computing the import map. This is primarily used when\n * devDependencies are needed by the app. This often happens when a library has a demo app which relies\n * on devDependencies.\n */\n includedDependencies?: string[];\n\n /**\n * The dependencies which should be ignored by Cloudpack verbs. For example, if \"react-native\" is a dependency\n * which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it.\n */\n excludedDependencies?: string[];\n\n /**\n * Dependencies which should be inlined in the library bundled by Cloudpack. This is useful for libraries which\n * are small and don't need to be loaded separately, or ones which have issues being resolved by the browser.\n */\n inlinedDependencies?: string[];\n\n /**\n * The exports map that should be used for this package, ignoring entries which are defined in the original\n * package.json. This is useful for libraries which have a missing or broken exports map, or when we want to\n * trim the exports to reduce the api surface we expose to the inner loop experience.\n */\n exports?: PackageJsonExports;\n\n /**\n * Forces the package to be bundled using a specific bundler.\n */\n bundlerType?: string;\n\n /**\n * Options to pass to the bundler.\n */\n bundlerOptions?: Record<string, unknown>;\n\n /**\n * Paths used for file monitoring and input hashing. Supports glob matching.\n * Defaults to `[/src/**, *.json]` and excludes node_modules.\n * Use `...` to include the default paths.\n */\n inputPaths?: string[];\n\n /**\n * Controls the behavior of the `verifyExports` feature when checking consumed exports from this package:\n * - If true, don't check this package's exports at all.\n * - If an object, this is a mapping from package import paths to export names to ignore. Examples:\n * - To ignore top-level exports: `{ \".\": [\"badName\"] }`\n * - To ignore exports from another path: `{ \"./lib/foo\": [\"badName\"] }`\n */\n ignoreMissingExports?: boolean | Record<string, string[]>;\n\n /**\n * Paths to files that include dynamic imports. These are used by ori to determine which files should be\n * processed by the dynamic-imports plugin.\n */\n dynamicImports?: string[];\n}\n"]}
|
package/lib/Route.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface Route {
|
|
|
11
11
|
staticPath?: string;
|
|
12
12
|
/**
|
|
13
13
|
* Path to a .js or .html file used for rendering the route. If a script is provided, it must
|
|
14
|
-
* export a default function implementing `
|
|
14
|
+
* export a default function implementing `RenderRouteFunction` defined in `@ms-cloudpack/app-server`.
|
|
15
15
|
*/
|
|
16
16
|
renderScript?: string;
|
|
17
17
|
/**
|
package/lib/Route.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Route.js","sourceRoot":"","sources":["../src/Route.ts"],"names":[],"mappings":"","sourcesContent":["export interface Route {\n /**\n * The url path part to match. Start paths with a leading slash, e.g. `'/my-route'`. You can also\n * use wildcards (`*`), e.g. `'/my-route/*'` to match all paths starting with `'/my-route'`.\n */\n match: string;\n\n /**\n * The path relative to the app root to static assets. If this is provided, renderScript/exportEntry\n * will be ignored.\n */\n staticPath?: string;\n\n /**\n * Path to a .js or .html file used for rendering the route. If a script is provided, it must\n * export a default function implementing `
|
|
1
|
+
{"version":3,"file":"Route.js","sourceRoot":"","sources":["../src/Route.ts"],"names":[],"mappings":"","sourcesContent":["export interface Route {\n /**\n * The url path part to match. Start paths with a leading slash, e.g. `'/my-route'`. You can also\n * use wildcards (`*`), e.g. `'/my-route/*'` to match all paths starting with `'/my-route'`.\n */\n match: string;\n\n /**\n * The path relative to the app root to static assets. If this is provided, renderScript/exportEntry\n * will be ignored.\n */\n staticPath?: string;\n\n /**\n * Path to a .js or .html file used for rendering the route. If a script is provided, it must\n * export a default function implementing `RenderRouteFunction` defined in `@ms-cloudpack/app-server`.\n */\n renderScript?: string;\n\n /**\n * The key in the exports map which represents the entry point app script for this route.\n * Default is '.', meaning the main package export key.\n */\n exportEntry?: string;\n}\n"]}
|
package/lib/allFeatures.d.ts
CHANGED
package/lib/allFeatures.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allFeatures.d.ts","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"allFeatures.d.ts","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;CAYvB,CAAC"}
|
package/lib/allFeatures.js
CHANGED
|
@@ -12,5 +12,6 @@ export const allFeatures = {
|
|
|
12
12
|
},
|
|
13
13
|
verifyExports: { description: 'Enables the verification of exports during init.' },
|
|
14
14
|
syncBundles: { description: 'Enables the syncing of bundles.' },
|
|
15
|
+
builtinDynamicImports: { description: 'Enables the use of builtin dynamic imports.' },
|
|
15
16
|
};
|
|
16
17
|
//# sourceMappingURL=allFeatures.js.map
|
package/lib/allFeatures.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,iBAAiB,EAAE,EAAE,WAAW,EAAE,sDAAsD,EAAa;IACrG,mBAAmB,EAAE,EAAE,WAAW,EAAE,iEAAiE,EAAa;IAClH,UAAU,EAAE,EAAE,WAAW,EAAE,4CAA4C,EAAa;IACpF,oBAAoB,EAAE,EAAE,WAAW,EAAE,6DAA6D,EAAa;IAC/G,oBAAoB,EAAE;QACpB,WAAW,EACT,iKAAiK;KACzJ;IACZ,aAAa,EAAE,EAAE,WAAW,EAAE,kDAAkD,EAAa;IAC7F,WAAW,EAAE,EAAE,WAAW,EAAE,iCAAiC,EAAa;
|
|
1
|
+
{"version":3,"file":"allFeatures.js","sourceRoot":"","sources":["../src/allFeatures.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,iBAAiB,EAAE,EAAE,WAAW,EAAE,sDAAsD,EAAa;IACrG,mBAAmB,EAAE,EAAE,WAAW,EAAE,iEAAiE,EAAa;IAClH,UAAU,EAAE,EAAE,WAAW,EAAE,4CAA4C,EAAa;IACpF,oBAAoB,EAAE,EAAE,WAAW,EAAE,6DAA6D,EAAa;IAC/G,oBAAoB,EAAE;QACpB,WAAW,EACT,iKAAiK;KACzJ;IACZ,aAAa,EAAE,EAAE,WAAW,EAAE,kDAAkD,EAAa;IAC7F,WAAW,EAAE,EAAE,WAAW,EAAE,iCAAiC,EAAa;IAC1E,qBAAqB,EAAE,EAAE,WAAW,EAAE,6CAA6C,EAAa;CACjG,CAAC","sourcesContent":["import type { Feature } from './Feature.js';\n\n/**\n * A set of options for configuring the experience. Features can be set to true to change the default\n * behavior.\n */\nexport const allFeatures = {\n disableSourceMaps: { description: 'Disables the generation of source-maps during build.' } as Feature,\n enqueueDependencies: { description: 'Enables the preemptive enqueueing of dependencies during build.' } as Feature,\n enableLage: { description: 'Enables the use of lage for running tasks.' } as Feature,\n resolveWebExtensions: { description: 'Enables React Native type resolution of .web.ts extensions.' } as Feature,\n optimizeDependencies: {\n description:\n 'Excludes unused dependencies in the generated config during an init run. This helps trim the dependency graph, reduce the import map, and speed up performance.',\n } as Feature,\n verifyExports: { description: 'Enables the verification of exports during init.' } as Feature,\n syncBundles: { description: 'Enables the syncing of bundles.' } as Feature,\n builtinDynamicImports: { description: 'Enables the use of builtin dynamic imports.' } as Feature,\n};\n"]}
|
package/package.json
CHANGED
|
@@ -109,6 +109,13 @@
|
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
111
|
"description": "Controls the behavior of the `verifyExports` feature when checking consumed exports from this package:\n- If true, don't check this package's exports at all.\n- If an object, this is a mapping from package import paths to export names to ignore. Examples: - To ignore top-level exports: `{ \".\": [\"badName\"] }` - To ignore exports from another path: `{ \"./lib/foo\": [\"badName\"] }`"
|
|
112
|
+
},
|
|
113
|
+
"dynamicImports": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"description": "Paths to files that include dynamic imports. These are used by ori to determine which files should be processed by the dynamic-imports plugin."
|
|
112
119
|
}
|
|
113
120
|
},
|
|
114
121
|
"required": [
|
package/schema/UserConfig.json
CHANGED
|
@@ -137,10 +137,6 @@
|
|
|
137
137
|
"$ref": "#/definitions/HttpsConfig",
|
|
138
138
|
"description": "The config settings for the https server. Paths to files are accepted for 'ca', 'cert', 'key', and 'pfx' settings. Everything else is passed directly to the https.createServer() method. If not provided, the server will use http."
|
|
139
139
|
},
|
|
140
|
-
"publicPath": {
|
|
141
|
-
"type": "string",
|
|
142
|
-
"description": "If provided, will override where the publicDir is located, relative to the app package folder. Defaults to `./public`. The same thing can be achieved with `routes`, using route: '*' and staticPath: './public', so the `publicPath` setting may be removed in the future."
|
|
143
|
-
},
|
|
144
140
|
"routes": {
|
|
145
141
|
"type": "array",
|
|
146
142
|
"items": {
|
|
@@ -447,7 +443,7 @@
|
|
|
447
443
|
},
|
|
448
444
|
"renderScript": {
|
|
449
445
|
"type": "string",
|
|
450
|
-
"description": "Path to a .js or .html file used for rendering the route. If a script is provided, it must export a default function implementing `
|
|
446
|
+
"description": "Path to a .js or .html file used for rendering the route. If a script is provided, it must export a default function implementing `RenderRouteFunction` defined in `@ms-cloudpack/app-server`."
|
|
451
447
|
},
|
|
452
448
|
"exportEntry": {
|
|
453
449
|
"type": "string",
|
|
@@ -495,6 +491,9 @@
|
|
|
495
491
|
},
|
|
496
492
|
"syncBundles": {
|
|
497
493
|
"type": "boolean"
|
|
494
|
+
},
|
|
495
|
+
"builtinDynamicImports": {
|
|
496
|
+
"type": "boolean"
|
|
498
497
|
}
|
|
499
498
|
},
|
|
500
499
|
"additionalProperties": false,
|
|
@@ -586,6 +585,13 @@
|
|
|
586
585
|
}
|
|
587
586
|
],
|
|
588
587
|
"description": "Controls the behavior of the `verifyExports` feature when checking consumed exports from this package:\n- If true, don't check this package's exports at all.\n- If an object, this is a mapping from package import paths to export names to ignore. Examples: - To ignore top-level exports: `{ \".\": [\"badName\"] }` - To ignore exports from another path: `{ \"./lib/foo\": [\"badName\"] }`"
|
|
588
|
+
},
|
|
589
|
+
"dynamicImports": {
|
|
590
|
+
"type": "array",
|
|
591
|
+
"items": {
|
|
592
|
+
"type": "string"
|
|
593
|
+
},
|
|
594
|
+
"description": "Paths to files that include dynamic imports. These are used by ori to determine which files should be processed by the dynamic-imports plugin."
|
|
589
595
|
}
|
|
590
596
|
},
|
|
591
597
|
"required": [
|