Skip to content

Commit bd51a72

Browse files
committed
Split the webpack 4 and webpack 5 tests out.
1 parent 70b1157 commit bd51a72

File tree

27 files changed

+293
-94
lines changed

27 files changed

+293
-94
lines changed

build-tests/hashed-folder-copy-plugin-test/build.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

build-tests/hashed-folder-copy-plugin-test/serve.js

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
* Defines configuration used by core Heft.
3+
*/
4+
{
5+
"$schema": "https://developer.microsoft.com/json-schemas/heft/heft.schema.json",
6+
7+
"eventActions": [
8+
{
9+
/**
10+
* The kind of built-in operation that should be performed.
11+
* The "deleteGlobs" action deletes files or folders that match the
12+
* specified glob patterns.
13+
*/
14+
"actionKind": "deleteGlobs",
15+
16+
/**
17+
* The stage of the Heft run during which this action should occur. Note that actions specified in heft.json
18+
* occur at the end of the stage of the Heft run.
19+
*/
20+
"heftEvent": "clean",
21+
22+
/**
23+
* A user-defined tag whose purpose is to allow configs to replace/delete handlers that were added by other
24+
* configs.
25+
*/
26+
"actionId": "defaultClean",
27+
28+
/**
29+
* Glob patterns to be deleted. The paths are resolved relative to the project folder.
30+
*/
31+
"globsToDelete": ["lib", "dist-dev", "dist-prod"]
32+
}
33+
],
34+
35+
/**
36+
* The list of Heft plugins to be loaded.
37+
*/
38+
"heftPlugins": [
39+
{
40+
/**
41+
* The path to the plugin package.
42+
*/
43+
"plugin": "@rushstack/heft-webpack4-plugin"
44+
45+
/**
46+
* An optional object that provides additional settings that may be defined by the plugin.
47+
*/
48+
// "options": { }
49+
}
50+
]
51+
}
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
{
2-
"name": "hashed-folder-copy-plugin-test",
3-
"description": "Building this project exercises @rushstack/hashed-folder-copy-plugin.",
2+
"name": "hashed-folder-copy-plugin-webpack4-test",
3+
"description": "Building this project exercises @rushstack/hashed-folder-copy-plugin with Webpack 4.",
44
"version": "0.0.0",
55
"private": true,
66
"scripts": {
7-
"build": "node build.js",
8-
"serve": "node serve.js",
9-
"_phase:build": "node build.js"
7+
"build": "heft build --clean",
8+
"serve": "heft start --clean",
9+
"_phase:build": "heft build --clean"
1010
},
11-
"dependencies": {
11+
"devDependencies": {
1212
"@rushstack/hashed-folder-copy-plugin": "workspace:*",
13+
"@rushstack/heft-webpack4-plugin": "workspace:*",
14+
"@rushstack/heft": "workspace:*",
1315
"@rushstack/module-minifier-plugin": "workspace:*",
14-
"@rushstack/node-core-library": "workspace:*",
1516
"@rushstack/set-webpack-public-path-plugin": "workspace:*",
1617
"@types/webpack-env": "1.13.0",
1718
"html-webpack-plugin": "~4.5.2",
18-
"ts-loader": "6.0.0",
1919
"typescript": "~4.6.3",
20-
"webpack": "~4.44.2",
2120
"webpack-bundle-analyzer": "~4.5.0",
22-
"webpack-cli": "~3.3.2",
23-
"webpack-dev-server": "~3.11.0"
21+
"webpack": "~4.44.2"
2422
}
2523
}

0 commit comments

Comments
 (0)