wp-blank-scripts 4.0.0-dev-8 → 4.0.0-dev-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/README.md CHANGED
@@ -34,7 +34,7 @@ sass-migrator division **/*.scss
34
34
  │ │ ├── admin
35
35
  │ │ ├── css
36
36
  │ │ ├── fonts
37
- │ │ ├── img
37
+ │ │ ├── images
38
38
  │ │ └── js
39
39
  │ ├── functions.php
40
40
  │ ├── inc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wp-blank-scripts",
3
- "version": "4.0.0-dev-8",
3
+ "version": "4.0.0-dev-10",
4
4
  "description": "Personal Wordpress Scripts",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,3 +1,9 @@
1
+ const fs = require('fs');
1
2
  const { isWindows } = require('./checkPlatform');
2
3
 
3
- module.exports.sqlPath = isWindows ? 'C:/MAMP/bin/mysql/bin' : '/Applications/MAMP/library/bin';
4
+ const mamp6SqlPath = '/Applications/MAMP/Library/bin/mysql';
5
+ const sqlPath = '/Applications/MAMP/Library/bin/mysql80/bin'; //MAMP7 moved mysql path
6
+
7
+ const mysqlPath = fs.existsSync(mamp6SqlPath) ? mamp6SqlPath : sqlPath;
8
+
9
+ module.exports.sqlPath = isWindows ? 'C:/MAMP/bin/mysql/bin' : mysqlPath;
@@ -47,18 +47,18 @@ function makeBaseConfig(options) {
47
47
  },
48
48
  { from: path.join(sourceDir, 'style.css'), to: themePath },
49
49
  {
50
- from: path.join(sourceDir, 'assets', 'img'),
51
- to: path.join(themePath, 'assets', 'img'),
50
+ from: path.join(sourceDir, 'assets', 'images'),
51
+ to: path.join(themePath, 'assets', 'images'),
52
52
  globOptions: { ignore: ['.DS_Store'] },
53
53
  },
54
54
  ...(fs.existsSync(fontsDir)
55
55
  ? [
56
- {
57
- from: fontsDir,
58
- to: path.join(themePath, 'assets', 'fonts'),
59
- globOptions: { ignore: ['.DS_Store'] },
60
- },
61
- ]
56
+ {
57
+ from: fontsDir,
58
+ to: path.join(themePath, 'assets', 'fonts'),
59
+ globOptions: { ignore: ['.DS_Store'] },
60
+ },
61
+ ]
62
62
  : []),
63
63
  {
64
64
  from: path.join(sourceDir, 'templates'),
@@ -147,7 +147,7 @@ function makeReactWebpackConfig(options) {
147
147
  test: /\.(gif|png|svg|jpe?g)$/i,
148
148
  type: 'asset/resource',
149
149
  generator: {
150
- filename: `${path.join(themeDir, 'assets', 'img')}/[contenthash][ext][query]`,
150
+ filename: `${path.join(themeDir, 'assets', 'images')}/[contenthash][ext][query]`,
151
151
  },
152
152
  },
153
153
  {