Skip to content

Commit df8287d

Browse files
committed
chore(scaffold): fix linting errors
1 parent b2a7470 commit df8287d

19 files changed

+44
-72
lines changed

.eslintrc.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ module.exports = {
6868
"@webpack-cli/migrate",
6969
"@webpack-cli/utils",
7070
"@webpack-cli/generate-loader",
71-
"@webpack-cli/generate-plugin"
71+
"@webpack-cli/generate-plugin",
72+
"@webpack-cli/webpack-scaffold"
7273
]
7374
}
7475
],
@@ -84,7 +85,8 @@ module.exports = {
8485
"@webpack-cli/migrate",
8586
"@webpack-cli/utils",
8687
"@webpack-cli/generate-loader",
87-
"@webpack-cli/generate-plugin"
88+
"@webpack-cli/generate-plugin",
89+
"@webpack-cli/webpack-scaffold"
8890
]
8991
}
9092
],
@@ -96,7 +98,8 @@ module.exports = {
9698
"@webpack-cli/generators",
9799
"@webpack-cli/utils",
98100
"@webpack-cli/generate-loader",
99-
"@webpack-cli/generate-plugin"
101+
"@webpack-cli/generate-plugin",
102+
"@webpack-cli/webpack-scaffold"
100103
]
101104
}
102105
],

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The `migrate` feature eases the transition from [version 1](http://webpack.githu
2929

3030
The `init` feature allows users to get started with webpack, fast. Through scaffolding, people can create their own configuration in order to faster initialize new projects for various of use cases.
3131

32-
`webpack-cli init webpack-addons-<package>`
32+
`webpack-cli init webpack-scaffold-<package>`
3333

3434
[Read more about scaffolding](SCAFFOLDING.md)
3535

SCAFFOLDING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ Before writing a `webpack-cli` scaffold, think about what you're trying to achie
88

99
`webpack-cli` offers an experience that is interactive and you can prompt users for questions (like, "What is your entry point?") to help customize the output accordingly.
1010

11-
## webpack-addons
11+
## webpack-scaffold
1212

13-
[`webpack-addons`](https://github.com/webpack-contrib/webpack-addons) is a utility suite for creating addons. It contains functions that could be of use for creating an addon yourself.
13+
`webpack-scaffold` is a utility suite for creating addons. It contains functions that could be of use for creating an addon yourself.
1414

15-
## webpack-addons-yourpackage
15+
## webpack-scaffold-yourpackage
1616

17-
In order for `webpack-cli` to compile your package, it must be available on npm or on your local filesystem. If you are curious about how you can create your very own `addon`, please read [How do I compose a
18-
webpack-addon?](https://github.com/ev1stensberg/webpack-addons-demo).
17+
In order for `webpack-cli` to compile your package, it must be available on npm or on your local filesystem. If you are curious about how you can create your very own `scaffold`, please read [How do I compose a
18+
webpack-addon?](https://github.com/ev1stensberg/webpack-scaffold-demo).
1919

20-
If the package is on npm, its name must have a prefix of `webpack-addons`.
20+
If the package is on npm, its name must have a prefix of `webpack-scaffold`.
2121

2222
If the package is on your local filesystem, it can be named whatever you want. Pass the path to the package.
2323

packages/generators/add-generator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const Generator = require("yeoman-generator");
22
const glob = require("glob-all");
33
const path = require("path");
4-
const Confirm = require("webpack-addons").Confirm;
5-
const List = require("webpack-addons").List;
6-
const Input = require("webpack-addons").Input;
4+
const Confirm = require("@webpack-cli/webpack-scaffold").Confirm;
5+
const List = require("@webpack-cli/webpack-scaffold").List;
6+
const Input = require("@webpack-cli/webpack-scaffold").Input;
77

88
const webpackSchema = require("webpack/schemas/WebpackOptions");
99
const webpackDevServerSchema = require("webpack-dev-server/lib/optionsSchema.json");

packages/generators/init-generator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const Generator = require("yeoman-generator");
44
const chalk = require("chalk");
55
const logSymbols = require("log-symbols");
66

7-
const Input = require("webpack-addons").Input;
8-
const Confirm = require("webpack-addons").Confirm;
9-
const List = require("webpack-addons").List;
7+
const Input = require("@webpack-cli/webpack-scaffold").Input;
8+
const Confirm = require("@webpack-cli/webpack-scaffold").Confirm;
9+
const List = require("@webpack-cli/webpack-scaffold").List;
1010

1111
const getPackageManager = require("@webpack-cli/utils/package-manager")
1212
.getPackageManager;

packages/generators/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"webpack-addons": "^1.1.5",
1616
"webpack-dev-server": "^3.1.4",
1717
"yeoman-generator": "^2.0.5",
18-
"@webpack-cli/utils": "0.0.1"
18+
"@webpack-cli/utils": "0.0.1",
19+
"@webpack-cli/webpack-scaffold": "0.0.1"
1920
},
2021
"peerDependencies": {
2122
"webpack": "^4.0.0"

packages/generators/utils/entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
const InputValidate = require("webpack-addons").InputValidate;
3+
const InputValidate = require("@webpack-cli/webpack-scaffold").InputValidate;
44
const validate = require("./validate");
55

66
/**

packages/serve/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const inquirer = require("inquirer");
44
const path = require("path");
55
const chalk = require("chalk");
66
const spawn = require("cross-spawn");
7-
const List = require("webpack-addons").List;
7+
const List = require("@webpack-cli/webpack-scaffold").List;
88
const processPromise = require("@webpack-cli/utils/resolve-packages")
99
.processPromise;
1010

packages/serve/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"chalk": "^2.4.1",
1111
"cross-spawn": "^6.0.5",
1212
"inquirer": "^5.2.0",
13-
"webpack-addons": "^1.1.5"
13+
"@webpack-cli/webpack-scaffold": "^0.0.1"
1414
}
1515
}

packages/utils/is-local-path.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe("is-local-path", () => {
1515
});
1616

1717
it("returns false for npm packages names", () => {
18-
expect(isLocalPath("webpack-addons-ylvis")).toBe(false);
18+
expect(isLocalPath("webpack-scaffold-ylvis")).toBe(false);
1919
});
2020

2121
it("returns false for scoped npm package names", () => {

0 commit comments

Comments
 (0)