wp-blank-scripts 3.0.0 → 3.0.1

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/README.md CHANGED
@@ -387,3 +387,6 @@ exports.checkProjectDependencies = () => {
387
387
  }
388
388
  };
389
389
  ```
390
+
391
+ ## Node Version
392
+ Currently supports `18.8.0` for all projects running `wp-blank-scripts@3.0.0`
@@ -164,7 +164,7 @@ module.exports = async (envConfig = {}, buildOptions, failOnError = false) => {
164
164
 
165
165
  if (stats.hasErrors()) {
166
166
  info.errors.forEach((error) => {
167
- console.log(chalk.red(error));
167
+ console.log(error);
168
168
  });
169
169
 
170
170
  logger.error('Build finished with errors');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wp-blank-scripts",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Personal Wordpress Scripts",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -112,6 +112,15 @@ function makeBaseConfig(options) {
112
112
  { from: 'wp-content', to: 'wp-content' },
113
113
  ];
114
114
 
115
+ // @TODO: temporary for development of blocks package
116
+ const includeBlocks = process.env.MASTER_BLOCKS;
117
+ const masterBlocks = [
118
+ {
119
+ from: path.join(__dirname, '../../vivo/vivo-master-blocks'),
120
+ to: path.join(themePath, 'inc', 'vivo-master-blocks'),
121
+ },
122
+ ];
123
+
115
124
  let customFiles = [];
116
125
  if (typeof copyFiles === 'function') {
117
126
  customFiles = copyFiles({
@@ -123,7 +132,13 @@ function makeBaseConfig(options) {
123
132
  });
124
133
  }
125
134
 
126
- const filesToCopy = [...sourceFiles, ...envFiles, ...wordpressFiles, ...customFiles];
135
+ const filesToCopy = [
136
+ ...sourceFiles,
137
+ ...envFiles,
138
+ ...wordpressFiles,
139
+ ...customFiles,
140
+ ...(includeBlocks ? masterBlocks : []),
141
+ ];
127
142
 
128
143
  // Admin entries
129
144
  const adminScripts = glob.sync(path.join(sourcePath, 'assets', 'admin', 'js', '*.js'));
@@ -267,6 +282,7 @@ function makeBaseConfig(options) {
267
282
  minimizer: [
268
283
  new TerserPlugin({
269
284
  parallel: true,
285
+ include: [sourcePath],
270
286
  terserOptions: {
271
287
  sourceMap: true,
272
288
  keep_classnames: true,