- var yeoman = require("yeoman-environment");
-var LoaderGenerator = require("../generators/loader-generator").LoaderGenerator;
+ const yeoman = require("yeoman-environment");
+const { LoaderGenerator } = require("../generators/loader-generator");
/**
* Runs a yeoman generator to create a new webpack loader project
* @returns {void}
*/
function loaderCreator() {
- var env = yeoman.createEnv();
- var generatorName = "webpack-loader-generator";
+ const env = yeoman.createEnv();
+ const generatorName = "webpack-loader-generator";
env.registerStub(LoaderGenerator, generatorName);
@@ -53,13 +53,13 @@ Source: generate-loader/index.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/generate-plugin_index.js.html b/docs/generate-plugin_index.js.html
index f44c28d1034..f0931498929 100644
--- a/docs/generate-plugin_index.js.html
+++ b/docs/generate-plugin_index.js.html
@@ -26,16 +26,16 @@ Source: generate-plugin/index.js
- var yeoman = require("yeoman-environment");
-var PluginGenerator = require("../generators/plugin-generator").PluginGenerator;
+ const yeoman = require("yeoman-environment");
+const PluginGenerator = require("../generators/plugin-generator").PluginGenerator;
/**
* Runs a yeoman generator to create a new webpack plugin project
* @returns {void}
*/
function pluginCreator() {
- var env = yeoman.createEnv();
- var generatorName = "webpack-plugin-generator";
+ const env = yeoman.createEnv();
+ const generatorName = "webpack-plugin-generator";
env.registerStub(PluginGenerator, generatorName);
@@ -53,13 +53,13 @@ Source: generate-plugin/index.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/generators_add-generator.js.html b/docs/generators_add-generator.js.html
index 3c3a631ddce..8dff982bd73 100644
--- a/docs/generators_add-generator.js.html
+++ b/docs/generators_add-generator.js.html
@@ -26,7 +26,7 @@ Source: generators/add-generator.js
- const Generator = require("webpack-fork-yeoman-generator");
+ const Generator = require("yeoman-generator");
const glob = require("glob-all");
const path = require("path");
const Confirm = require("webpack-addons").Confirm;
@@ -152,7 +152,7 @@ Source: generators/add-generator.js
: webpackSchema.properties[action].anyOf
? webpackSchema.properties[action].anyOf.filter(
p => p.properties || p.enum
- )
+ ) // eslint-disable-line
: null;
if (Array.isArray(defOrPropDescription)) {
// Todo: Generalize these to go through the array, then merge enum with props if needed
@@ -433,7 +433,7 @@ Source: generators/add-generator.js
let othersDeepPropKey = deepPropAns.deepProp
? `what do you want the value of ${
deepPropAns.deepProp
- } to be?`
+ } to be?` // eslint-disable-line
: `what do you want to be the value of ${action} to be?`;
// Push the answer to the array we have created, so we can use it later
isDeepProp.push(deepPropAns.deepProp);
@@ -486,13 +486,13 @@ Source: generators/add-generator.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/generators_init-generator.js.html b/docs/generators_init-generator.js.html
index d64d53ea408..e8130fae45c 100644
--- a/docs/generators_init-generator.js.html
+++ b/docs/generators_init-generator.js.html
@@ -28,7 +28,7 @@ Source: generators/init-generator.js
"use strict";
-const Generator = require("webpack-fork-yeoman-generator");
+const Generator = require("yeoman-generator");
const chalk = require("chalk");
const logSymbols = require("log-symbols");
@@ -368,7 +368,8 @@ Source: generators/init-generator.js
if (regExpForStyles) {
if (this.isProd) {
this.configuration.config.topScope.push(tooltip.cssPlugin());
- this.dependencies.push("extract-text-webpack-plugin");
+ // TODO: Replace with regular version once v.4 is out
+ this.dependencies.push("extract-text-webpack-plugin@next");
if (cssBundleName.length !== 0) {
this.configuration.config.webpackOptions.plugins.push(
@@ -438,6 +439,9 @@ Source: generators/init-generator.js
});
});
}
+ writing() {
+ this.config.set("configuration", this.configuration);
+ }
};
@@ -449,13 +453,13 @@ Source: generators/init-generator.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/generators_loader-generator.js.html b/docs/generators_loader-generator.js.html
index 4e03d51b74b..099e5edc2a0 100644
--- a/docs/generators_loader-generator.js.html
+++ b/docs/generators_loader-generator.js.html
@@ -26,9 +26,9 @@ Source: generators/loader-generator.js
- var path = require("path");
-var _ = require("lodash");
-var webpackGenerator = require("./webpack-generator");
+ const path = require("path");
+const _ = require("lodash");
+const webpackGenerator = require("./webpack-generator");
/**
* Formats a string into webpack loader format
@@ -53,7 +53,7 @@ Source: generators/loader-generator.js
* @class LoaderGenerator
* @extends {Generator}
*/
-var LoaderGenerator = webpackGenerator(
+const LoaderGenerator = webpackGenerator(
[
{
type: "input",
@@ -94,13 +94,13 @@ Source: generators/loader-generator.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/generators_plugin-generator.js.html b/docs/generators_plugin-generator.js.html
index a65841732da..bd1a1850e55 100644
--- a/docs/generators_plugin-generator.js.html
+++ b/docs/generators_plugin-generator.js.html
@@ -26,9 +26,9 @@ Source: generators/plugin-generator.js
- var path = require("path");
-var _ = require("lodash");
-var webpackGenerator = require("./webpack-generator");
+ const path = require("path");
+const _ = require("lodash");
+const webpackGenerator = require("./webpack-generator");
/**
* A yeoman generator class for creating a webpack
@@ -38,7 +38,7 @@ Source: generators/plugin-generator.js
* @class PluginGenerator
* @extends {Generator}
*/
-var PluginGenerator = webpackGenerator(
+const PluginGenerator = webpackGenerator(
[
{
type: "input",
@@ -75,13 +75,13 @@ Source: generators/plugin-generator.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/generators_utils_entry.js.html b/docs/generators_utils_entry.js.html
index db6c7680cde..458948ba468 100644
--- a/docs/generators_utils_entry.js.html
+++ b/docs/generators_utils_entry.js.html
@@ -126,13 +126,13 @@ Source: generators/utils/entry.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/generators_utils_module.js.html b/docs/generators_utils_module.js.html
index 26858d897af..54989ff74ae 100644
--- a/docs/generators_utils_module.js.html
+++ b/docs/generators_utils_module.js.html
@@ -55,13 +55,13 @@ Source: generators/utils/module.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/generators_utils_plugins.js.html b/docs/generators_utils_plugins.js.html
index 9e063a006c8..efb1a20f5e0 100644
--- a/docs/generators_utils_plugins.js.html
+++ b/docs/generators_utils_plugins.js.html
@@ -50,13 +50,13 @@ Source: generators/utils/plugins.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/generators_utils_tooltip.js.html b/docs/generators_utils_tooltip.js.html
index a4f9b0ea5bb..a4266c0a751 100644
--- a/docs/generators_utils_tooltip.js.html
+++ b/docs/generators_utils_tooltip.js.html
@@ -92,13 +92,13 @@ Source: generators/utils/tooltip.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/generators_utils_validate.js.html b/docs/generators_utils_validate.js.html
index 9b3923b9bcc..8efa14b8e10 100644
--- a/docs/generators_utils_validate.js.html
+++ b/docs/generators_utils_validate.js.html
@@ -53,13 +53,13 @@ Source: generators/utils/validate.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/generators_webpack-generator.js.html b/docs/generators_webpack-generator.js.html
index 9e0e08d663b..ce675c64161 100644
--- a/docs/generators_webpack-generator.js.html
+++ b/docs/generators_webpack-generator.js.html
@@ -26,10 +26,10 @@ Source: generators/webpack-generator.js
- var path = require("path");
-var mkdirp = require("mkdirp");
-var Generator = require("webpack-fork-yeoman-generator");
-var copyUtils = require("../utils/copy-utils");
+ const path = require("path");
+const mkdirp = require("mkdirp");
+const Generator = require("yeoman-generator");
+const copyUtils = require("../utils/copy-utils");
/**
* Creates a Yeoman Generator that generates a project conforming
@@ -68,14 +68,14 @@ Source: generators/webpack-generator.js
}
default() {
- var currentDirName = path.basename(this.destinationPath());
+ const currentDirName = path.basename(this.destinationPath());
if (currentDirName !== this.props.name) {
this.log(`
Your project must be inside a folder named ${this.props.name}
I will create this folder for you.
`);
mkdirp(this.props.name);
- var pathToProjectDir = this.destinationPath(this.props.name);
+ const pathToProjectDir = this.destinationPath(this.props.name);
this.destinationRoot(pathToProjectDir);
}
}
@@ -113,13 +113,13 @@ Source: generators/webpack-generator.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/global.html b/docs/global.html
index f7a7e8a3d8c..3ad1f702791 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -94,72 +94,6 @@
- Members
-
-
-
-
-
-
-
-
-
- Runs the transformations from an object we get from yeoman
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Methods
@@ -2180,165 +2114,6 @@ Returns:
- creator(options) → {function}
-
-
-
-
-
-
-
- Runs yeoman and runs the transformations based on the object
-built up from an author/user
-
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- options
-
-
-
-
-
-String
-
-
-
-
-
-
-
-
-
- An path to the given generator
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Returns:
-
-
-
- runTransform - Run transformations based on the finished
-yeoman instance
-
-
-
-
-
-
- Type
-
-
-
-function
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
defineTest(dirName, transformName, testFilePrefixopt , transformObject, action) → {Void}
@@ -3424,7 +3199,7 @@ Returns:
- variable name - ex. 'var s = require(s) gives "s"`
+ variable name - ex. 'const s = require(s) gives "s"`
@@ -3893,7 +3668,7 @@ getP
Source:
@@ -3949,6 +3724,116 @@ Returns:
+ getPathToGlobalPackages() → {String}
+
+
+
+
+
+
+
+ Returns the path to globally installed
+npm packages, depending on the available
+package manager determined by `getPackageManager`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ path - Path to global node_modules folder
+
+
+
+
+
+
+ Type
+
+
+
+String
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
getRequire(j, constName, packagePath) → {Node}
@@ -5206,6 +5091,187 @@ Returns:
+
+
+
+
+
+
+
+
+ Maps back transforms that needs to be run using the configuration
+provided.
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ transformObject
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+ An Object with all transformations
+
+
+
+
+
+
+ config
+
+
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+ Configuration to transform
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Returns:
+
+
+
+ - An Object with the transformations to be run
+
+
+
+
+
+
+ Type
+
+
+
+Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
pluginCreator() → {void}
@@ -5411,7 +5477,7 @@ Parameters:
Source:
@@ -6224,7 +6290,7 @@ Parameters:
Source:
@@ -8260,13 +8326,13 @@ Returns:
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/index.html b/docs/index.html
index 64d5e2b5a26..d75ab160b3d 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -50,13 +50,13 @@
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/index.js.html b/docs/index.js.html
index a0556dbf5c5..9cf7405a255 100644
--- a/docs/index.js.html
+++ b/docs/index.js.html
@@ -96,13 +96,13 @@ Source: index.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_index.js.html b/docs/init_index.js.html
index 90111bf8301..2243108555a 100644
--- a/docs/init_index.js.html
+++ b/docs/init_index.js.html
@@ -28,68 +28,176 @@ Source: init/index.js
"use strict";
-const yeoman = require("yeoman-environment");
-const Generator = require("webpack-fork-yeoman-generator");
const path = require("path");
-const defaultGenerator = require("../generators/init-generator");
-const runTransform = require("./transformations/index");
+const j = require("jscodeshift");
+const chalk = require("chalk");
+const pEachSeries = require("p-each-series");
+
+const runPrettier = require("../utils/run-prettier");
+
+const entryTransform = require("./transformations/entry/entry");
+const outputTransform = require("./transformations/output/output");
+const contextTransform = require("./transformations/context/context");
+const resolveTransform = require("./transformations/resolve/resolve");
+const devtoolTransform = require("./transformations/devtool/devtool");
+const targetTransform = require("./transformations/target/target");
+const watchTransform = require("./transformations/watch/watch");
+const watchOptionsTransform = require("./transformations/watch/watchOptions");
+const externalsTransform = require("./transformations/externals/externals");
+const nodeTransform = require("./transformations/node/node");
+const performanceTransform = require("./transformations/performance/performance");
+const statsTransform = require("./transformations/stats/stats");
+const amdTransform = require("./transformations/other/amd");
+const bailTransform = require("./transformations/other/bail");
+const cacheTransform = require("./transformations/other/cache");
+const profileTransform = require("./transformations/other/profile");
+const mergeTransform = require("./transformations/other/merge");
+const parallelismTransform = require("./transformations/other/parallelism");
+const recordsInputPathTransform = require("./transformations/other/recordsInputPath");
+const recordsOutputPathTransform = require("./transformations/other/recordsOutputPath");
+const recordsPathTransform = require("./transformations/other/recordsPath");
+const moduleTransform = require("./transformations/module/module");
+const pluginsTransform = require("./transformations/plugins/plugins");
+const topScopeTransform = require("./transformations/top-scope/top-scope");
+const devServerTransform = require("./transformations/devServer/devServer");
+const modeTransform = require("./transformations/mode/mode");
+const resolveLoaderTransform = require("./transformations/resolveLoader/resolveLoader");
+
+const transformsObject = {
+ entryTransform,
+ outputTransform,
+ contextTransform,
+ resolveTransform,
+ devtoolTransform,
+ targetTransform,
+ watchTransform,
+ watchOptionsTransform,
+ externalsTransform,
+ nodeTransform,
+ performanceTransform,
+ statsTransform,
+ amdTransform,
+ bailTransform,
+ cacheTransform,
+ profileTransform,
+ moduleTransform,
+ pluginsTransform,
+ topScopeTransform,
+ mergeTransform,
+ devServerTransform,
+ modeTransform,
+ parallelismTransform,
+ recordsInputPathTransform,
+ recordsOutputPathTransform,
+ recordsPathTransform,
+ resolveLoaderTransform
+};
/**
*
- * Runs yeoman and runs the transformations based on the object
- * built up from an author/user
+ * Maps back transforms that needs to be run using the configuration
+ * provided.
*
- * @param {String} options - An path to the given generator
- * @returns {Function} runTransform - Run transformations based on the finished
- * yeoman instance
+ * @param {Object} transformObject - An Object with all transformations
+ * @param {Object} config - Configuration to transform
+ * @returns {Object} - An Object with the transformations to be run
*/
-function creator(options) {
- let env = yeoman.createEnv("webpack", null);
- const generatorName = options
- ? replaceGeneratorName(path.basename(options[0]))
- : "webpack-default-generator";
- if (options) {
- const WebpackGenerator = class extends Generator {
- initializing() {
- options.forEach(path => {
- return this.composeWith(require.resolve(path));
- });
+function mapOptionsToTransform(transformObject, config) {
+ return Object.keys(transformObject)
+ .map(transformKey => {
+ const stringVal = transformKey.substr(
+ 0,
+ transformKey.indexOf("Transform")
+ );
+ if (Object.keys(config.webpackOptions).length) {
+ if (config.webpackOptions[stringVal]) {
+ return [
+ transformObject[transformKey],
+ config.webpackOptions[stringVal]
+ ];
+ } else {
+ return [transformObject[transformKey], config[stringVal]];
+ }
+ } else {
+ return [transformObject[transformKey]];
}
- };
- env.registerStub(WebpackGenerator, generatorName);
- } else {
- env.registerStub(defaultGenerator, "webpack-default-generator");
- }
-
- env.run(generatorName).on("end", _ => {
- if (generatorName !== "webpack-default-generator") {
- //HACK / FIXME
- env = env.options.env;
- return runTransform(env.configuration);
- } else {
- return runTransform(env.getArgument("configuration"));
- }
- });
+ })
+ .filter(e => e[1]);
}
-/*
-* @function replaceGeneratorName
-*
-* Replaces the webpack-addons pattern with the end of the addons name merged
-* with 'generator'
-*
-* @param { String } name - name of the generator
-* @returns { String } name - replaced pattern of the name
-*/
-
-function replaceGeneratorName(name) {
- return name.replace(/(webpack-addons)?([^:]+)(:.*)?/g, "generator$2");
-}
+/**
+ *
+ * Runs the transformations from an object we get from yeoman
+ *
+ * @param {Object} webpackProperties - Configuration to transform
+ * @param {String} action - Action to be done on the given ast
+ * @returns {Promise} - A promise that writes each transform, runs prettier
+ * and writes the file
+ */
-module.exports = {
- creator,
- replaceGeneratorName
+module.exports = function runTransform(webpackProperties, action) {
+ // webpackOptions.name sent to nameTransform if match
+ const webpackConfig = Object.keys(webpackProperties).filter(p => {
+ return p !== "configFile" && p !== "configPath";
+ });
+ const initActionNotDefined = action && action !== "init" ? true : false;
+
+ webpackConfig.forEach(scaffoldPiece => {
+ const config = webpackProperties[scaffoldPiece];
+ const transformations = mapOptionsToTransform(transformsObject, config);
+ const ast = j(
+ initActionNotDefined
+ ? webpackProperties.configFile
+ : "module.exports = {}"
+ );
+ const transformAction = action || null;
+
+ return pEachSeries(transformations, f => {
+ if (!f[1]) {
+ return f[0](j, ast, transformAction);
+ } else {
+ return f[0](j, ast, f[1], transformAction);
+ }
+ })
+ .then(_ => {
+ let configurationName;
+ if (!config.configName) {
+ configurationName = "webpack.config.js";
+ } else {
+ configurationName = "webpack." + config.configName + ".js";
+ }
+
+ const outputPath = initActionNotDefined
+ ? webpackProperties.configPath
+ : path.join(process.cwd(), configurationName);
+ const source = ast.toSource({
+ quote: "single"
+ });
+
+ runPrettier(outputPath, source);
+ })
+ .catch(err => {
+ console.error(err.message ? err.message : err);
+ });
+ });
+ if (initActionNotDefined && webpackProperties.config.item) {
+ process.stdout.write(
+ "\n" +
+ chalk.green(
+ `Congratulations! ${
+ webpackProperties.config.item
+ } has been ${action}ed!\n`
+ )
+ );
+ } else {
+ process.stdout.write(
+ "\n" +
+ chalk.green(
+ "Congratulations! Your new webpack configuration file has been created!\n"
+ )
+ );
+ }
};
@@ -101,13 +209,13 @@ Source: init/index.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_context_context.js.html b/docs/init_transformations_context_context.js.html
index 9bd76af1df0..99ad4711a39 100644
--- a/docs/init_transformations_context_context.js.html
+++ b/docs/init_transformations_context_context.js.html
@@ -91,13 +91,13 @@ Source: init/transformations/context/context.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_devServer_devServer.js.html b/docs/init_transformations_devServer_devServer.js.html
index 5db1f9cf070..b1cc40cd6c2 100644
--- a/docs/init_transformations_devServer_devServer.js.html
+++ b/docs/init_transformations_devServer_devServer.js.html
@@ -125,13 +125,13 @@ Source: init/transformations/devServer/devServer.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_devtool_devtool.js.html b/docs/init_transformations_devtool_devtool.js.html
index 3383ac76faa..96d5066bad2 100644
--- a/docs/init_transformations_devtool_devtool.js.html
+++ b/docs/init_transformations_devtool_devtool.js.html
@@ -90,13 +90,13 @@ Source: init/transformations/devtool/devtool.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:40 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_entry_entry.js.html b/docs/init_transformations_entry_entry.js.html
index 4065fcde5f6..0bd9df9631e 100644
--- a/docs/init_transformations_entry_entry.js.html
+++ b/docs/init_transformations_entry_entry.js.html
@@ -121,13 +121,13 @@ Source: init/transformations/entry/entry.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_externals_externals.js.html b/docs/init_transformations_externals_externals.js.html
index 528e2d63e2c..b2354ff9f9b 100644
--- a/docs/init_transformations_externals_externals.js.html
+++ b/docs/init_transformations_externals_externals.js.html
@@ -145,13 +145,13 @@ Source: init/transformations/externals/externals.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_mode_mode.js.html b/docs/init_transformations_mode_mode.js.html
index f76f27d16a1..bd479212bb3 100644
--- a/docs/init_transformations_mode_mode.js.html
+++ b/docs/init_transformations_mode_mode.js.html
@@ -91,13 +91,13 @@ Source: init/transformations/mode/mode.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_module_module.js.html b/docs/init_transformations_module_module.js.html
index 9a21d984caa..ae68114b3df 100644
--- a/docs/init_transformations_module_module.js.html
+++ b/docs/init_transformations_module_module.js.html
@@ -109,13 +109,13 @@ Source: init/transformations/module/module.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_node_node.js.html b/docs/init_transformations_node_node.js.html
index 038ae0734f9..99d0f0f745c 100644
--- a/docs/init_transformations_node_node.js.html
+++ b/docs/init_transformations_node_node.js.html
@@ -80,13 +80,13 @@ Source: init/transformations/node/node.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_other_amd.js.html b/docs/init_transformations_other_amd.js.html
index b3fe4e1b507..ad838fde118 100644
--- a/docs/init_transformations_other_amd.js.html
+++ b/docs/init_transformations_other_amd.js.html
@@ -120,13 +120,13 @@ Source: init/transformations/other/amd.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_other_bail.js.html b/docs/init_transformations_other_bail.js.html
index 42d174dd28b..afc4a95078b 100644
--- a/docs/init_transformations_other_bail.js.html
+++ b/docs/init_transformations_other_bail.js.html
@@ -91,13 +91,13 @@ Source: init/transformations/other/bail.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_other_cache.js.html b/docs/init_transformations_other_cache.js.html
index 2b04bf8605c..15a782aa572 100644
--- a/docs/init_transformations_other_cache.js.html
+++ b/docs/init_transformations_other_cache.js.html
@@ -124,13 +124,13 @@ Source: init/transformations/other/cache.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_other_merge.js.html b/docs/init_transformations_other_merge.js.html
index ef44f415e3e..d5a2409c3b4 100644
--- a/docs/init_transformations_other_merge.js.html
+++ b/docs/init_transformations_other_merge.js.html
@@ -83,13 +83,13 @@ Source: init/transformations/other/merge.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_other_parallelism.js.html b/docs/init_transformations_other_parallelism.js.html
index f2539d5885b..c9d53448c26 100644
--- a/docs/init_transformations_other_parallelism.js.html
+++ b/docs/init_transformations_other_parallelism.js.html
@@ -96,13 +96,13 @@ Source: init/transformations/other/parallelism.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_other_profile.js.html b/docs/init_transformations_other_profile.js.html
index 291e9db503e..b1fb30fdb65 100644
--- a/docs/init_transformations_other_profile.js.html
+++ b/docs/init_transformations_other_profile.js.html
@@ -124,13 +124,13 @@ Source: init/transformations/other/profile.js
- Classes Global
+ Classes Global
- Documentation generated by JSDoc 3.5.5 on Sun Feb 25 2018 15:08:39 GMT+0100 (CET)
+ Documentation generated by JSDoc 3.5.5 on Sat Mar 10 2018 01:28:11 GMT+0100 (CET)
diff --git a/docs/init_transformations_other_recordsInputPath.js.html b/docs/init_transformations_other_recordsInputPath.js.html
index ba40d06a684..d11fada1125 100644
--- a/docs/init_transformations_other_recordsInputPath.js.html
+++ b/docs/init_transformations_other_recordsInputPath.js.html
@@ -136,13 +136,13 @@