@lando/php 1.3.0 → 1.4.0

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 (86) hide show
  1. package/.lando.yml +19 -9
  2. package/.nyc_output/processinfo/f05431a6-4424-40ba-9a42-3a54b790a1bc.json +1 -0
  3. package/.nyc_output/processinfo/fc61a4ce-cfd4-410a-a9a6-4942c26f55a2.json +1 -0
  4. package/.nyc_output/processinfo/index.json +1 -1
  5. package/CHANGELOG.md +33 -14
  6. package/README.md +5 -0
  7. package/builders/php.js +5 -7
  8. package/coverage/index.html +1 -1
  9. package/images/5.6-apache/Dockerfile +7 -2
  10. package/images/5.6-fpm/Dockerfile +7 -2
  11. package/images/7.0-apache/Dockerfile +7 -2
  12. package/images/7.0-fpm/Dockerfile +7 -2
  13. package/images/7.1-apache/Dockerfile +8 -8
  14. package/images/7.1-fpm/Dockerfile +8 -8
  15. package/images/7.2-apache/Dockerfile +9 -9
  16. package/images/7.2-fpm/Dockerfile +9 -9
  17. package/images/7.3-apache/Dockerfile +2 -6
  18. package/images/7.3-fpm/Dockerfile +2 -6
  19. package/images/7.4-apache/Dockerfile +2 -6
  20. package/images/7.4-fpm/Dockerfile +2 -6
  21. package/images/8.0-apache/Dockerfile +2 -6
  22. package/images/8.0-fpm/Dockerfile +2 -6
  23. package/images/8.1-apache/Dockerfile +2 -6
  24. package/images/8.1-fpm/Dockerfile +2 -6
  25. package/images/8.2-apache/Dockerfile +2 -6
  26. package/images/8.2-fpm/Dockerfile +2 -6
  27. package/images/8.3-apache/Dockerfile +2 -6
  28. package/images/8.3-fpm/Dockerfile +2 -6
  29. package/netlify.toml +15 -8
  30. package/node_modules/@lando/nginx/.eslintignore +3 -2
  31. package/node_modules/@lando/nginx/.lando.yml +20 -10
  32. package/node_modules/@lando/nginx/.node-version +1 -1
  33. package/node_modules/@lando/nginx/CHANGELOG.md +40 -19
  34. package/node_modules/@lando/nginx/README.md +6 -0
  35. package/node_modules/@lando/nginx/builders/nginx.js +17 -18
  36. package/node_modules/@lando/nginx/config/launch.sh +8 -2
  37. package/node_modules/@lando/nginx/netlify.toml +28 -6
  38. package/node_modules/@lando/nginx/package.json +21 -14
  39. package/node_modules/@lando/nginx/scripts/install-render-template.sh +47 -0
  40. package/node_modules/@lando/nginx/tmpfile +0 -0
  41. package/node_modules/@lando/nginx/utils/add-build-step.js +14 -0
  42. package/node_modules/semver/README.md +49 -32
  43. package/node_modules/semver/bin/semver.js +5 -14
  44. package/node_modules/semver/classes/range.js +28 -13
  45. package/node_modules/semver/classes/semver.js +1 -1
  46. package/node_modules/semver/functions/coerce.js +13 -5
  47. package/node_modules/semver/internal/lrucache.js +40 -0
  48. package/node_modules/semver/internal/re.js +7 -2
  49. package/node_modules/semver/package.json +8 -18
  50. package/package.json +11 -10
  51. package/.nyc_output/processinfo/82ec8255-1dc4-4066-ab80-acce72694169.json +0 -1
  52. package/.nyc_output/processinfo/8d0211c6-0d44-418c-8bdb-310f5379ce84.json +0 -1
  53. package/images/5.3-apache/Dockerfile +0 -83
  54. package/images/5.3-apache/apache2.conf +0 -64
  55. package/images/5.3-fpm/Dockerfile +0 -80
  56. package/images/5.3-fpm/docker-php-ext-enable +0 -83
  57. package/images/5.3-fpm/php-fpm.conf +0 -65
  58. package/images/5.4-apache/Dockerfile +0 -79
  59. package/images/5.4-apache/apache2-foreground +0 -17
  60. package/images/5.4-fpm/Dockerfile +0 -75
  61. package/images/5.5-apache/Dockerfile +0 -77
  62. package/images/5.5-fpm/Dockerfile +0 -76
  63. package/node_modules/@lando/nginx/.nyc_output/68963536-315a-41b5-9dda-1c3f30fb9c99.json +0 -1
  64. package/node_modules/@lando/nginx/.nyc_output/e965c931-7444-4e4e-8bc1-c51f696e4cfe.json +0 -1
  65. package/node_modules/@lando/nginx/.nyc_output/processinfo/68963536-315a-41b5-9dda-1c3f30fb9c99.json +0 -1
  66. package/node_modules/@lando/nginx/.nyc_output/processinfo/e965c931-7444-4e4e-8bc1-c51f696e4cfe.json +0 -1
  67. package/node_modules/@lando/nginx/.nyc_output/processinfo/index.json +0 -1
  68. package/node_modules/@lando/nginx/coverage/base.css +0 -224
  69. package/node_modules/@lando/nginx/coverage/block-navigation.js +0 -87
  70. package/node_modules/@lando/nginx/coverage/favicon.png +0 -0
  71. package/node_modules/@lando/nginx/coverage/index.html +0 -101
  72. package/node_modules/@lando/nginx/coverage/prettify.css +0 -1
  73. package/node_modules/@lando/nginx/coverage/prettify.js +0 -2
  74. package/node_modules/@lando/nginx/coverage/sort-arrow-sprite.png +0 -0
  75. package/node_modules/@lando/nginx/coverage/sorter.js +0 -196
  76. package/node_modules/semver/node_modules/lru-cache/LICENSE +0 -15
  77. package/node_modules/semver/node_modules/lru-cache/README.md +0 -166
  78. package/node_modules/semver/node_modules/lru-cache/index.js +0 -334
  79. package/node_modules/semver/node_modules/lru-cache/package.json +0 -34
  80. package/node_modules/semver/node_modules/yallist/LICENSE +0 -15
  81. package/node_modules/semver/node_modules/yallist/README.md +0 -204
  82. package/node_modules/semver/node_modules/yallist/iterator.js +0 -8
  83. package/node_modules/semver/node_modules/yallist/package.json +0 -29
  84. package/node_modules/semver/node_modules/yallist/yallist.js +0 -426
  85. /package/.nyc_output/{82ec8255-1dc4-4066-ab80-acce72694169.json → f05431a6-4424-40ba-9a42-3a54b790a1bc.json} +0 -0
  86. /package/.nyc_output/{8d0211c6-0d44-418c-8bdb-310f5379ce84.json → fc61a4ce-cfd4-410a-a9a6-4942c26f55a2.json} +0 -0
@@ -5,15 +5,11 @@ FROM php:8.2-apache-bullseye
5
5
  # Install dependencies we need
6
6
  RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
7
7
  && apt -y update && apt-get install -y \
8
- gnupg2 \
9
- wget \
10
- && echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' >> /etc/apt/sources.list.d/pgdg.list \
11
- && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
12
- && apt-get update && apt-get install -y \
13
8
  bzip2 \
14
9
  default-mysql-client \
15
10
  exiftool \
16
11
  git-core \
12
+ gnupg2 \
17
13
  imagemagick \
18
14
  libbz2-dev \
19
15
  libc-client-dev \
@@ -32,7 +28,7 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
32
28
  libzip-dev \
33
29
  libonig-dev \
34
30
  openssl \
35
- postgresql-client-10 \
31
+ postgresql-client-13 \
36
32
  pv \
37
33
  rsync \
38
34
  ssh \
@@ -5,15 +5,11 @@ FROM php:8.2-fpm-bullseye
5
5
  # Install dependencies we need
6
6
  RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
7
7
  && apt -y update && apt-get install -y \
8
- gnupg2 \
9
- wget \
10
- && echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' >> /etc/apt/sources.list.d/pgdg.list \
11
- && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
12
- && apt-get update && apt-get install -y \
13
8
  bzip2 \
14
9
  default-mysql-client \
15
10
  exiftool \
16
11
  git-core \
12
+ gnupg2 \
17
13
  imagemagick \
18
14
  libbz2-dev \
19
15
  libc-client-dev \
@@ -32,7 +28,7 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
32
28
  libzip-dev \
33
29
  libonig-dev \
34
30
  openssl \
35
- postgresql-client-10 \
31
+ postgresql-client-13 \
36
32
  pv \
37
33
  rsync \
38
34
  ssh \
@@ -4,16 +4,12 @@ FROM php:8.3-apache-bullseye
4
4
 
5
5
  # Install dependencies we need
6
6
  RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
7
- && apt -y update && apt-get install -y \
8
- gnupg2 \
9
- wget \
10
- && echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' >> /etc/apt/sources.list.d/pgdg.list \
11
- && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
12
7
  && apt-get update && apt-get install -y \
13
8
  bzip2 \
14
9
  default-mysql-client \
15
10
  exiftool \
16
11
  git-core \
12
+ gnupg2 \
17
13
  imagemagick \
18
14
  libbz2-dev \
19
15
  libc-client-dev \
@@ -32,7 +28,7 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
32
28
  libzip-dev \
33
29
  libonig-dev \
34
30
  openssl \
35
- postgresql-client-10 \
31
+ postgresql-client-13 \
36
32
  pv \
37
33
  rsync \
38
34
  ssh \
@@ -4,16 +4,12 @@ FROM php:8.3-fpm-bullseye
4
4
 
5
5
  # Install dependencies we need
6
6
  RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
7
- && apt -y update && apt-get install -y \
8
- gnupg2 \
9
- wget \
10
- && echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main' >> /etc/apt/sources.list.d/pgdg.list \
11
- && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
12
7
  && apt-get update && apt-get install -y \
13
8
  bzip2 \
14
9
  default-mysql-client \
15
10
  exiftool \
16
11
  git-core \
12
+ gnupg2 \
17
13
  imagemagick \
18
14
  libbz2-dev \
19
15
  libc-client-dev \
@@ -32,7 +28,7 @@ RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
32
28
  libzip-dev \
33
29
  libonig-dev \
34
30
  openssl \
35
- postgresql-client-10 \
31
+ postgresql-client-13 \
36
32
  pv \
37
33
  rsync \
38
34
  ssh \
package/netlify.toml CHANGED
@@ -1,8 +1,21 @@
1
1
  [build]
2
2
  base = "./"
3
3
  publish = "docs/.vitepress/dist"
4
+ command = "npm run docs:mvb"
5
+
6
+ [context.deploy-preview]
4
7
  command = "npm run docs:build"
5
8
 
9
+ # https://github.com/munter/netlify-plugin-checklinks#readme
10
+ [[context.deploy-preview.plugins]]
11
+ package = "netlify-plugin-checklinks"
12
+ [context.deploy-preview.plugins.inputs]
13
+ todoPatterns = [ "load", "CHANGELOG.html", "x.com", "twitter.com", "/v/" ]
14
+ skipPatterns = [ ".rss", ".gif", ".jpg" ]
15
+ checkExternal = true
16
+
17
+
18
+
6
19
  # Sets our asset optimization
7
20
  [build.processing.css]
8
21
  bundle = true
@@ -28,13 +41,7 @@
28
41
  [plugins.inputs.audits]
29
42
  output_path = "reports/lighthouse.html"
30
43
 
31
- # https://github.com/munter/netlify-plugin-checklinks#readme
32
- [[plugins]]
33
- package = "netlify-plugin-checklinks"
34
- [plugins.inputs]
35
- todoPatterns = [ "load", "CHANGELOG.html", "x.com", "twitter.com" ]
36
- skipPatterns = [ ".rss", ".gif", ".jpg" ]
37
- checkExternal = true
44
+
38
45
 
39
46
  # We need this so preview environments and the base site look ok on their own
40
47
  [[redirects]]
@@ -44,4 +51,4 @@
44
51
  [[redirects]]
45
52
  from = "/plugins/php/*"
46
53
  to = "/:splat"
47
- status = 200
54
+ status = 200
@@ -1,4 +1,5 @@
1
- .temp
2
- .cache
1
+ temp
2
+ cache
3
3
  dist
4
4
  _site
5
+ !.vitepress
@@ -1,14 +1,24 @@
1
- name: lando-nginx-plugin
1
+ name: docs.nginx
2
+ proxy:
3
+ cli:
4
+ - docs.nginx.lndo.site:5173
2
5
  services:
3
- node:
4
- type: node:16
5
- build:
6
- - yarn install
6
+ cli:
7
+ api: 4
8
+ image: node:18
9
+ command: sleep infinity
10
+ ports:
11
+ - 5173:5173/http
7
12
  scanner: false
8
- ssl: false
9
- sslExpose: false
13
+ user: node
14
+ build:
15
+ app: |
16
+ npm install
10
17
  tooling:
11
18
  node:
12
- service: node
13
- yarn:
14
- service: node
19
+ service: cli
20
+ npm:
21
+ service: cli
22
+ vitepress:
23
+ service: cli
24
+ cmd: npx vitepress
@@ -1 +1 @@
1
- 16
1
+ 18
@@ -1,37 +1,58 @@
1
+ ## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})
2
+
3
+ ## v1.3.0 - [October 16, 2024](https://github.com/lando/nginx/releases/tag/v1.3.0)
4
+
5
+ * Added nginx 1.27
6
+ * Updated other versions to latest bitnami images
7
+ * Minor curl improvements
8
+
9
+ ## v1.2.0 - [June 11, 2024](https://github.com/lando/nginx/releases/tag/v1.2.0)
10
+
11
+ * Added support for `nginx:1.26`.
12
+ * Changed default version to `1.26`
13
+
14
+ ## v1.1.0 - [March 8, 2024](https://github.com/lando/nginx/releases/tag/v1.1.0)
15
+ * Updated to latest database services.
16
+
17
+ ## v1.0.0 - [December 7, 2023](https://github.com/lando/ngin/releases/tag/v1.0.0)
18
+
19
+ * Changed default version to `1.25`
20
+ * Dialed fully for `lando update`
21
+ * Re-added `render-template` tooling as possible
22
+ * Removed support for `nginx:1.14`
23
+
1
24
  ## v0.11.0 - [December 5, 2023](https://github.com/lando/nginx/releases/tag/v0.11.0)
2
25
 
3
- * Got rid of render-template tooling. [#33](https://github.com/lando/nginx/pull/33)
4
- * Added support for `nginx:1.25`.
26
+ * Got rid of `render-template` tooling [#33](https://github.com/lando/nginx/pull/33)
27
+ * Added support for `nginx:1.25`.
5
28
 
6
29
  ## v0.10.0 - [November 15, 2023](https://github.com/lando/nginx/releases/tag/v0.10.0)
7
30
 
8
- * Moved builder file to the new builders/ directory.
9
- * Isolated testing to fit with HARDCORE strategy.
31
+ * Moved builder file to the new builders/ directory.
32
+ * Isolated testing to fit with HARDCORE strategy.
10
33
 
11
34
  ## v0.9.0 - [July 3, 2023](https://github.com/lando/nginx/releases/tag/v0.9.0)
12
35
 
13
- * Removed bundle-dependencies and version-bump-prompt from plugin.
14
- * Updated package to use prepare-release-action.
15
- * Updated documentation to reflect new release process.
36
+ * Removed bundle-dependencies and version-bump-prompt from plugin.
37
+ * Updated package to use prepare-release-action.
38
+ * Updated documentation to reflect new release process.
16
39
 
17
40
  ## v0.8.0 - [May 10, 2023](https://github.com/lando/nginx/releases/tag/v0.8.0)
18
41
 
19
- * Added support for `nginx:1.19`
20
- * Added support for `nginx:1.20`
21
- * Added support for `nginx:1.21`
22
- * Added support for `nginx:1.22`
23
- * Added support for `nginx:1.23`
24
- * Added support for `nginx:1.24`
42
+ * Added support for `nginx:1.19`
43
+ * Added support for `nginx:1.20`
44
+ * Added support for `nginx:1.21`
45
+ * Added support for `nginx:1.22`
46
+ * Added support for `nginx:1.23`
47
+ * Added support for `nginx:1.24`
25
48
 
26
49
  ## v0.7.0 - [December 12, 2022](https://github.com/lando/nginx/releases/tag/v0.7.0)
27
50
 
28
- * Added bundle-dependencies to release process.
29
- * Fixed bug in plugin dogfooding test.
30
-
31
- ## v0.6.0 - [September 7, 2022](https://github.com/lando/nginx/releases/tag/v0.6.0)
51
+ * Added bundle-dependencies to release process.
52
+ * Fixed bug in plugin dogfooding test.
32
53
 
33
54
  ## v0.5.0 - [November 9, 2021](https://github.com/lando/nginx/releases/tag/v0.5.0)
34
55
 
35
- Lando is **free** and **open source** software that relies on contributions from developers like you! If you like Lando then help us spend more time making, updating and supporting it by [contributing](https://github.com/sponsors/lando).
56
+ Lando is **free** and **open source** software that relies on contributions from developers like you! If you like Lando then help us spend more time making, updating and supporting it by [contributing](https://github.com/sponsors/lando).
36
57
 
37
- * Initial Release
58
+ * Initial Release
@@ -33,6 +33,12 @@ If you'd like to report a bug or submit a feature request then please [use the i
33
33
 
34
34
  We try to log all changes big and small in both [THE CHANGELOG](https://github.com/lando/nginx/blob/main/CHANGELOG.md) and the [release notes](https://github.com/lando/nginx/releases).
35
35
 
36
+
37
+ ## Maintainers
38
+
39
+ * [@pirog](https://github.com/pirog)
40
+ * [@reynoldsalec](https://github.com/reynoldsalec)
41
+
36
42
  ## Contributors
37
43
 
38
44
  <a href="https://github.com/lando/nginx/graphs/contributors">
@@ -8,12 +8,13 @@ const path = require('path');
8
8
  module.exports = {
9
9
  name: 'nginx',
10
10
  config: {
11
- version: '1.17',
12
- supported: ['1.14', '1.16', '1.17', '1.18', '1.19', '1.20', '1.21', '1.22', '1.23', '1.24', '1.25'],
13
- legacy: ['1.14'],
11
+ version: '1.27',
12
+ supported: ['1.16', '1.17', '1.18', '1.19', '1.20', '1.21', '1.22', '1.23', '1.24', '1.25', '1.26', '1.27'],
14
13
  pinPairs: {
15
- '1.25': 'bitnami/nginx:1.25.3-debian-11-r1',
16
- '1.24': 'bitnami/nginx:1.24.0-debian-11-r153',
14
+ '1.27': 'bitnami/nginx:1.27.2-debian-12-r0',
15
+ '1.26': 'bitnami/nginx:1.26.2-debian-12-r6',
16
+ '1.25': 'bitnami/nginx:1.25.5-debian-12-r7',
17
+ '1.24': 'bitnami/nginx:1.24.0-debian-12-r25',
17
18
  '1.23': 'bitnami/nginx:1.23.4-debian-11-r24',
18
19
  '1.22': 'bitnami/nginx:1.22.1-debian-11-r66',
19
20
  '1.21': 'bitnami/nginx:1.21.6-debian-11-r21',
@@ -22,7 +23,6 @@ module.exports = {
22
23
  '1.18': 'bitnami/nginx:1.18.0-debian-10-r363',
23
24
  '1.17': 'bitnami/nginx:1.17.10-debian-10-r71',
24
25
  '1.16': 'bitnami/nginx:1.16.1-debian-10-r106',
25
- '1.14': 'bitnami/nginx:1.14.2-r125',
26
26
  },
27
27
  patchesSupported: true,
28
28
  confSrc: path.resolve(__dirname, '..', 'config'),
@@ -41,6 +41,8 @@ module.exports = {
41
41
  server: '/tmp/server.conf.lando',
42
42
  vhosts: '/tmp/vhosts.conf.lando',
43
43
  },
44
+ renderArch: 'amd64',
45
+ renderTemplate: '1.0.6',
44
46
  ssl: false,
45
47
  webroot: '.',
46
48
  },
@@ -48,21 +50,18 @@ module.exports = {
48
50
  builder: (parent, config) => class LandoNginx extends parent {
49
51
  constructor(id, options = {}) {
50
52
  options = _.merge({}, config, options);
51
-
52
- // compute the minor version
53
- const mv = _(options.version.split('.')).thru(versions => [versions[0], versions[1]].join('.')).value();
54
-
53
+ // Are we strapped?
54
+ if (_.get(options, '_app._config.isArmed', false)) options.renderArch = 'arm64';
55
55
  // Use different default for ssl
56
56
  if (options.ssl) options.defaultFiles.vhosts = 'default-ssl.conf.tpl';
57
57
 
58
- // If we are using the older 1.14 version we need different locations
59
- if (mv === '1.14') {
60
- options.finalFiles = _.merge({}, options.finalFiles, {
61
- server: '/opt/bitnami/extra/nginx/templates/nginx.conf.tpl',
62
- vhosts: '/opt/bitnami/extra/nginx/templates/default.conf.tpl',
63
- });
64
- options.defaultFiles = _.merge({}, options.defaultFiles, {server: 'nginx.conf.tpl'});
65
- }
58
+ // attempt to install the render-template
59
+ require('../utils/add-build-step')(
60
+ [`/helpers/install-render-template.sh ${options.renderTemplate} ${options.renderArch}`],
61
+ options._app,
62
+ options.name,
63
+ 'build_as_root_internal',
64
+ );
66
65
 
67
66
  // Get the config files final destination
68
67
  // @TODO: we cp the files instead of directly mounting them to
@@ -35,8 +35,14 @@ if [ -f "$PARAMS_SOURCE" ]; then
35
35
  fi
36
36
 
37
37
  # Replace LANDO_WEBROOT in the vhost template
38
- lando_info "Using sed to place correct webroot in vhost template"
39
- sed 's@{{LANDO_WEBROOT}}@'"${LANDO_WEBROOT}"'@g' "$VHOST_SOURCE" > /opt/bitnami/nginx/conf/vhosts/lando.conf
38
+ # Render the template if render-template exists
39
+ if [ -x "$(command -v render-template)" ]; then
40
+ render-template "$VHOST_SOURCE" > /opt/bitnami/nginx/conf/vhosts/lando.conf
41
+ else
42
+ lando_warn "Command render-template not found, using sed fallback"
43
+ lando_warn "If your template replaced more than LANDO_WEBROOT this is probably going to be an issue"
44
+ sed 's@{{LANDO_WEBROOT}}@'"${LANDO_WEBROOT}"'@g' "$VHOST_SOURCE" > /opt/bitnami/nginx/conf/vhosts/lando.conf
45
+ fi
40
46
 
41
47
  lando_info "Rendered template /tmp/vhosts.lando to /opt/bitnami/nginx/conf/vhosts/lando.conf"
42
48
  lando_debug $(cat /opt/bitnami/nginx/conf/vhosts/lando.conf)
@@ -1,7 +1,20 @@
1
1
  [build]
2
2
  base = "./"
3
- publish = "docs/.vuepress/dist"
4
- command = "yarn docs:build"
3
+ publish = "docs/.vitepress/dist"
4
+ command = "npm run docs:mvb"
5
+
6
+ [context.deploy-preview]
7
+ command = "npm run docs:build"
8
+
9
+ # https://github.com/munter/netlify-plugin-checklinks#readme
10
+ [[context.deploy-preview.plugins]]
11
+ package = "netlify-plugin-checklinks"
12
+ [context.deploy-preview.plugins.inputs]
13
+ todoPatterns = [ "load", "CHANGELOG.html", "x.com", "twitter.com", "/v/" ]
14
+ skipPatterns = [ ".rss", ".gif", ".jpg" ]
15
+ checkExternal = true
16
+
17
+
5
18
 
6
19
  # Sets our asset optimization
7
20
  [build.processing.css]
@@ -20,13 +33,22 @@
20
33
  for = "/images/*"
21
34
  [headers.values]
22
35
  Cache-Control = "public, max-age=31536000"
23
-
36
+
37
+ # pluginz
38
+ # https://github.com/netlify/netlify-plugin-lighthouse#readme
39
+ [[plugins]]
40
+ package = "@netlify/plugin-lighthouse"
41
+ [plugins.inputs.audits]
42
+ output_path = "reports/lighthouse.html"
43
+
44
+
45
+
24
46
  # We need this so preview environments and the base site look ok on their own
25
47
  [[redirects]]
26
48
  from = "/"
27
- to = "/nginx"
49
+ to = "/plugins/nginx"
28
50
  status = 200
29
51
  [[redirects]]
30
- from = "/nginx/*"
52
+ from = "/plugins/nginx/*"
31
53
  to = "/:splat"
32
- status = 200
54
+ status = 200
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lando/nginx",
3
3
  "description": "A Lando plugin that provides a tight integration with NGINX.",
4
- "version": "0.11.0",
4
+ "version": "1.3.0",
5
5
  "author": "Mike Pirog @pirog",
6
6
  "license": "GPL-3.0",
7
7
  "repository": "lando/nginx",
@@ -14,11 +14,8 @@
14
14
  "nginx"
15
15
  ],
16
16
  "engines": {
17
- "node": ">=16.0.0"
17
+ "node": ">=18.0.0"
18
18
  },
19
- "bundledDependencies": [
20
- "lodash"
21
- ],
22
19
  "lando": {},
23
20
  "main": "index.js",
24
21
  "nyc": {
@@ -36,21 +33,22 @@
36
33
  },
37
34
  "scripts": {
38
35
  "coverage": "nyc report --reporter=text-lcov | coveralls",
39
- "docs:dev": "vuepress dev docs --clean-cache --clean-temp",
40
- "docs:build": "vuepress build docs",
41
- "docs:lint": "eslint -c docs/.eslintrc.json --quiet docs/.vuepress",
42
- "lint": "eslint --quiet . && yarn docs:lint",
36
+ "docs:build": "LANDO_MVB_VERSION=$(git describe --tags --always --abbrev=1 --match=\"v[0-9].*\") vitepress build docs",
37
+ "docs:dev": "LANDO_MVB_VERSION=$(git describe --tags --always --abbrev=1 --match=\"v[0-9].*\") vitepress dev docs",
38
+ "docs:mvb": "npx mvb docs",
39
+ "docs:preview": "vitepress preview docs",
40
+ "lint": "eslint . --ext .js --ext .mjs ",
43
41
  "test:unit": "nyc --reporter=html --reporter=text mocha --timeout 5000 test/**/*.spec.js",
44
- "test:leia": "yarn leia \"examples/**/README.md\" -c 'Destroy tests' --stdin",
45
- "test": "yarn lint && yarn test:unit"
42
+ "test:leia": "leia \"examples/**/README.md\" -c 'Destroy tests' --stdin",
43
+ "test": "npm run lint && npm run test:unit"
46
44
  },
47
45
  "dependencies": {
48
46
  "lodash": "^4.17.21"
49
47
  },
50
48
  "devDependencies": {
51
49
  "@babel/eslint-parser": "^7.16.0",
52
- "@lando/leia": "^0.6.5",
53
- "@lando/vuepress-theme-default-plus": "1.0.0-beta.49",
50
+ "@lando/leia": "^1.0.0-beta.3",
51
+ "@lando/vitepress-theme-default-plus": "^1.1.0-beta.14",
54
52
  "chai": "^4.3.4",
55
53
  "command-line-test": "^1.0.10",
56
54
  "eslint": "^7.32.0",
@@ -58,6 +56,15 @@
58
56
  "eslint-plugin-vue": "^8.0.3",
59
57
  "mocha": "^9.1.2",
60
58
  "nyc": "^15.1.0",
61
- "vuepress": "2.0.0-beta.53"
59
+ "vitepress": "^1.3.4"
60
+ },
61
+ "bundledDependencies": [
62
+ "lodash"
63
+ ],
64
+ "dist": {
65
+ "integrity": "sha512-UTLWYmYRyUHpPa6vJSKgn9Xn0pxAM05VoUaH1TZR/P1oU+pXbCQ2Py5PgoSww91VdCyGTtHAptPGFOSMFzKNBA==",
66
+ "shasum": "52ea3ff458ea8d90e4e0c4fa45786a1149276168",
67
+ "filename": "@lando/nginx-1.3.0.tgz",
68
+ "unpackedSize": 1480364
62
69
  }
63
70
  }
@@ -0,0 +1,47 @@
1
+ #!/bin/sh
2
+
3
+ # allow this to run through without failing
4
+ # set -e
5
+
6
+ # args
7
+ version="${1:-"1.0.6"}"
8
+ # @TODO: swtich back to amd64?
9
+ arch="${2:-"arm64"}"
10
+
11
+ # if we have render-template then just exit
12
+ if [ "$(command -v render-template)" ]; then exit 0; fi
13
+
14
+ # computed
15
+ url="https://github.com/bitnami/render-template/releases/download/v${version}/render-template-linux-${arch}.tar.gz"
16
+ tmpdir="/tmp/render-template-${version}"
17
+
18
+ # prep
19
+ rm -rf "$tmpdir" && mkdir -p "$tmpdir"
20
+ mkdir -p /usr/local/bin
21
+
22
+ # there are different considerations around 1.0.0
23
+ if [ "$version" == "1.0.0" ] && [ "$arch" == "arm64" ]; then
24
+ curl -fsSL \
25
+ -o "${tmpdir}/render-template-linux-${arch}" \
26
+ "https://github.com/bitnami/render-template/releases/download/v1.0/render-template-arm64"
27
+
28
+ # amd situation
29
+ elif [ "$version" == "1.0.0" ] && [ "$arch" == "amd64" ]; then
30
+ curl -fsSL \
31
+ -o "${tmpdir}/render-template-linux-${arch}.zip" \
32
+ "https://github.com/bitnami/render-template/releases/download/v1.0/render-template.zip"
33
+ unzip "${tmpdir}/render-template-linux-${arch}.zip" -d "${tmpdir}"
34
+ mv "${tmpdir}/render-template" "${tmpdir}/render-template-linux-${arch}"
35
+
36
+ # everything else can go here though
37
+ else
38
+ curl -fsSL "$url" | tar -xz -C "$tmpdir"
39
+ fi
40
+
41
+ # mv & execute
42
+ mv "${tmpdir}/render-template-linux-${arch}" /usr/local/bin/render-template
43
+ chmod +x /usr/local/bin/render-template
44
+
45
+ # allows return fine
46
+ # this isnt great but is probably good enough to last us until the lando 4 config generator
47
+ exit 0
File without changes
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ // Modules
4
+ const _ = require('lodash');
5
+
6
+ /*
7
+ * Helper to get global deps
8
+ * @TODO: this looks pretty testable? should services have libs?
9
+ */
10
+ module.exports = (steps, app, name, step = 'build_internal', front = false) => {
11
+ const current = _.get(app, `config.services.${name}.${step}`, []);
12
+ const add = (front) ? _.flatten([steps, current]) : _.flatten([current, steps]);
13
+ _.set(app, `config.services.${name}.${step}`, _.uniq(add));
14
+ };