@empathyco/x-archetype-utils 0.1.0-alpha.3 → 0.1.0-alpha.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/dist/cjs/build/webpack/webpack.config.js +26 -0
- package/dist/cjs/build/webpack/webpack.config.js.map +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/build/webpack/webpack.config.js +23 -0
- package/dist/esm/build/webpack/webpack.config.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/types/build/webpack/webpack.config.d.ts +35 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.webpackConfig = void 0;
|
|
4
|
+
exports.webpackConfig = {
|
|
5
|
+
transpileDependencies: ['@empathyco/x-components'],
|
|
6
|
+
configureWebpack: {
|
|
7
|
+
module: {
|
|
8
|
+
rules: [
|
|
9
|
+
{
|
|
10
|
+
test: /\.ts|js|vue$/,
|
|
11
|
+
enforce: 'pre',
|
|
12
|
+
use: ['source-map-loader']
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
output: {
|
|
17
|
+
devtoolModuleFilenameTemplate: ({ resourcePath, hash, query }) => resourcePath.match(/\.vue$/) &&
|
|
18
|
+
!query.match(/type=script/) &&
|
|
19
|
+
!query.match(/\?rollup-plugin-vue=script.ts/)
|
|
20
|
+
? `webpack-generated:///${resourcePath}?${hash}`
|
|
21
|
+
: `sources://${resourcePath}`,
|
|
22
|
+
devtoolFallbackModuleFilenameTemplate: 'webpack:///[resource-path]?[hash]'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=webpack.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack.config.js","sourceRoot":"","sources":["../../../../src/build/webpack/webpack.config.ts"],"names":[],"mappings":";;;AAmBa,QAAA,aAAa,GAAG;IAC3B,qBAAqB,EAAE,CAAC,yBAAyB,CAAC;IAClD,gBAAgB,EAAE;QAChB,MAAM,EAAE;YACN,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,cAAc;oBACpB,OAAO,EAAE,KAAK;oBACd,GAAG,EAAE,CAAC,mBAAmB,CAAC;iBAC3B;aACF;SACF;QACD,MAAM,EAAE;YACN,6BAA6B,EAAE,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAA+B,EAAE,EAAE,CAC5F,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC;gBAC5B,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC;gBAC3B,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,CAAC;gBAC3C,CAAC,CAAC,wBAAwB,YAAY,IAAI,IAAI,EAAE;gBAChD,CAAC,CAAC,aAAa,YAAY,EAAE;YACjC,qCAAqC,EAAE,mCAAmC;SAC3E;KACF;CACF,CAAC","sourcesContent":["/**.\n * Self-made interface since Webpack does not provide a type for this object.\n * Https://github.com/webpack/webpack/blob/main/declarations/WebpackOptions.d.ts#L463\n *\n * @internal\n */\ninterface webpackFilenameTemplateInfo {\n identifier: string;\n shortIdentifier: string;\n resource: string;\n resourcePath: string;\n absoluteResourcePath: string;\n allLoaders: string;\n query: string;\n moduleId: string;\n hash: string;\n namespace: string;\n}\n\nexport const webpackConfig = {\n transpileDependencies: ['@empathyco/x-components'],\n configureWebpack: {\n module: {\n rules: [\n {\n test: /\\.ts|js|vue$/,\n enforce: 'pre',\n use: ['source-map-loader']\n }\n ]\n },\n output: {\n devtoolModuleFilenameTemplate: ({ resourcePath, hash, query }: webpackFilenameTemplateInfo) =>\n resourcePath.match(/\\.vue$/) &&\n !query.match(/type=script/) &&\n !query.match(/\\?rollup-plugin-vue=script.ts/)\n ? `webpack-generated:///${resourcePath}?${hash}`\n : `sources://${resourcePath}`,\n devtoolFallbackModuleFilenameTemplate: 'webpack:///[resource-path]?[hash]'\n }\n }\n};\n"]}
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./i18n/i18n.plugin"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./i18n/i18n.types"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./build/webpack/webpack.config"), exports);
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,4DAAkC","sourcesContent":["export * from './i18n/i18n.plugin';\nexport * from './i18n/i18n.types';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,4DAAkC;AAClC,yEAA+C","sourcesContent":["export * from './i18n/i18n.plugin';\nexport * from './i18n/i18n.types';\nexport * from './build/webpack/webpack.config';\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const webpackConfig = {
|
|
2
|
+
transpileDependencies: ['@empathyco/x-components'],
|
|
3
|
+
configureWebpack: {
|
|
4
|
+
module: {
|
|
5
|
+
rules: [
|
|
6
|
+
{
|
|
7
|
+
test: /\.ts|js|vue$/,
|
|
8
|
+
enforce: 'pre',
|
|
9
|
+
use: ['source-map-loader']
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
output: {
|
|
14
|
+
devtoolModuleFilenameTemplate: ({ resourcePath, hash, query }) => resourcePath.match(/\.vue$/) &&
|
|
15
|
+
!query.match(/type=script/) &&
|
|
16
|
+
!query.match(/\?rollup-plugin-vue=script.ts/)
|
|
17
|
+
? `webpack-generated:///${resourcePath}?${hash}`
|
|
18
|
+
: `sources://${resourcePath}`,
|
|
19
|
+
devtoolFallbackModuleFilenameTemplate: 'webpack:///[resource-path]?[hash]'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=webpack.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack.config.js","sourceRoot":"","sources":["../../../../src/build/webpack/webpack.config.ts"],"names":[],"mappings":"AAmBA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,qBAAqB,EAAE,CAAC,yBAAyB,CAAC;IAClD,gBAAgB,EAAE;QAChB,MAAM,EAAE;YACN,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,cAAc;oBACpB,OAAO,EAAE,KAAK;oBACd,GAAG,EAAE,CAAC,mBAAmB,CAAC;iBAC3B;aACF;SACF;QACD,MAAM,EAAE;YACN,6BAA6B,EAAE,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAA+B,EAAE,EAAE,CAC5F,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC;gBAC5B,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC;gBAC3B,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,CAAC;gBAC3C,CAAC,CAAC,wBAAwB,YAAY,IAAI,IAAI,EAAE;gBAChD,CAAC,CAAC,aAAa,YAAY,EAAE;YACjC,qCAAqC,EAAE,mCAAmC;SAC3E;KACF;CACF,CAAC","sourcesContent":["/**.\n * Self-made interface since Webpack does not provide a type for this object.\n * Https://github.com/webpack/webpack/blob/main/declarations/WebpackOptions.d.ts#L463\n *\n * @internal\n */\ninterface webpackFilenameTemplateInfo {\n identifier: string;\n shortIdentifier: string;\n resource: string;\n resourcePath: string;\n absoluteResourcePath: string;\n allLoaders: string;\n query: string;\n moduleId: string;\n hash: string;\n namespace: string;\n}\n\nexport const webpackConfig = {\n transpileDependencies: ['@empathyco/x-components'],\n configureWebpack: {\n module: {\n rules: [\n {\n test: /\\.ts|js|vue$/,\n enforce: 'pre',\n use: ['source-map-loader']\n }\n ]\n },\n output: {\n devtoolModuleFilenameTemplate: ({ resourcePath, hash, query }: webpackFilenameTemplateInfo) =>\n resourcePath.match(/\\.vue$/) &&\n !query.match(/type=script/) &&\n !query.match(/\\?rollup-plugin-vue=script.ts/)\n ? `webpack-generated:///${resourcePath}?${hash}`\n : `sources://${resourcePath}`,\n devtoolFallbackModuleFilenameTemplate: 'webpack:///[resource-path]?[hash]'\n }\n }\n};\n"]}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './i18n/i18n.plugin';\nexport * from './i18n/i18n.types';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC","sourcesContent":["export * from './i18n/i18n.plugin';\nexport * from './i18n/i18n.types';\nexport * from './build/webpack/webpack.config';\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**.
|
|
2
|
+
* Self-made interface since Webpack does not provide a type for this object.
|
|
3
|
+
* Https://github.com/webpack/webpack/blob/main/declarations/WebpackOptions.d.ts#L463
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
interface webpackFilenameTemplateInfo {
|
|
8
|
+
identifier: string;
|
|
9
|
+
shortIdentifier: string;
|
|
10
|
+
resource: string;
|
|
11
|
+
resourcePath: string;
|
|
12
|
+
absoluteResourcePath: string;
|
|
13
|
+
allLoaders: string;
|
|
14
|
+
query: string;
|
|
15
|
+
moduleId: string;
|
|
16
|
+
hash: string;
|
|
17
|
+
namespace: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const webpackConfig: {
|
|
20
|
+
transpileDependencies: string[];
|
|
21
|
+
configureWebpack: {
|
|
22
|
+
module: {
|
|
23
|
+
rules: {
|
|
24
|
+
test: RegExp;
|
|
25
|
+
enforce: string;
|
|
26
|
+
use: string[];
|
|
27
|
+
}[];
|
|
28
|
+
};
|
|
29
|
+
output: {
|
|
30
|
+
devtoolModuleFilenameTemplate: ({ resourcePath, hash, query }: webpackFilenameTemplateInfo) => string;
|
|
31
|
+
devtoolFallbackModuleFilenameTemplate: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-archetype-utils",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.4",
|
|
4
4
|
"description": "Utilities for x-archetype",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "96852dc47d6573d88e8d1d2897dfc711a65d41fa"
|
|
58
58
|
}
|