@lando/symfony 1.6.0 → 1.6.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/.lando.yml CHANGED
@@ -1,14 +1,24 @@
1
- name: lando-symfony-plugin
1
+ name: docs.symfony
2
+ proxy:
3
+ cli:
4
+ - docs.symfony.lndo.site:5173
2
5
  services:
3
- node:
4
- type: node:18
5
- build:
6
- - npm 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
19
+ service: cli
13
20
  npm:
14
- service: node
21
+ service: cli
22
+ vitepress:
23
+ service: cli
24
+ cmd: npx vitepress
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":2275,"argv":["/opt/hostedtoolcache/node/18.20.4/x64/bin/node","/home/runner/work/symfony/symfony/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/symfony/symfony","time":1725645153463,"ppid":2264,"coverageFilename":"/home/runner/work/symfony/symfony/.nyc_output/1f8196a2-03bf-4d5c-ace0-a7b7d17d4977.json","externalId":"","uuid":"1f8196a2-03bf-4d5c-ace0-a7b7d17d4977","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":2264,"argv":["/opt/hostedtoolcache/node/18.20.4/x64/bin/node","/home/runner/work/symfony/symfony/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/symfony/symfony","time":1725645153308,"ppid":2263,"coverageFilename":"/home/runner/work/symfony/symfony/.nyc_output/5e7aa96e-5e23-428b-804c-a7499bf5cfe2.json","externalId":"","uuid":"5e7aa96e-5e23-428b-804c-a7499bf5cfe2","files":[]}
@@ -1 +1 @@
1
- {"processes":{"4ed427dc-02b6-43ca-b0c2-f579149c83dc":{"parent":null,"children":[]},"6f0c983e-dc2f-4a49-82b2-0305c8fca917":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
1
+ {"processes":{"1f8196a2-03bf-4d5c-ace0-a7b7d17d4977":{"parent":null,"children":[]},"5e7aa96e-5e23-428b-804c-a7499bf5cfe2":{"parent":null,"children":[]}},"files":{},"externalIds":{}}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  ## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})
2
2
 
3
+ ## v1.6.1 - [September 6, 2024](https://github.com/lando/symfony/releases/tag/v1.6.1)
4
+
5
+ ## Bug Fixes
6
+
7
+ * Fixed bug causing default `proxy` settings to be clobbered by user specified ones
8
+
9
+ ## Internal
10
+
11
+ * Updated DevOps to use new `lando exec`
12
+ * Updated `ubuntu` test runners to `24.04`
13
+
3
14
  ## v1.6.0 - [May 31, 2024](https://github.com/lando/symfony/releases/tag/v1.6.0)
4
15
 
5
16
  * Use mysql command for MariaDB 10.3.x and below [#52](https://github.com/lando/symfony/issues/52)
@@ -57,6 +57,18 @@ const getServices = options => ({
57
57
  },
58
58
  });
59
59
 
60
+ /*
61
+ * Helper to get proxy config
62
+ */
63
+ const getProxy = (options, proxyService = 'appserver') => {
64
+ // get any intial proxy stuff for proxyService
65
+ const urls = _.get(options, `_app.config.proxy.${proxyService}`, []);
66
+ // add
67
+ urls.push(`${options.app}.${options._app._config.domain}`);
68
+ // return
69
+ return {[proxyService]: _.uniq(_.compact(urls))};
70
+ };
71
+
60
72
  /*
61
73
  * Helper to get service config
62
74
  */
@@ -262,18 +274,20 @@ module.exports = {
262
274
  service: 'appserver',
263
275
  cmd: `php /app/${options.webroot}/../bin/console`,
264
276
  };
277
+
265
278
  if (_.has(options, 'cache')) options.services.cache = getCache(options.cache);
266
279
 
267
- // Rebase on top of any default config we might already have
268
- options.defaultFiles = _.merge({}, getConfigDefaults(_.cloneDeep(options)), options.defaultFiles);
269
- options.services = _.merge({}, getServices(options), options.services);
270
- options.tooling = _.merge({}, getTooling(options), options.tooling);
271
280
  // Switch the proxy if needed
272
281
  if (!_.has(options, 'proxyService')) {
273
282
  if (_.startsWith(options.via, 'nginx')) options.proxyService = 'appserver_nginx';
274
283
  else if (_.startsWith(options.via, 'apache')) options.proxyService = 'appserver';
275
284
  }
276
- options.proxy = _.set(options.proxy, options.proxyService, [`${options.app}.${options._app._config.domain}`]);
285
+
286
+ // Rebase on top of any default config we might already have
287
+ options.defaultFiles = _.merge({}, getConfigDefaults(_.cloneDeep(options)), options.defaultFiles);
288
+ options.proxy = _.merge({}, getProxy(options, options.proxyService), options.proxy);
289
+ options.services = _.merge({}, getServices(options), options.services);
290
+ options.tooling = _.merge({}, getTooling(options), options.tooling);
277
291
 
278
292
  // Send downstream
279
293
  super(id, options);
@@ -86,7 +86,7 @@
86
86
  <div class='footer quiet pad2 space-top1 center small'>
87
87
  Code coverage generated by
88
88
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
89
- at 2024-05-31T20:18:48.695Z
89
+ at 2024-09-06T17:52:33.653Z
90
90
  </div>
91
91
  <script src="prettify.js"></script>
92
92
  <script>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lando/symfony",
3
3
  "description": "A Lando plugin that provides a tight integration with Symfony.",
4
- "version": "1.6.0",
4
+ "version": "1.6.1",
5
5
  "author": "Mike Pirog @pirog",
6
6
  "license": "GPL-3.0",
7
7
  "repository": "lando/symfony",
@@ -79,9 +79,9 @@
79
79
  "lodash"
80
80
  ],
81
81
  "dist": {
82
- "integrity": "sha512-B8Phc+St499Q95K7DX4PZBDb9p58JPP90EXhMCEVJsnKGT2TXU/lRHBUIuJpfwTL4GfYJ2E8kOKXNJl7sAXyXw==",
83
- "shasum": "0a5ca7d528be49179ae9302bfde1d0f5cfcd9d1f",
84
- "filename": "lando-symfony-1.6.0.tgz",
85
- "unpackedSize": 16654474
82
+ "integrity": "sha512-B/e3cuLDQYWr+2HH/wN10KIc79CkwEWWXsqWHNJ8LEWgLIMNLfZU0aT6odXmbFzEdNNqhkn9nKysOzYACkayfQ==",
83
+ "shasum": "797649d50c7e058108ba464643a4ebcd67da9b25",
84
+ "filename": "lando-symfony-1.6.1.tgz",
85
+ "unpackedSize": 16655247
86
86
  }
87
87
  }
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1841,"argv":["/opt/hostedtoolcache/node/18.20.3/x64/bin/node","/home/runner/work/symfony/symfony/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/symfony/symfony","time":1717186728340,"ppid":1840,"coverageFilename":"/home/runner/work/symfony/symfony/.nyc_output/4ed427dc-02b6-43ca-b0c2-f579149c83dc.json","externalId":"","uuid":"4ed427dc-02b6-43ca-b0c2-f579149c83dc","files":[]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":1852,"argv":["/opt/hostedtoolcache/node/18.20.3/x64/bin/node","/home/runner/work/symfony/symfony/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/symfony/symfony","time":1717186728503,"ppid":1841,"coverageFilename":"/home/runner/work/symfony/symfony/.nyc_output/6f0c983e-dc2f-4a49-82b2-0305c8fca917.json","externalId":"","uuid":"6f0c983e-dc2f-4a49-82b2-0305c8fca917","files":[]}