Skip to content

Commit

Permalink
[feat] copy .etmp/xarc-options.json to dist for build
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Oct 29, 2020
1 parent c95277e commit 4ddc1a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/xarc-app-dev/src/lib/dev-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,8 @@ export function loadXarcDevTasks(xrun, xarcOptions: XarcOptions = {}) {
".production-env",
".set.css-module.env",
".clean.build",
".mk-dist-dir",
".copy-xarc-options-to-dist",
"build-dist-dll",
"build-dist-min",
"build-dist:flatten-l10n",
Expand All @@ -493,6 +495,8 @@ export function loadXarcDevTasks(xrun, xarcOptions: XarcOptions = {}) {
"build-dist:clean-tmp"
],

".copy-xarc-options-to-dist": () => shell.cp(Path.join(eTmpDir, "xarc-options.json"), "dist"),

"mv-to-dist": ["mv-to-dist:clean", "mv-to-dist:mv-dirs", "mv-to-dist:keep-targets"],
"build-dist-dev-static": {
desc: false,
Expand Down Expand Up @@ -810,7 +814,7 @@ You only need to run this if you are doing something not through the xarc tasks.
dev: {
desc: `Start your app with watch in development mode with dev-admin.
options: node.js --inspect can be used to debug the dev-admin`,
dep: [".remove-log-files", ".development-env", ".mk-dist-dir", ".build.babelrc"],
dep: [".remove-log-files", ".development-env", ".build.babelrc"],
task() {
return [
".set.css-module.env",
Expand Down Expand Up @@ -1012,7 +1016,7 @@ You only need to run this if you are doing something not through the xarc tasks.
if (Fs.existsSync(Path.resolve(AppMode.src.client, "dll.config.js"))) {
Object.assign(tasks, {
"build-dist-dll": {
dep: [".mk-dll-dir", ".mk-dist-dir", ".production-env"],
dep: [".mk-dll-dir", ".production-env"],
task: () => {
setWebpackProfile("dll");
return exec(
Expand Down

0 comments on commit 4ddc1a5

Please sign in to comment.