@caweb/cli 1.6.18 → 1.6.19

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.
@@ -20,11 +20,13 @@ import {
20
20
  * @param {Object} options
21
21
  * @param {boolean} options.debug True if debug mode is enabled.
22
22
  * @param {boolean} options.audit Add CSS-Audit Page to pages served.
23
+ * @param {boolean} options.scheme Serves the project using template colorscheme.
23
24
  * @param {boolean} options.template Serves the project using templating.
24
25
  */
25
26
  export default async function webpack({
26
27
  spinner,
27
28
  debug,
29
+ scheme,
28
30
  template
29
31
  } ) {
30
32
  const webpackCommand = 'build' === process.argv[2] ? 'build' : 'serve' ;
@@ -61,9 +63,6 @@ export default async function webpack({
61
63
 
62
64
  }
63
65
 
64
- // add the template flag to the node options
65
- process.env.NODE_OPTIONS = `${process.env.NODE_OPTIONS} --template ${template}`;
66
-
67
66
  // run the webpackCommand command.
68
67
  await runCmd(
69
68
  'webpack',
package/lib/cli.js CHANGED
@@ -68,7 +68,8 @@ function addWebpackCmds(){
68
68
  'santacruz',
69
69
  'shasta',
70
70
  'sierra',
71
- 'trinity'
71
+ 'trinity',
72
+ 'false'
72
73
  ]).default('oceanside'))
73
74
  .option( '--no-audit', 'Skips WordPress CSS-Audit.', false )
74
75
  .option( '--no-a11y', 'Skips IBM Accessibility Checker.', false )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/cli",
3
- "version": "1.6.18",
3
+ "version": "1.6.19",
4
4
  "description": "CAWebPublishing Command Line Interface.",
5
5
  "exports": "./lib/env.js",
6
6
  "type": "module",
@@ -56,10 +56,10 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@caweb/webpack": "^1.2.17",
59
+ "@caweb/webpack": "^1.2.18",
60
60
  "@inquirer/prompts": "^6.0.1",
61
- "@wordpress/create-block": "^4.50.0",
62
- "@wordpress/env": "^10.7.0",
61
+ "@wordpress/create-block": "^4.51.0",
62
+ "@wordpress/env": "^10.8.0",
63
63
  "axios": "^1.7.7",
64
64
  "axios-retry": "^4.5.0",
65
65
  "chalk": "^5.3.0",