@dotcom-tool-kit/webpack 1.2.0 → 1.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Task } from '@dotcom-tool-kit/
|
|
1
|
+
import { Task } from '@dotcom-tool-kit/types';
|
|
2
2
|
import { WebpackSchema } from '@dotcom-tool-kit/types/lib/schema/webpack';
|
|
3
3
|
export default class WebpackDevelopment extends Task<typeof WebpackSchema> {
|
|
4
4
|
static description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"development.d.ts","sourceRoot":"","sources":["../../src/tasks/development.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"development.d.ts","sourceRoot":"","sources":["../../src/tasks/development.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAA;AAGzE,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,IAAI,CAAC,OAAO,aAAa,CAAC;IACxE,MAAM,CAAC,WAAW,SAAkB;IAE9B,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAM3B"}
|
package/lib/tasks/development.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const
|
|
4
|
+
const types_1 = require("@dotcom-tool-kit/types");
|
|
5
5
|
const run_webpack_1 = (0, tslib_1.__importDefault)(require("../run-webpack"));
|
|
6
|
-
class WebpackDevelopment extends
|
|
6
|
+
class WebpackDevelopment extends types_1.Task {
|
|
7
7
|
async run() {
|
|
8
8
|
await (0, run_webpack_1.default)({
|
|
9
9
|
...this.options,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Task } from '@dotcom-tool-kit/
|
|
1
|
+
import { Task } from '@dotcom-tool-kit/types';
|
|
2
2
|
import { WebpackSchema } from '@dotcom-tool-kit/types/lib/schema/webpack';
|
|
3
3
|
export default class WebpackProduction extends Task<typeof WebpackSchema> {
|
|
4
4
|
static description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"production.d.ts","sourceRoot":"","sources":["../../src/tasks/production.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"production.d.ts","sourceRoot":"","sources":["../../src/tasks/production.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAA;AAGzE,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,IAAI,CAAC,OAAO,aAAa,CAAC;IACvE,MAAM,CAAC,WAAW,SAAkB;IAE9B,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAM3B"}
|
package/lib/tasks/production.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const
|
|
4
|
+
const types_1 = require("@dotcom-tool-kit/types");
|
|
5
5
|
const run_webpack_1 = (0, tslib_1.__importDefault)(require("../run-webpack"));
|
|
6
|
-
class WebpackProduction extends
|
|
6
|
+
class WebpackProduction extends types_1.Task {
|
|
7
7
|
async run() {
|
|
8
8
|
await (0, run_webpack_1.default)({
|
|
9
9
|
...this.options,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcom-tool-kit/webpack",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"main": "lib",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "FT.com Platforms Team <platforms-team.customer-products@ft.com>",
|
|
@@ -8,24 +8,23 @@
|
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/financial-times/dotcom-tool-kit.git",
|
|
11
|
-
"directory": "
|
|
11
|
+
"directory": "plugins/webpack"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://github.com/financial-times/dotcom-tool-kit/main/
|
|
13
|
+
"homepage": "https://github.com/financial-times/dotcom-tool-kit/main/plugins/webpack",
|
|
14
14
|
"bugs": "https://github.com/financial-times/dotcom-tool-kit/issues",
|
|
15
15
|
"keywords": [],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"test": "cd ../../ ; npx jest --silent --projects
|
|
17
|
+
"test": "cd ../../ ; npx jest --silent --projects plugins/webpack"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@dotcom-tool-kit/
|
|
21
|
-
"@dotcom-tool-kit/types": "^1.2.0",
|
|
20
|
+
"@dotcom-tool-kit/types": "^1.3.0",
|
|
22
21
|
"webpack-cli": "^4.6.0"
|
|
23
22
|
},
|
|
24
23
|
"peerDependencies": {
|
|
25
24
|
"webpack": "4.x.x || 5.x.x"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
28
|
-
"@jest/globals": "^
|
|
27
|
+
"@jest/globals": "^27.4.6",
|
|
29
28
|
"ts-node": "^10.0.0",
|
|
30
29
|
"webpack": "^4.42.1"
|
|
31
30
|
},
|