@caweb/webpack 1.3.16 → 1.3.18

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.txt CHANGED
@@ -1,3 +1,9 @@
1
+ v1.3.18
2
+ - Updated npm packages
3
+
4
+ v1.3.17
5
+ - Updated npm packages
6
+
1
7
  v1.3.16
2
8
  - Updated npm packages
3
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/webpack",
3
- "version": "1.3.16",
3
+ "version": "1.3.18",
4
4
  "description": "CAWebPublishing Webpack Configuration",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@caweb/a11y-webpack-plugin": "^1.0.9",
39
39
  "@caweb/css-audit-webpack-plugin": "^1.0.12",
40
- "@caweb/html-webpack-plugin": "^1.5.17",
41
- "@caweb/jshint-webpack-plugin": "^1.0.9"
40
+ "@caweb/html-webpack-plugin": "^1.5.19",
41
+ "@caweb/jshint-webpack-plugin": "^2.0.0"
42
42
  }
43
43
  }
@@ -1,3 +1,9 @@
1
+ v1.5.19
2
+ - Added new assets parameters to head/footer sections for external files to be loaded
3
+
4
+ v1.5.18
5
+ - Added missing package rtlcss-webpack-plugin
6
+
1
7
  v1.5.17
2
8
  - Added missing package rtlcss-webpack-plugin
3
9
 
@@ -18,6 +18,7 @@
18
18
  "html-webpack-link-type-plugin": "^1.1.1",
19
19
  "html-webpack-plugin": "^5.6.3",
20
20
  "html-webpack-skip-assets-plugin": "^1.0.4",
21
+ "rtlcss-webpack-plugin": "^4.0.7",
21
22
  "webpack": "^5.97.1",
22
23
  "webpack-cli": "^6.0.1"
23
24
  },
@@ -29,8 +30,7 @@
29
30
  "chalk": "^5.4.1",
30
31
  "cross-spawn": "^7.0.6",
31
32
  "fast-xml-parser": "^4.5.1",
32
- "mini-css-extract-plugin": "^2.9.2",
33
- "rtlcss-webpack-plugin": "^4.0.7"
33
+ "mini-css-extract-plugin": "^2.9.2"
34
34
  }
35
35
  },
36
36
  "node_modules/@ampproject/remapping": {
@@ -6617,7 +6617,6 @@
6617
6617
  "version": "6.25.0",
6618
6618
  "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.25.0.tgz",
6619
6619
  "integrity": "sha512-zeCYxDePWYAT/DfmQWIHsMSFW2vv45UIwIAMjGvQVsTd47RwsiRH0uK1yzyWZ7LDBKdhnGDPM6NYEO5CZyhPrg==",
6620
- "dev": true,
6621
6620
  "license": "MIT",
6622
6621
  "dependencies": {
6623
6622
  "core-js": "^2.4.0",
@@ -6629,7 +6628,6 @@
6629
6628
  "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
6630
6629
  "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==",
6631
6630
  "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.",
6632
- "dev": true,
6633
6631
  "hasInstallScript": true,
6634
6632
  "license": "MIT"
6635
6633
  },
@@ -6637,7 +6635,6 @@
6637
6635
  "version": "0.10.5",
6638
6636
  "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz",
6639
6637
  "integrity": "sha512-02YopEIhAgiBHWeoTiA8aitHDt8z6w+rQqNuIftlM+ZtvSl/brTouaU7DW6GO/cHtvxJvS4Hwv2ibKdxIRi24w==",
6640
- "dev": true,
6641
6638
  "license": "MIT"
6642
6639
  },
6643
6640
  "node_modules/balanced-match": {
@@ -18659,7 +18656,6 @@
18659
18656
  "version": "3.5.0",
18660
18657
  "resolved": "https://registry.npmjs.org/rtlcss/-/rtlcss-3.5.0.tgz",
18661
18658
  "integrity": "sha512-wzgMaMFHQTnyi9YOwsx9LjOxYXJPzS8sYnFaKm6R5ysvTkwzHiB0vxnbHwchHQT65PTdBjDG21/kQBWI7q9O7A==",
18662
- "dev": true,
18663
18659
  "license": "MIT",
18664
18660
  "dependencies": {
18665
18661
  "find-up": "^5.0.0",
@@ -18675,7 +18671,6 @@
18675
18671
  "version": "4.0.7",
18676
18672
  "resolved": "https://registry.npmjs.org/rtlcss-webpack-plugin/-/rtlcss-webpack-plugin-4.0.7.tgz",
18677
18673
  "integrity": "sha512-ouSbJtgcLBBQIsMgarxsDnfgRqm/AS4BKls/mz/Xb6HSl+PdEzefTR+Wz5uWQx4odoX0g261Z7yb3QBz0MTm0g==",
18678
- "dev": true,
18679
18674
  "license": "MIT",
18680
18675
  "dependencies": {
18681
18676
  "babel-runtime": "~6.25.0",
@@ -18686,7 +18681,6 @@
18686
18681
  "version": "5.0.0",
18687
18682
  "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
18688
18683
  "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
18689
- "dev": true,
18690
18684
  "license": "MIT",
18691
18685
  "dependencies": {
18692
18686
  "locate-path": "^6.0.0",
@@ -18703,7 +18697,6 @@
18703
18697
  "version": "6.0.0",
18704
18698
  "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
18705
18699
  "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
18706
- "dev": true,
18707
18700
  "license": "MIT",
18708
18701
  "dependencies": {
18709
18702
  "p-locate": "^5.0.0"
@@ -18719,7 +18712,6 @@
18719
18712
  "version": "5.0.0",
18720
18713
  "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
18721
18714
  "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
18722
- "dev": true,
18723
18715
  "license": "MIT",
18724
18716
  "dependencies": {
18725
18717
  "p-limit": "^3.0.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/html-webpack-plugin",
3
- "version": "1.5.17",
3
+ "version": "1.5.19",
4
4
  "description": "CAWebPublishing Sample Page and Configurations",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -118,8 +118,7 @@
118
118
  "chalk": "^5.4.1",
119
119
  "cross-spawn": "^7.0.6",
120
120
  "fast-xml-parser": "^4.5.1",
121
- "mini-css-extract-plugin": "^2.9.2",
122
- "rtlcss-webpack-plugin": "^4.0.7"
121
+ "mini-css-extract-plugin": "^2.9.2"
123
122
  },
124
123
  "dependencies": {
125
124
  "@caweb/a11y-webpack-plugin": "^1.0.9",
@@ -131,7 +130,8 @@
131
130
  "html-webpack-link-type-plugin": "^1.1.1",
132
131
  "html-webpack-plugin": "^5.6.3",
133
132
  "html-webpack-skip-assets-plugin": "^1.0.4",
133
+ "rtlcss-webpack-plugin": "^4.0.7",
134
134
  "webpack": "^5.97.1",
135
135
  "webpack-cli": "^6.0.1"
136
136
  }
137
- }
137
+ }
@@ -9,6 +9,21 @@
9
9
  <!-- Template Scheme CSS -->
10
10
  <link rel="stylesheet" href="node_modules/@caweb/html-webpack-plugin/build/{{ scheme }}.css" />
11
11
  {{/if}}
12
+
13
+
14
+ {{#if htmlWebpackPlugin.options.meta }}
15
+ {{#each htmlWebpackPlugin.options.meta }}
16
+ <meta name="{{ @key }}" content="{{ this }}">
17
+ {{/each}}
18
+ {{/if}}
19
+
20
+ {{#if assets }}
21
+ {{#each assets }}
22
+ {{#if (endsWith this ".css") }}
23
+ <link rel="stylesheet" href="{{ this }}" />
24
+ {{/if}}
25
+ {{/each}}
26
+ {{/if}}
12
27
  </head>
13
28
  <body>
14
29
  {{> header }}
@@ -27,5 +42,12 @@
27
42
  {{#if scheme }}
28
43
  <script src="node_modules/@caweb/html-webpack-plugin/build/{{ scheme }}.js"></script>
29
44
  {{/if}}
45
+ {{#if assets }}
46
+ {{#each assets }}
47
+ {{#if (endsWith this ".js") }}
48
+ <script src="{{ this }}"></script>
49
+ {{/if}}
50
+ {{/each}}
51
+ {{/if}}
30
52
  </body>
31
53
  </html>
@@ -0,0 +1,29 @@
1
+ {
2
+ "boss": true,
3
+ "curly": true,
4
+ "eqeqeq": true,
5
+ "eqnull": true,
6
+ "esversion": 11,
7
+ "expr": true,
8
+ "immed": true,
9
+ "noarg": true,
10
+ "nonbsp": true,
11
+ "quotmark": "single",
12
+ "undef": true,
13
+ "unused": true,
14
+ "browser": true,
15
+ "globals": {
16
+ "_": false,
17
+ "Backbone": false,
18
+ "jQuery": false,
19
+ "JSON": false,
20
+ "wp": false,
21
+ "export": false,
22
+ "module": false,
23
+ "require": false,
24
+ "WorkerGlobalScope": false,
25
+ "self": false,
26
+ "OffscreenCanvas": false,
27
+ "Promise": false
28
+ }
29
+ }
@@ -14,7 +14,7 @@ Our standard differs from the guidelines in the following ways:
14
14
  In your Webpack configuration simply add the plugin to your existing plugin array.
15
15
 
16
16
  <pre>
17
- import CSSAuditPlugin from '@caweb/css-audit-webpack-plugin';
17
+ import JSHintPlugin from '@caweb/jshint-webpack-plugin';
18
18
 
19
19
  export default {
20
20
  plugins: [
@@ -22,5 +22,3 @@ export default {
22
22
  ]
23
23
  }
24
24
  </pre>
25
-
26
- ## Options
@@ -1,3 +1,6 @@
1
+ v2.0.0
2
+ - reporter now uses @caweb/html-webpack-plugin when creating report
3
+
1
4
  v1.0.9
2
5
  - Update npm packages
3
6
  - Added npm devDependencies packages
@@ -73,17 +73,10 @@ class JSHintPlugin {
73
73
  }
74
74
  );
75
75
 
76
- const { entry, options, context } = {
77
- entry: path.join( this.config.outputFolder, 'jshint.update.js'),
78
- options: {
79
- name: 'jshint.update'
80
- },
81
- context: 'jshint'
82
- };
83
-
84
- const dep = new EntryDependency(entry);
76
+ //const dep = new EntryDependency(path.join( this.config.outputFolder, 'jshint.js'));
77
+ const dep = new EntryDependency(path.resolve( 'src', 'index.js'));
85
78
  dep.loc = {
86
- name: options.name
79
+ name: 'jshint'
87
80
  };
88
81
 
89
82
  if( ! fs.existsSync(path.resolve(this.config.outputFolder))){
@@ -91,7 +84,7 @@ class JSHintPlugin {
91
84
  }
92
85
 
93
86
  fs.writeFileSync(
94
- path.join(this.config.outputFolder, `jshint.update.js`),
87
+ path.join(this.config.outputFolder, `jshint.js`),
95
88
  `` // required for hot-update to compile on our page, blank script for now
96
89
  );
97
90
 
@@ -106,9 +99,11 @@ class JSHintPlugin {
106
99
  compiler.hooks.make.tapAsync("JSHint Plugin", (compilation, callback) => {
107
100
 
108
101
  compilation.addEntry(
109
- context,
102
+ 'jshint',
110
103
  dep,
111
- options,
104
+ {
105
+ name: 'jshint'
106
+ },
112
107
  err => {
113
108
  callback(err);
114
109
  });
@@ -136,7 +131,7 @@ class JSHintPlugin {
136
131
  'string' === typeof s && // is a string and
137
132
  0 < s.indexOf('.js') && // has a .js reference and
138
133
  0 > s.indexOf('node_modules') && // not referencing node_modules directory
139
- 0 > s.indexOf('jshint.update.js') && // not referencing our update javascript
134
+ 0 > s.indexOf('jshint.js') && // not referencing our update javascript
140
135
  0 > s.indexOf('a11y.update.js') && // not referencing our a11y javascript
141
136
  0 > s.indexOf('audit.update.js') // not referencing our css-audit javascript
142
137
  ){
@@ -154,7 +149,7 @@ class JSHintPlugin {
154
149
  if( result ){
155
150
  // we have to inject the jshint.update.js file into the head in order for the webpack-dev-server scripts to load.
156
151
  let pageContent = fs.readFileSync(path.join(staticDir.directory, `${this.config.outputFilename}.html`))
157
-
152
+
158
153
  fs.writeFileSync(
159
154
  path.join(staticDir.directory, `${this.config.outputFilename}.html`),
160
155
  pageContent.toString().replace('</head>', `<script src="./jshint.update.js"></script>\n</head>`)