Skip to content

Commit d6b1c38

Browse files
committed
default react directory structure
1 parent 341d642 commit d6b1c38

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/index.ts

+11-8
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const PLUGIN_NAME: PluginName = "react";
66

77
type PluginConfig = {
88
webpackConfig?: string; // Default is node_modules/react-scripts/config/webpack.config.js
9-
entryPoint?: string; // Default is src/index.js
10-
outputDirectory?: string; // Default is .react
11-
keepOutputDirectory?: boolean; // Default is false
9+
// entryPoint?: string; // Default is ./src/index.js
10+
// outputDirectory?: string; // Default is .react
11+
// keepOutputDirectory?: boolean; // Default is false, TODO: implement
1212
};
1313

1414
type PluginCommands = {
@@ -190,14 +190,17 @@ class ServerlessReact {
190190

191191
config.output.path = path.join(
192192
this.serverlessConfig.servicePath,
193-
this.pluginConfig.outputDirectory || `.${PLUGIN_NAME}`
193+
`.${PLUGIN_NAME}`
194194
);
195195

196196
// TODO use config.entry as a fallback
197-
config.entry = path.join(
198-
this.serverlessConfig.servicePath,
199-
this.pluginConfig.entryPoint || "src/index.js"
200-
);
197+
// config.entry = path.join(
198+
// this.serverlessConfig.servicePath,
199+
// this.pluginConfig.entryPoint || "src/index.js"
200+
// );
201+
202+
// TODO appSrc
203+
// TODO publicUrlOrPath
201204

202205
// TODO Copy public dir
203206

0 commit comments

Comments
 (0)