Move app scaffolding to src/app
This commit executes a micro-refactor to move all top-level app setup code out of src/plugins/artifact/editor and into src/app. The observed behavior from `yarn start`, which is to show the artifact editor, is unchanged.
This commit is contained in:
parent
c2fb88b11a
commit
63351e6149
|
@ -41,9 +41,9 @@ function getServedPath(appPackageJson) {
|
||||||
module.exports = {
|
module.exports = {
|
||||||
dotenv: resolveApp(".env"),
|
dotenv: resolveApp(".env"),
|
||||||
appBuild: resolveApp("build"),
|
appBuild: resolveApp("build"),
|
||||||
appPublic: resolveApp("src/plugins/artifact/editor/public"),
|
appPublic: resolveApp("src/app/public"),
|
||||||
appHtml: resolveApp("src/plugins/artifact/editor/public/index.html"),
|
appHtml: resolveApp("src/app/public/index.html"),
|
||||||
appIndexJs: resolveApp("src/plugins/artifact/editor/index.js"),
|
appIndexJs: resolveApp("src/app/index.js"),
|
||||||
appPackageJson: resolveApp("package.json"),
|
appPackageJson: resolveApp("package.json"),
|
||||||
appSrc: resolveApp("src"),
|
appSrc: resolveApp("src"),
|
||||||
yarnLockFile: resolveApp("yarn.lock"),
|
yarnLockFile: resolveApp("yarn.lock"),
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import ReactDOM from "react-dom";
|
import ReactDOM from "react-dom";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import App from "./App";
|
import App from "../plugins/artifact/editor/App";
|
||||||
import registerServiceWorker from "./registerServiceWorker";
|
import registerServiceWorker from "./registerServiceWorker";
|
||||||
|
|
||||||
const root = document.getElementById("root");
|
const root = document.getElementById("root");
|
Loading…
Reference in New Issue