@caweb/cli 1.4.2 → 1.4.4

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.
Files changed (76) hide show
  1. package/README.md +2 -180
  2. package/bin/css-audit/.editorconfig +12 -0
  3. package/bin/css-audit/.github/workflows/build-report.yml +46 -0
  4. package/bin/css-audit/.github/workflows/merge-trunk-to-report.yml +17 -0
  5. package/bin/css-audit/.github/workflows/node.yaml +32 -0
  6. package/bin/css-audit/.nvmrc +1 -0
  7. package/bin/css-audit/README.md +131 -0
  8. package/bin/css-audit/css-audit.config.js +13 -0
  9. package/bin/css-audit/index.js +38 -0
  10. package/bin/css-audit/package-lock.json +6689 -0
  11. package/bin/css-audit/package.json +56 -0
  12. package/bin/css-audit/public/.gitkeep +1 -0
  13. package/bin/css-audit/src/__tests__/alphas.js +128 -0
  14. package/bin/css-audit/src/__tests__/colors.js +115 -0
  15. package/bin/css-audit/src/__tests__/display-none.js +52 -0
  16. package/bin/css-audit/src/__tests__/important.js +88 -0
  17. package/bin/css-audit/src/__tests__/media-queries.js +84 -0
  18. package/bin/css-audit/src/__tests__/property-values.js +55 -0
  19. package/bin/css-audit/src/__tests__/run.js +25 -0
  20. package/bin/css-audit/src/__tests__/selectors.js +66 -0
  21. package/bin/css-audit/src/audits/alphas.js +70 -0
  22. package/bin/css-audit/src/audits/colors.js +83 -0
  23. package/bin/css-audit/src/audits/display-none.js +39 -0
  24. package/bin/css-audit/src/audits/important.js +60 -0
  25. package/bin/css-audit/src/audits/media-queries.js +96 -0
  26. package/bin/css-audit/src/audits/property-values.js +65 -0
  27. package/bin/css-audit/src/audits/selectors.js +67 -0
  28. package/bin/css-audit/src/audits/typography.js +41 -0
  29. package/bin/css-audit/src/formats/cli-table.js +81 -0
  30. package/bin/css-audit/src/formats/html/_audit-alpha.twig +23 -0
  31. package/bin/css-audit/src/formats/html/_audit-colors.twig +23 -0
  32. package/bin/css-audit/src/formats/html/_audit-default.twig +24 -0
  33. package/bin/css-audit/src/formats/html/index.twig +88 -0
  34. package/bin/css-audit/src/formats/html/style.css +341 -0
  35. package/bin/css-audit/src/formats/html.js +52 -0
  36. package/bin/css-audit/src/formats/json.js +9 -0
  37. package/bin/css-audit/src/run.js +76 -0
  38. package/bin/css-audit/src/utils/__tests__/cli.js +70 -0
  39. package/bin/css-audit/src/utils/__tests__/example-config.config.js +12 -0
  40. package/bin/css-audit/src/utils/__tests__/get-specificity.js +39 -0
  41. package/bin/css-audit/src/utils/cli.js +133 -0
  42. package/bin/css-audit/src/utils/format-report.js +37 -0
  43. package/bin/css-audit/src/utils/get-specificity.js +97 -0
  44. package/bin/css-audit/src/utils/get-values-count.js +17 -0
  45. package/commands/index.js +15 -5
  46. package/commands/test.js +0 -3
  47. package/commands/webpack/webpack.js +166 -0
  48. package/configs/webpack.config.js +151 -81
  49. package/lib/cli.js +71 -35
  50. package/lib/helpers.js +3 -1
  51. package/lib/webpack/plugins/a11y/aceconfig.js +44 -0
  52. package/lib/webpack/plugins/a11y/index.js +272 -0
  53. package/lib/webpack/plugins/a11y/package.json +12 -0
  54. package/lib/webpack/plugins/css-audit/css-audit.config.cjs +5 -0
  55. package/lib/webpack/plugins/css-audit/default.config.js +19 -0
  56. package/lib/webpack/plugins/css-audit/index.js +297 -0
  57. package/lib/webpack/plugins/css-audit/package.json +12 -0
  58. package/lib/webpack/plugins/jshint/.jshintrc +31 -0
  59. package/lib/webpack/plugins/jshint/index.js +286 -0
  60. package/lib/webpack/plugins/jshint/package-lock.json +22 -0
  61. package/lib/webpack/plugins/jshint/package.json +15 -0
  62. package/lib/webpack/plugins/jshint/reporter.cjs +663 -0
  63. package/package.json +18 -12
  64. package/assets/logo.ico +0 -0
  65. package/commands/a11y.js +0 -95
  66. package/commands/build.js +0 -80
  67. package/commands/serve.js +0 -95
  68. package/configs/aceconfig.js +0 -28
  69. package/docs/CREDITS.MD +0 -27
  70. package/docs/ISSUES.MD +0 -7
  71. package/docs/OVERRIDES.md +0 -53
  72. package/docs/ROADMAP.MD +0 -19
  73. package/docs/SYNC.MD +0 -29
  74. package/docs/tool/index.js +0 -45
  75. package/gen/parser.js +0 -166
  76. package/gen/site-generator.js +0 -144
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/cli",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "CAWebPublishing Command Line Interface.",
5
5
  "exports": "./lib/env.js",
6
6
  "type": "module",
@@ -9,21 +9,20 @@
9
9
  "author": "CAWebPublishing",
10
10
  "license": "ISC",
11
11
  "bin": {
12
- "caweb": "bin/caweb.js"
12
+ "caweb": "bin/caweb.js",
13
+ "auditor": "bin/css-audit/index.js"
13
14
  },
14
15
  "files": [
15
- "assets",
16
16
  "bin",
17
17
  "commands",
18
18
  "configs",
19
- "docs",
20
- "gen",
21
19
  "lib",
22
20
  "template"
23
21
  ],
24
22
  "scripts": {
25
23
  "doc": "node ./docs/tool/index.js",
26
- "test": "echo \"Error: run tests from root\" && exit 0"
24
+ "test": "echo \"Error: run tests from root\" && exit 0",
25
+ "postinstall": "cd bin/css-audit && npm ci"
27
26
  },
28
27
  "homepage": "https://github.com/CAWebPublishing/cli#readme",
29
28
  "repository": {
@@ -41,7 +40,7 @@
41
40
  "access": "public"
42
41
  },
43
42
  "config": {
44
- "WP_VER": "6.5.4",
43
+ "WP_VER": "6.5.5",
45
44
  "PHP_VER": "8.1",
46
45
  "DEFAULTS": {
47
46
  "FS_METHOD": "direct",
@@ -59,31 +58,38 @@
59
58
  }
60
59
  },
61
60
  "dependencies": {
62
- "@wordpress/create-block": "^4.44.0",
63
- "@wordpress/env": "^10.1.0",
64
- "@wordpress/scripts": "^28.1.0",
61
+ "@wordpress/create-block": "^4.45.0",
62
+ "@wordpress/env": "^10.2.0",
63
+ "@wordpress/scripts": "^28.2.0",
65
64
  "accessibility-checker": "^3.1.73",
66
65
  "autoprefixer": "^10.4.19",
67
66
  "axios": "^1.7.2",
68
- "axios-retry": "^4.4.0",
67
+ "axios-retry": "^4.4.1",
69
68
  "chalk": "^5.3.0",
70
69
  "check-valid-url": "^0.1.0",
71
70
  "commander": "^12.1.0",
72
71
  "cross-spawn": "^7.0.3",
72
+ "css-audit": "file:css-audit",
73
73
  "css-loader": "^7.1.2",
74
+ "deepmerge": "^4.3.1",
74
75
  "docker-compose": "^0.24.8",
75
76
  "fs-extra": "^11.2.0",
77
+ "get-all-files": "^5.0.0",
76
78
  "got": "^14.4.1",
77
79
  "handlebars-loader": "^1.7.3",
78
80
  "html-to-json-parser": "^2.0.1",
79
81
  "html-webpack-plugin": "^5.6.0",
82
+ "html-webpack-skip-assets-plugin": "^1.0.4",
83
+ "jshint": "^2.13.6",
80
84
  "mini-css-extract-plugin": "^2.9.0",
81
85
  "ora": "^8.0.1",
82
86
  "postcss-loader": "^8.1.1",
83
87
  "resolve-bin": "^1.0.1",
84
88
  "sass-loader": "^14.2.1",
89
+ "snyk": "^1.1292.1",
85
90
  "terminal-link": "^3.0.0",
86
91
  "url": "^0.11.3",
87
- "webpack": "^5.92.1"
92
+ "webpack": "^5.92.1",
93
+ "webpack-dev-server": "^5.0.4"
88
94
  }
89
95
  }
package/assets/logo.ico DELETED
Binary file
package/commands/a11y.js DELETED
@@ -1,95 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * External dependencies
5
- */
6
- import achecker from 'accessibility-checker';
7
- import path from 'path';
8
- import { isUrl } from 'check-valid-url';
9
- import fs from 'fs';
10
-
11
- /**
12
- * Internal dependencies
13
- */
14
- // Our default A11y Checker Configuration
15
- import defaultConfig from '../configs/aceconfig.js';
16
-
17
- import {
18
- runCmd,
19
- } from '../lib/index.js';
20
- import { stderr, stdout } from 'process';
21
-
22
-
23
- /**
24
- * Run accessibility checks
25
- *
26
- * @param {Object} options
27
- * @param {Object} options.spinner A CLI spinner which indicates progress.
28
- * @param {boolean} options.debug True if debug mode is enabled.
29
- * @param {boolean} options.url True if debug mode is enabled.
30
- */
31
- export default async function a11y({
32
- spinner,
33
- debug,
34
- url
35
- } ) {
36
-
37
- // Spinner not needed at the moment
38
- spinner.stop();
39
-
40
- const {
41
- ruleArchive,
42
- policies,
43
- failLevels,
44
- reportLevels,
45
- outputFolder,
46
- outputFormat,
47
- outputFilenameTimestamp
48
- } = defaultConfig;
49
-
50
-
51
- // pass any arguments from the cli
52
- // overwriting our default config flags.
53
- // users can overwrite any values by creating a .achecker.yml or aceconfig.js.
54
- let acheckerArgs = [
55
- '--ruleArchive',
56
- ruleArchive,
57
- '--policies',
58
- Array.isArray(policies) ? policies.join(',') : policies,
59
- '--failLevels',
60
- Array.isArray(failLevels) ? failLevels.join(',') : failLevels,
61
- '--reportLevels',
62
- Array.isArray(reportLevels) ? reportLevels.join(',') : reportLevels,
63
- '--outputFolder',
64
- outputFolder,
65
- '--outputFormat',
66
- outputFormat,
67
- '---outputFilenameTimestamp',
68
- outputFilenameTimestamp,
69
- url
70
- ];
71
-
72
- // run accessibility checker with our arguments.
73
- if( isUrl( url ) || fs.existsSync( url ) ){
74
- let outputDir = path.resolve('.', outputFolder);
75
- let outputFileName = isUrl( url ) ?
76
- url.replace(/http[s]+:\/\//, '')
77
- :
78
- path.resolve(url).replace(':', '_');
79
-
80
-
81
- let reportFile = path.resolve(outputDir, outputFileName ) + '.html'
82
-
83
- await runCmd(
84
- 'achecker',
85
- acheckerArgs,
86
- ).then(({stderr, stdout}) => {
87
- console.log( reportFile );
88
- })
89
-
90
- }else{
91
- console.log( `${url} is not a valid url.` )
92
- }
93
-
94
-
95
- };
package/commands/build.js DELETED
@@ -1,80 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * External dependencies
5
- */
6
- import path from 'path';
7
- import fs from 'fs';
8
-
9
- /**
10
- * Internal dependencies
11
- */
12
- import {
13
- runCmd,
14
- projectPath,
15
- appPath
16
- } from '../lib/index.js';
17
-
18
-
19
- /**
20
- * Build the current project
21
- *
22
- * @param {Object} options
23
- * @param {Object} options.spinner A CLI spinner which indicates progress.
24
- * @param {boolean} options.debug True if debug mode is enabled.
25
- */
26
- export default async function build({
27
- spinner,
28
- debug,
29
- } ) {
30
-
31
- // Spinner not needed at the moment
32
- spinner.stop()
33
-
34
- // Since we use @wordpress/scripts webpack config we can leverage
35
- // the environment variables as well.
36
- process.env.WP_COPY_PHP_FILES_TO_DIST = true;
37
-
38
- // Our default Webpack Configuration
39
- const defaultConfig = path.join( projectPath, 'configs', 'webpack.config.js' );
40
-
41
- // pass any arguments from the cli
42
- // add our default config as an extension.
43
- // users can overwrite any values by creating a webconfig of their own.
44
- let webPackArgs = [
45
- '--mode=none',
46
- '--progress',
47
- '--config',
48
- defaultConfig
49
- ];
50
-
51
- // CommonJS
52
- if( fs.existsSync( path.join(appPath, 'webpack.config.cjs' ))){
53
- webPackArgs.push(
54
- '--config',
55
- path.join(appPath, 'webpack.config.cjs' ),
56
- '--merge'
57
- )
58
- // ESM
59
- }else if( fs.existsSync(path.join(appPath, 'webpack.config.js' )) ){
60
- webPackArgs.push(
61
- '--config',
62
- path.join(appPath, 'webpack.config.js' ),
63
- '--merge'
64
- )
65
- }
66
-
67
- // run webpack with our arguments.
68
- await runCmd(
69
- 'webpack',
70
- webPackArgs,
71
- ).then(({stdout, stderr}) => {
72
- // if an error was thrown, and no output
73
- if( stderr && ! stdout.toString() ){
74
- console.log( stderr.toString() )
75
- }else{
76
- spinner.text = 'Done'
77
- }
78
- });
79
-
80
- };
package/commands/serve.js DELETED
@@ -1,95 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * External dependencies
5
- */
6
- import path from 'path';
7
- import fs from 'fs';
8
-
9
- /**
10
- * Internal dependencies
11
- */
12
- import {
13
- projectPath,
14
- appPath,
15
- runCmd
16
- } from '../lib/index.js';
17
-
18
- import a11y from './a11y.js';
19
-
20
- /**
21
- * Serves the current project
22
- *
23
- * @param {Object} options
24
- * @param {Object} options.spinner A CLI spinner which indicates progress.
25
- * @param {boolean} options.debug True if debug mode is enabled.
26
- * @param {boolean} options.template Disables inclusion of the template page header & footer, starting off with a plain html page.
27
- */
28
- export default async function serve({
29
- spinner,
30
- debug,
31
- template,
32
- } ) {
33
- spinner.stop();
34
-
35
- // Since we use @wordpress/scripts webpack config we can leverage
36
- // the environment variables as well.
37
- process.env.WP_COPY_PHP_FILES_TO_DIST = true;
38
-
39
-
40
- // This lets the parser know to include the template
41
- // Otherwise we load a blank html page
42
- process.env.CDT_TEMPLATE = template;
43
-
44
- // Let our webpack config know it's serving not building
45
- process.env.CAWEB_SERVE = true;
46
-
47
- // Our default Webpack Configuration
48
- const defaultConfig = path.join( projectPath, 'configs', 'webpack.config.js' );
49
-
50
- let webPackArgs = [
51
- 'serve',
52
- '--open',
53
- '--hot',
54
- '--mode=none',
55
- '--config',
56
- defaultConfig
57
- ];
58
-
59
- // merge user configurations
60
- // CommonJS
61
- if( fs.existsSync(path.join( appPath, 'webpack.config.cjs' ))){
62
- webPackArgs.push(
63
- '--config',
64
- path.join( appPath, 'webpack.config.cjs' ),
65
- '--merge'
66
- )
67
- // ESM
68
- }else if( fs.existsSync(path.join( appPath, 'webpack.config.js' )) ){
69
- webPackArgs.push(
70
- '--config',
71
- path.join( appPath, 'webpack.config.js' ),
72
- '--merge'
73
- )
74
- }
75
-
76
- // run webpack with our configuration.
77
- await runCmd(
78
- 'webpack',
79
- webPackArgs
80
- ).then(({stdout, stderr}) => {
81
- // if an error was thrown, and no output
82
- if( stderr && ! stdout.toString() ){
83
- console.log( stderr.toString() )
84
- }else{
85
-
86
- // run a11y checker as well
87
- //await a11y({spinner, debug, url: './public/index.html' })
88
-
89
- //return;
90
- spinner.text = 'Done'
91
- }
92
- });
93
-
94
-
95
- };
@@ -1,28 +0,0 @@
1
- /**
2
- * Configuration for Accessibility Checker
3
- * @link https://www.npmjs.com/package/accessibility-checker
4
- */
5
-
6
- export default {
7
- ruleArchive: "latest",
8
- policies: [
9
- 'WCAG_2_1'
10
- ],
11
- failLevels: [
12
- 'violation',
13
- 'potentialviolation'
14
- ],
15
- reportLevels: [
16
- 'violation',
17
- 'potentialviolation',
18
- 'recommendation',
19
- 'potentialrecommendation',
20
- 'manual',
21
- 'pass'
22
- ],
23
- outputFolder: "a11y",
24
- outputFormat: [
25
- 'html'
26
- ],
27
- outputFilenameTimestamp: false
28
- }
package/docs/CREDITS.MD DELETED
@@ -1,27 +0,0 @@
1
- # Sources
2
- ### <ins>Design System Components</ins>
3
- [Github](https://github.com/cagov/design-system/tree/main/components)
4
- [NPM Packages](https://www.npmjs.com/search?q=%40cagov)
5
-
6
- ### <ins>docker-compose</ins>
7
- [Documentation](https://pdmlab.github.io/docker-compose/)
8
- [Github](https://github.com/PDMLab/docker-compose)
9
- [NPM Package](https://www.npmjs.com/package/docker-compose)
10
-
11
- ### <ins>wp-env</ins>
12
- [Documentation](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/)
13
- [Github](https://github.com/WordPress/gutenberg/tree/HEAD/packages/env)
14
- [NPM Package](https://www.npmjs.com/package/@wordpress/env)
15
-
16
- ### <ins>create-block</ins>
17
- [Block API](https://developer.wordpress.org/block-editor/reference-guides/block-api/)
18
- [Documentation](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/)
19
- [External Project Templates](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/packages-create-block-external-template/)
20
- [NPM Package](https://www.npmjs.com/package/@wordpress/create-block)
21
-
22
-
23
- ### <ins>wp cli</ins>
24
- [Documentation](https://developer.wordpress.org/cli/commands/)
25
-
26
- ### <ins>phpMyAdmin</ins>
27
- [Docker](https://hub.docker.com/_/phpmyadmin)
package/docs/ISSUES.MD DELETED
@@ -1,7 +0,0 @@
1
- # Known Issues
2
- [[Bug](https://github.com/npm/cli/issues/3136)] Arguments are not correctly passed from CLI to npm script (npm 7, Windows, Powershell)
3
- - Workaround - If using < Node 20, add an additional `--` when passing arguments
4
- -- Example run
5
- `npm run caweb start -- -- --multisite`
6
- instead of
7
- `npm run caweb start -- --multisite`
package/docs/OVERRIDES.md DELETED
@@ -1,53 +0,0 @@
1
- ## [.wp-env.override.json](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/#wp-env-override-json)
2
- Any fields here will take precedence over .wp-env.json.
3
- ## <ins>Special Config Values</ins>
4
- ### <ins>CAWeb Options</ins>
5
- `CAWEB_TEMPLATE_VER` - Updates CAWeb State Template Version
6
- `CAWEB_NAV_MENU_STYLE` - Updates CAWeb Header Menu Type
7
- `CAWEB_COLORSCHEME` - Updates CAWeb Color Scheme
8
- `CAWEB_TITLE_DISPLAY` - Updates CAWeb Title Display Default
9
- `CAWEB_STICKY_NAV` - Updates CAWeb Sticky Navigation
10
- `CAWEB_MENU_HOME_LINK` - Updates CAWeb Menu Home Link
11
- `CAWEB_DISPLAY_POSTS_DATE` - Updates CAWeb Display Date for Non-Divi Posts
12
- `CAWEB_X_UA_COMPATIBILITY` - Updates CAWeb Legacy Browser Support
13
- `CAWEB_FRONTPAGE_SEARCH` - Updates CAWeb Show Search on Front Page
14
- `CAWEB_CONTACT_US_PAGE` - Updates CAWeb Contact Us Page
15
- `CAWEB_GEO_LOCATOR` - Updates CAWeb Enable Geo Locator
16
- `CAWEB_UTILITY_HOME_LINK` - Updates CAWeb Home Link
17
- `CAWEB_UTILITY_LINK1_ENABLED` - Updates CAWeb Custom Link 1
18
- `CAWEB_UTILITY_LINK1_LABEL` - Updates CAWeb Custom Link 1 Label
19
- `CAWEB_UTILITY_LINK1_URL` - Updates CAWeb Custom Link 1 URL
20
- `CAWEB_UTILITY_LINK1_NEW_WINDOW` - Updates CAWeb Custom Link 1 Open in New Tab
21
- `CAWEB_UTILITY_LINK2_ENABLED` - Updates CAWeb Custom Link 2
22
- `CAWEB_UTILITY_LINK2_LABEL` - Updates CAWeb Custom Link 2 Label
23
- `CAWEB_UTILITY_LINK2_URL` - Updates CAWeb Custom Link 2 URL
24
- `CAWEB_UTILITY_LINK2_NEW_WINDOW` - Updates CAWeb Custom Link 2 Open in New Tab
25
- `CAWEB_UTILITY_LINK3_ENABLED` - Updates CAWeb Custom Link 3
26
- `CAWEB_UTILITY_LINK3_LABEL` - Updates CAWeb Custom Link 3 Label
27
- `CAWEB_UTILITY_LINK3_URL` - Updates CAWeb Custom Link 3 URL
28
- `CAWEB_UTILITY_LINK3_NEW_WINDOW` - Updates CAWeb Custom Link 3 Open in New Tab
29
- `CAWEB_CAWEB_ORG_LOGO_ALT_TEXT` - Updates CAWeb Organization Logo-Alt Text
30
- `CAWEB_GOOGLE_SEARCH_ENGINE_ID` - Updates CAWeb Search Engine ID
31
- `CAWEB_GOOGLE_ANALYTICS_ID` - Updates CAWeb Analytics ID
32
- `CAWEB_GOOGLE_ANALYTICS4_ID` - Updates CAWeb Analytics 4 ID
33
- `CAWEB_GOOGLE_TAG_MANAGER_ID` - Updates CAWeb Tag Manager ID
34
- `CAWEB_GOOGLE_META_ID` - Updates CAWeb Site Verification Meta ID
35
- `CAWEB_GOOGLE_TRANSLATE_MODE` - Updates CAWeb Enable Google Translate
36
- `CAWEB_GOOGLE_TRANSLATE_PAGE` - Updates CAWeb Translate Page
37
- `CAWEB_GOOGLE_TRANSLATE_PAGE_NEW_WINDOW` - Updates CAWeb Open in New Tab
38
- `CAWEB_GOOGLE_TRANSLATE_ICON` - Updates CAWeb Icon
39
- `CAWEB_PRIVATE_REPO` - Updates CAWeb Is Private?
40
- `CAWEB_GIT_USER` - Updates CAWeb Username
41
- `CAWEB_ACCESS_TOKEN` - Updates CAWeb Token
42
- ### <ins>Divi Options</ins>
43
- `ET_DYNAMIC_MODULE` - Updates CAWeb Dynamic Module Framework
44
- `ET_DYNAMIC_CSS` - Updates CAWeb Dynamic CSS
45
- `ET_CRITICAL_CSS` - Updates CAWeb Critical CSS
46
- `ET_DYNAMIC_JS` - Updates CAWeb Dynamic JavaScript Libraries
47
- `ET_CLASSIC_EDITOR` - Updates CAWeb Enable Classic Editor
48
- `ET_STATIC_CSS_GENERATION` - Updates CAWeb Static CSS File Generation
49
- `ET_PRODUCT_TOUR` - Updates CAWeb Product Tour
50
- `ET_NEW_BUILDER_EXPERIENCE` - Updates CAWeb Enable The Latest Divi Builder Experience
51
- `ET_OUTPUT_STYLES_INLINE` - Updates CAWeb Output Styles Inline
52
- `ET_USERNAME` - Updates CAWeb Username
53
- `ET_API_KEY` - Updates CAWeb API Key
package/docs/ROADMAP.MD DELETED
@@ -1,19 +0,0 @@
1
- # Roadmap Features:
2
-
3
- ## Testaro
4
- https://www.npmjs.com/package/testaro
5
-
6
- ## Sonarqube Scanner
7
- https://www.npmjs.com/package/sonarqube-scanner
8
-
9
- ## BrowserStack
10
- https://www.npmjs.com/package/browserstack
11
-
12
- ## Accessibility Checker
13
- https://www.npmjs.com/package/accessibility-checker
14
-
15
- ## Control Panel
16
- https://aapanel.com/new/download.html
17
-
18
- ## SNYK
19
- https://www.npmjs.com/package/snyk
package/docs/SYNC.MD DELETED
@@ -1,29 +0,0 @@
1
- # caweb.json Configuration
2
- Under the `sync` property you can list the various WordPress Instances. Each Instance, requires a WordPress Username, Application Password and the Site URL.
3
-
4
- Sync Example Command:
5
- Using the example, if you wanted to sync all the changes from the dev instance to your local instance.
6
- `caweb sync dev local`
7
-
8
- Sync Configuration Example:
9
- <pre>
10
- {
11
- "sync": {
12
- "local": {
13
- "user": "&lt;Username&gt;",
14
- "pwd": "<a href="https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/#basic-authentication-with-application-passwords">Application Password</a>",
15
- "url": "http://example1.com"
16
- },
17
- "dev": {
18
- "user": "&lt;Username&gt;",
19
- "pwd": "<a href="https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/#basic-authentication-with-application-passwords">Application Password</a>",
20
- "url": "http://example2.com"
21
- },
22
- "test": {
23
- "user": "&lt;Username&gt;",
24
- "pwd": "<a href="https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/#basic-authentication-with-application-passwords">Application Password</a>",
25
- "url": "http://example3.com"
26
- }
27
- }
28
- }
29
- </pre>
@@ -1,45 +0,0 @@
1
- 'use strict';
2
-
3
-
4
- /**
5
- * External dependencies
6
- */
7
- import path from 'node:path';
8
- import fs from 'fs-extra';
9
-
10
- import { CAWEB_OPTIONS, DIVI_OPTIONS } from '../../lib/index.js';
11
-
12
- generateOverridesMD()
13
-
14
- /**
15
- * Generates the OVERRIDES.MD
16
- *
17
- */
18
- export default async function generateOverridesMD() {
19
-
20
- let output = [
21
- '## [.wp-env.override.json](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/#wp-env-override-json)',
22
- 'Any fields here will take precedence over .wp-env.json.',
23
- '## <ins>Special Config Values</ins>',
24
- ];
25
-
26
- // Generate CAWeb Options overrides.
27
- output.push('### <ins>CAWeb Options</ins>');
28
- for (const [key, option] of Object.entries(CAWEB_OPTIONS)) {
29
- output.push(`\`${key}\` - Updates CAWeb ${option.label} `);
30
- }
31
-
32
- // Generate Divi Options overrides.
33
- output.push('### <ins>Divi Options</ins>');
34
- for (const [group, options] of Object.entries(DIVI_OPTIONS)) {
35
- for (const [key, option] of Object.entries(options)) {
36
- output.push(`\`${key}\` - Updates CAWeb ${option.label} `);
37
- }
38
- }
39
-
40
- fs.writeFileSync(
41
- path.join(process.cwd(), 'docs', 'OVERRIDES.MD'),
42
- output.join('\n')
43
- );
44
-
45
- };