@thegetty/quire-cli 1.0.0-pre-release.9 → 1.0.0-pre-release.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/package.json +1 -1
- package/src/lib/11ty/api.js +2 -0
- package/src/lib/11ty/cli.js +7 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/lib/11ty/api.js
CHANGED
|
@@ -94,6 +94,7 @@ export default {
|
|
|
94
94
|
console.info('[CLI:11ty] running eleventy build')
|
|
95
95
|
console.info(`[CLI:11ty] projectRoot ${projectRoot}`)
|
|
96
96
|
|
|
97
|
+
process.env.ELEVENTY_ENV = 'production'
|
|
97
98
|
if (options.debug) process.env.DEBUG = 'Eleventy*'
|
|
98
99
|
|
|
99
100
|
const eleventy = await factory(options)
|
|
@@ -105,6 +106,7 @@ export default {
|
|
|
105
106
|
serve: async (options = {}) => {
|
|
106
107
|
console.info('[CLI:11ty] running development server')
|
|
107
108
|
|
|
109
|
+
process.env.ELEVENTY_ENV = 'development'
|
|
108
110
|
if (options.debug) process.env.DEBUG = 'Eleventy*'
|
|
109
111
|
|
|
110
112
|
const eleventy = await factory(options)
|
package/src/lib/11ty/cli.js
CHANGED
|
@@ -43,13 +43,15 @@ export default {
|
|
|
43
43
|
build: async (options = {}) => {
|
|
44
44
|
console.info('[CLI:11ty] running eleventy build')
|
|
45
45
|
|
|
46
|
-
const eleventyCommand = factory()
|
|
46
|
+
const eleventyCommand = factory(options)
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Set execa environment variables
|
|
50
50
|
* @see https://github.com/sindresorhus/execa#env
|
|
51
51
|
*/
|
|
52
|
-
const execaEnv = {
|
|
52
|
+
const execaEnv = {
|
|
53
|
+
ELEVENTY_ENV: 'production'
|
|
54
|
+
}
|
|
53
55
|
|
|
54
56
|
if (options.debug) execaEnv.DEBUG = 'Eleventy*'
|
|
55
57
|
|
|
@@ -74,7 +76,9 @@ export default {
|
|
|
74
76
|
* Set execa environment variables
|
|
75
77
|
* @see https://github.com/sindresorhus/execa#env
|
|
76
78
|
*/
|
|
77
|
-
const execaEnv = {
|
|
79
|
+
const execaEnv = {
|
|
80
|
+
ELEVENTY_ENV: 'development'
|
|
81
|
+
}
|
|
78
82
|
|
|
79
83
|
if (options.debug) execaEnv.DEBUG = 'Eleventy*'
|
|
80
84
|
|