quidproquo-deploy-webpack 0.0.235 → 0.0.237

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,11 @@
1
+ import { QPQConfig } from 'quidproquo-core';
2
+ import { Compiler, WebpackPluginInstance } from 'webpack';
3
+ interface QpqWebPluginOptions {
4
+ qpqConfig: QPQConfig;
5
+ }
6
+ export declare class QpqWebPlugin implements WebpackPluginInstance {
7
+ private options;
8
+ constructor(options: QpqWebPluginOptions);
9
+ apply(compiler: Compiler): void;
10
+ }
11
+ export {};
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QpqWebPlugin = void 0;
4
+ const quidproquo_core_1 = require("quidproquo-core");
5
+ const webpack_1 = require("webpack");
6
+ class QpqWebPlugin {
7
+ constructor(options) {
8
+ this.options = options;
9
+ }
10
+ apply(compiler) {
11
+ const applicationName = quidproquo_core_1.qpqCoreUtils.getApplicationName(this.options.qpqConfig);
12
+ const environment = quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(this.options.qpqConfig);
13
+ const feature = quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(this.options.qpqConfig);
14
+ const serviceName = quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(this.options.qpqConfig);
15
+ const applicationConfigInfo = {
16
+ environment: environment,
17
+ module: serviceName,
18
+ name: applicationName,
19
+ feature: feature,
20
+ };
21
+ new webpack_1.DefinePlugin({
22
+ 'process.env.QPQ_APPLICATION_CONFIG_INFO': JSON.stringify(applicationConfigInfo),
23
+ }).apply(compiler);
24
+ }
25
+ }
26
+ exports.QpqWebPlugin = QpqWebPlugin;
@@ -1 +1,2 @@
1
1
  export * from './QpqPlugin';
2
+ export * from './QpqWebPlugin';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./QpqPlugin"), exports);
18
+ __exportStar(require("./QpqWebPlugin"), exports);
@@ -0,0 +1,11 @@
1
+ import { QPQConfig } from 'quidproquo-core';
2
+ import { Compiler, WebpackPluginInstance } from 'webpack';
3
+ interface QpqWebPluginOptions {
4
+ qpqConfig: QPQConfig;
5
+ }
6
+ export declare class QpqWebPlugin implements WebpackPluginInstance {
7
+ private options;
8
+ constructor(options: QpqWebPluginOptions);
9
+ apply(compiler: Compiler): void;
10
+ }
11
+ export {};
@@ -0,0 +1,23 @@
1
+ import { qpqCoreUtils } from 'quidproquo-core';
2
+ import { DefinePlugin } from 'webpack';
3
+ export class QpqWebPlugin {
4
+ options;
5
+ constructor(options) {
6
+ this.options = options;
7
+ }
8
+ apply(compiler) {
9
+ const applicationName = qpqCoreUtils.getApplicationName(this.options.qpqConfig);
10
+ const environment = qpqCoreUtils.getApplicationModuleEnvironment(this.options.qpqConfig);
11
+ const feature = qpqCoreUtils.getApplicationModuleFeature(this.options.qpqConfig);
12
+ const serviceName = qpqCoreUtils.getApplicationModuleName(this.options.qpqConfig);
13
+ const applicationConfigInfo = {
14
+ environment: environment,
15
+ module: serviceName,
16
+ name: applicationName,
17
+ feature: feature,
18
+ };
19
+ new DefinePlugin({
20
+ 'process.env.QPQ_APPLICATION_CONFIG_INFO': JSON.stringify(applicationConfigInfo),
21
+ }).apply(compiler);
22
+ }
23
+ }
@@ -1 +1,2 @@
1
1
  export * from './QpqPlugin';
2
+ export * from './QpqWebPlugin';
@@ -1 +1,2 @@
1
1
  export * from './QpqPlugin';
2
+ export * from './QpqWebPlugin';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-deploy-webpack",
3
- "version": "0.0.235",
3
+ "version": "0.0.237",
4
4
  "description": "",
5
5
  "main": "./lib/commonjs/webpack.config.js",
6
6
  "module": "./lib/esm/webpack.config.js",
@@ -33,11 +33,11 @@
33
33
  "homepage": "https://github.com/joe-coady/quidproquo#readme",
34
34
  "dependencies": {
35
35
  "path-browserify": "^1.0.1",
36
- "quidproquo-actionprocessor-awslambda": "0.0.235",
37
- "quidproquo-actionprocessor-node": "0.0.235",
38
- "quidproquo-core": "0.0.235",
39
- "quidproquo-deploy-awscdk": "0.0.235",
40
- "quidproquo-webserver": "0.0.235",
36
+ "quidproquo-actionprocessor-awslambda": "0.0.237",
37
+ "quidproquo-actionprocessor-node": "0.0.237",
38
+ "quidproquo-core": "0.0.237",
39
+ "quidproquo-deploy-awscdk": "0.0.237",
40
+ "quidproquo-webserver": "0.0.237",
41
41
  "webpack-virtual-modules": "^0.6.2"
42
42
  },
43
43
  "devDependencies": {
@@ -48,7 +48,7 @@
48
48
  "@types/node": "^20.2.1",
49
49
  "@types/prettier": "2.6.0",
50
50
  "babel-loader": "^9.1.2",
51
- "quidproquo-tsconfig": "0.0.235",
51
+ "quidproquo-tsconfig": "0.0.237",
52
52
  "ts-node": "^10.9.1",
53
53
  "typescript": "^5.0.4"
54
54
  },