@lando/laravel 0.5.1 → 0.5.2
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/.nyc_output/{04d3f9d6-9ba8-4c77-8563-e177512662d5.json → 3eeb22fc-7faa-442f-8f98-79f3e8f66683.json} +0 -0
- package/.nyc_output/c4d4bc06-50fa-4e77-9070-4388aa5823bf.json +1 -0
- package/.nyc_output/processinfo/3eeb22fc-7faa-442f-8f98-79f3e8f66683.json +1 -0
- package/.nyc_output/processinfo/c4d4bc06-50fa-4e77-9070-4388aa5823bf.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +6 -0
- package/README.md +30 -50
- package/coverage/builder.js.html +27 -6
- package/coverage/index.html +7 -7
- package/coverage/init.js.html +1 -1
- package/netlify.toml +12 -5
- package/package.json +6 -7
- package/recipes/laravel/builder.js +8 -1
- package/.nyc_output/0b657367-6474-408c-81dd-4ab42bce4864.json +0 -1
- package/.nyc_output/processinfo/04d3f9d6-9ba8-4c77-8563-e177512662d5.json +0 -1
- package/.nyc_output/processinfo/0b657367-6474-408c-81dd-4ab42bce4864.json +0 -1
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"/home/runner/work/laravel/laravel/recipes/laravel/builder.js":{"path":"/home/runner/work/laravel/laravel/recipes/laravel/builder.js","statementMap":{"0":{"start":{"line":4,"column":10},"end":{"line":4,"column":27}},"1":{"start":{"line":9,"column":17},"end":{"line":24,"column":1}},"2":{"start":{"line":11,"column":2},"end":{"line":23,"column":3}},"3":{"start":{"line":12,"column":4},"end":{"line":16,"column":6}},"4":{"start":{"line":18,"column":9},"end":{"line":23,"column":3}},"5":{"start":{"line":19,"column":4},"end":{"line":22,"column":6}},"6":{"start":{"line":29,"column":0},"end":{"line":74,"column":2}},"7":{"start":{"line":49,"column":31},"end":{"line":73,"column":3}},"8":{"start":{"line":51,"column":6},"end":{"line":51,"column":45}},"9":{"start":{"line":53,"column":6},"end":{"line":59,"column":7}},"10":{"start":{"line":54,"column":8},"end":{"line":54,"column":57}},"11":{"start":{"line":55,"column":13},"end":{"line":59,"column":7}},"12":{"start":{"line":56,"column":8},"end":{"line":56,"column":57}},"13":{"start":{"line":58,"column":8},"end":{"line":58,"column":57}},"14":{"start":{"line":63,"column":6},"end":{"line":66,"column":8}},"15":{"start":{"line":67,"column":6},"end":{"line":69,"column":7}},"16":{"start":{"line":68,"column":8},"end":{"line":68,"column":57}},"17":{"start":{"line":71,"column":6},"end":{"line":71,"column":25}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":17},"end":{"line":9,"column":18}},"loc":{"start":{"line":9,"column":26},"end":{"line":24,"column":1}},"line":9},"1":{"name":"(anonymous_1)","decl":{"start":{"line":49,"column":11},"end":{"line":49,"column":12}},"loc":{"start":{"line":49,"column":31},"end":{"line":73,"column":3}},"line":49},"2":{"name":"(anonymous_2)","decl":{"start":{"line":50,"column":4},"end":{"line":50,"column":5}},"loc":{"start":{"line":50,"column":34},"end":{"line":72,"column":5}},"line":50}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":2},"end":{"line":23,"column":3}},"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":23,"column":3}},{"start":{"line":11,"column":2},"end":{"line":23,"column":3}}],"line":11},"1":{"loc":{"start":{"line":18,"column":9},"end":{"line":23,"column":3}},"type":"if","locations":[{"start":{"line":18,"column":9},"end":{"line":23,"column":3}},{"start":{"line":18,"column":9},"end":{"line":23,"column":3}}],"line":18},"2":{"loc":{"start":{"line":50,"column":20},"end":{"line":50,"column":32}},"type":"default-arg","locations":[{"start":{"line":50,"column":30},"end":{"line":50,"column":32}}],"line":50},"3":{"loc":{"start":{"line":53,"column":6},"end":{"line":59,"column":7}},"type":"if","locations":[{"start":{"line":53,"column":6},"end":{"line":59,"column":7}},{"start":{"line":53,"column":6},"end":{"line":59,"column":7}}],"line":53},"4":{"loc":{"start":{"line":55,"column":13},"end":{"line":59,"column":7}},"type":"if","locations":[{"start":{"line":55,"column":13},"end":{"line":59,"column":7}},{"start":{"line":55,"column":13},"end":{"line":59,"column":7}}],"line":55},"5":{"loc":{"start":{"line":67,"column":6},"end":{"line":69,"column":7}},"type":"if","locations":[{"start":{"line":67,"column":6},"end":{"line":69,"column":7}},{"start":{"line":67,"column":6},"end":{"line":69,"column":7}}],"line":67},"6":{"loc":{"start":{"line":67,"column":10},"end":{"line":67,"column":61}},"type":"binary-expr","locations":[{"start":{"line":67,"column":10},"end":{"line":67,"column":33}},{"start":{"line":67,"column":37},"end":{"line":67,"column":61}}],"line":67}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0},"f":{"0":0,"1":0,"2":0},"b":{"0":[0,0],"1":[0,0],"2":[0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0]},"all":true},"/home/runner/work/laravel/laravel/recipes/laravel/init.js":{"path":"/home/runner/work/laravel/laravel/recipes/laravel/init.js","statementMap":{"0":{"start":{"line":6,"column":0},"end":{"line":8,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":0},"f":{},"b":{},"all":true}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":1674,"argv":["/opt/hostedtoolcache/node/14.19.0/x64/bin/node","/home/runner/work/laravel/laravel/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/laravel/laravel","time":1648660486324,"ppid":1663,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/3eeb22fc-7faa-442f-8f98-79f3e8f66683.json","externalId":"","uuid":"3eeb22fc-7faa-442f-8f98-79f3e8f66683","files":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":1663,"argv":["/opt/hostedtoolcache/node/14.19.0/x64/bin/node","/home/runner/work/laravel/laravel/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/laravel/laravel","time":1648660485789,"ppid":1662,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/c4d4bc06-50fa-4e77-9070-4388aa5823bf.json","externalId":"","uuid":"c4d4bc06-50fa-4e77-9070-4388aa5823bf","files":["/home/runner/work/laravel/laravel/recipes/laravel/builder.js","/home/runner/work/laravel/laravel/recipes/laravel/init.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"processes":{"
|
|
1
|
+
{"processes":{"3eeb22fc-7faa-442f-8f98-79f3e8f66683":{"parent":null,"children":[]},"c4d4bc06-50fa-4e77-9070-4388aa5823bf":{"parent":null,"children":[]}},"files":{"/home/runner/work/laravel/laravel/recipes/laravel/builder.js":["c4d4bc06-50fa-4e77-9070-4388aa5823bf"],"/home/runner/work/laravel/laravel/recipes/laravel/init.js":["c4d4bc06-50fa-4e77-9070-4388aa5823bf"]},"externalIds":{}}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## IN DEVELOPMENT
|
|
2
2
|
|
|
3
|
+
## v0.5.2 - [March 30, 2022](https://github.com/lando/laravel/releases/tag/v0.5.2)
|
|
4
|
+
|
|
5
|
+
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).
|
|
6
|
+
|
|
7
|
+
* Adjusted the `laravel/installer` version to the corresponding PHP version [#9](https://github.com/lando/laravel/issues/9)
|
|
8
|
+
|
|
3
9
|
## v0.5.1 - [January 10, 2022](https://github.com/lando/laravel/releases/tag/v0.5.1)
|
|
4
10
|
|
|
5
11
|
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).
|
package/README.md
CHANGED
|
@@ -1,65 +1,44 @@
|
|
|
1
|
-
# Lando
|
|
1
|
+
# Laravel Lando Plugin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This is the _official_ [Lando](https://lando.dev) plugin for [Laravel](https://laravel.com). When installed it...
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
* Allows users to run `laravel` app
|
|
6
|
+
* Allows users to configure `php` version from `5.3` all the way to `8.1`
|
|
7
|
+
* Allows users to configure `webroot`
|
|
8
|
+
* Allows users to configure web server to (`apache` or `nginx`)
|
|
9
|
+
* Allows users to configure database backend to (`mariadb`, `mysql`, or `postgres`)
|
|
10
|
+
* Allows users to configure `composer`
|
|
11
|
+
* Allows users to configure a caching backend (`redis` or `memcached`)
|
|
12
|
+
* Allows users to configure `xdebug`
|
|
6
13
|
|
|
7
|
-
|
|
8
|
-
# With npm
|
|
9
|
-
npm install @lando/laravel
|
|
14
|
+
Of course, once a user is running their Laravel project with Lando they can take advantage of [all the other awesome development features](https://docs.lando.dev) Lando provides.
|
|
10
15
|
|
|
11
|
-
|
|
12
|
-
yarn add @lando/laravel
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Issues, Questions and Support
|
|
16
|
-
|
|
17
|
-
If you have a question or would like some community support we recommend you [join us on Slack](https://launchpass.com/devwithlando). Note that this is the Slack community for [Lando](https://lando.dev) but we are more than happy to help with this module as well!
|
|
18
|
-
|
|
19
|
-
If you'd like to report a bug or submit a feature request then please [use the issue queue](https://github.com/lando/laravel/issues/new/choose) in this repo.
|
|
20
|
-
|
|
21
|
-
## Changelog
|
|
22
|
-
|
|
23
|
-
We try to log all changes big and small in both [THE CHANGELOG](https://github.com/lando/laravel/blob/main/CHANGELOG.md) and the [release notes](https://github.com/lando/laravel/releases).
|
|
16
|
+
## Basic Usage
|
|
24
17
|
|
|
18
|
+
Add a `laravel` recipe to your Landofile
|
|
25
19
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
* Prefers [Yarn](https://classic.yarnpkg.com/lang/en/docs/install)
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
git clone https://github.com/lando/laravel.git && cd laravel
|
|
33
|
-
yarn install
|
|
20
|
+
```yaml
|
|
21
|
+
name: laravel-app
|
|
22
|
+
recipe: laravel
|
|
34
23
|
```
|
|
35
24
|
|
|
36
|
-
|
|
25
|
+
For more info you should check out the [docs](https://docs.lando.dev/laravel):
|
|
37
26
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
lando
|
|
27
|
+
* [Getting Started](https://docs.lando.dev/laravel/)
|
|
28
|
+
* [Configuration](https://docs.lando.dev/laravel/config.html)
|
|
29
|
+
* [Tooling](https://docs.lando.dev/laravel/tooling.html)
|
|
30
|
+
* [Examples](https://github.com/lando/laravel/tree/main/examples)
|
|
31
|
+
* [Development](https://docs.lando.dev/laravel/development.html)
|
|
42
32
|
|
|
43
|
-
|
|
44
|
-
lando node
|
|
45
|
-
lando yarn
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## Testing
|
|
33
|
+
## Issues, Questions and Support
|
|
49
34
|
|
|
50
|
-
|
|
51
|
-
# Lint the code
|
|
52
|
-
yarn lint
|
|
35
|
+
If you have a question or would like some community support we recommend you [join us on Slack](https://launchpass.com/devwithlando).
|
|
53
36
|
|
|
54
|
-
|
|
55
|
-
yarn test
|
|
56
|
-
```
|
|
37
|
+
If you'd like to report a bug or submit a feature request then please [use the issue queue](https://github.com/lando/laravel/issues/new/choose) in this repo.
|
|
57
38
|
|
|
58
|
-
##
|
|
39
|
+
## Changelog
|
|
59
40
|
|
|
60
|
-
|
|
61
|
-
yarn release
|
|
62
|
-
```
|
|
41
|
+
We try to log all changes big and small in both [THE CHANGELOG](https://github.com/lando/laravel/blob/main/CHANGELOG.md) and the [release notes](https://github.com/lando/laravel/releases).
|
|
63
42
|
|
|
64
43
|
## Contributors
|
|
65
44
|
|
|
@@ -69,6 +48,7 @@ yarn release
|
|
|
69
48
|
|
|
70
49
|
Made with [contributors-img](https://contrib.rocks).
|
|
71
50
|
|
|
72
|
-
## Other Resources
|
|
51
|
+
## Other Selected Resources
|
|
73
52
|
|
|
74
|
-
* [
|
|
53
|
+
* [LICENSE](https://github.com/lando/laravel/blob/main/LICENSE.md)
|
|
54
|
+
* [The best professional advice ever](https://www.youtube.com/watch?v=tkBVDh7my9Q)
|
package/coverage/builder.js.html
CHANGED
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/18</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/13</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/18</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -130,7 +130,14 @@
|
|
|
130
130
|
<a name='L65'></a><a href='#L65'>65</a>
|
|
131
131
|
<a name='L66'></a><a href='#L66'>66</a>
|
|
132
132
|
<a name='L67'></a><a href='#L67'>67</a>
|
|
133
|
-
<a name='L68'></a><a href='#L68'>68</a
|
|
133
|
+
<a name='L68'></a><a href='#L68'>68</a>
|
|
134
|
+
<a name='L69'></a><a href='#L69'>69</a>
|
|
135
|
+
<a name='L70'></a><a href='#L70'>70</a>
|
|
136
|
+
<a name='L71'></a><a href='#L71'>71</a>
|
|
137
|
+
<a name='L72'></a><a href='#L72'>72</a>
|
|
138
|
+
<a name='L73'></a><a href='#L73'>73</a>
|
|
139
|
+
<a name='L74'></a><a href='#L74'>74</a>
|
|
140
|
+
<a name='L75'></a><a href='#L75'>75</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
134
141
|
<span class="cline-any cline-neutral"> </span>
|
|
135
142
|
<span class="cline-any cline-neutral"> </span>
|
|
136
143
|
<span class="cline-any cline-no"> </span>
|
|
@@ -183,6 +190,13 @@
|
|
|
183
190
|
<span class="cline-any cline-no"> </span>
|
|
184
191
|
<span class="cline-any cline-neutral"> </span>
|
|
185
192
|
<span class="cline-any cline-no"> </span>
|
|
193
|
+
<span class="cline-any cline-no"> </span>
|
|
194
|
+
<span class="cline-any cline-no"> </span>
|
|
195
|
+
<span class="cline-any cline-no"> </span>
|
|
196
|
+
<span class="cline-any cline-neutral"> </span>
|
|
197
|
+
<span class="cline-any cline-no"> </span>
|
|
198
|
+
<span class="cline-any cline-neutral"> </span>
|
|
199
|
+
<span class="cline-any cline-neutral"> </span>
|
|
186
200
|
<span class="cline-any cline-neutral"> </span>
|
|
187
201
|
<span class="cline-any cline-neutral"> </span>
|
|
188
202
|
<span class="cline-any cline-no"> </span>
|
|
@@ -249,7 +263,14 @@ const getCache = <span class="cstat-no" title="statement not covered" ><span cla
|
|
|
249
263
|
<span class="fstat-no" title="function not covered" > co</span>nstructor(id, options = <span class="branch-0 cbranch-no" title="branch not covered" >{})</span> {
|
|
250
264
|
<span class="cstat-no" title="statement not covered" > options = _.merge({}, config, options);</span>
|
|
251
265
|
// Add the laravel cli installer command
|
|
252
|
-
<span class="cstat-no" title="statement not covered" > options.
|
|
266
|
+
<span class="cstat-no" title="statement not covered" > if (options.php >= 7.3) {</span>
|
|
267
|
+
<span class="cstat-no" title="statement not covered" > options.composer['laravel/installer'] = '^4.0.0';</span>
|
|
268
|
+
} else <span class="cstat-no" title="statement not covered" >if (options.php < 7.2) {</span>
|
|
269
|
+
<span class="cstat-no" title="statement not covered" > options.composer['laravel/installer'] = '^2.3.0';</span>
|
|
270
|
+
} else {
|
|
271
|
+
<span class="cstat-no" title="statement not covered" > options.composer['laravel/installer'] = '^3.2.0';</span>
|
|
272
|
+
}
|
|
273
|
+
|
|
253
274
|
// Add in artisan tooling
|
|
254
275
|
// @NOTE: does artisan always live one up of the webroot?
|
|
255
276
|
<span class="cstat-no" title="statement not covered" > options.tooling.artisan = {</span>
|
|
@@ -271,7 +292,7 @@ const getCache = <span class="cstat-no" title="statement not covered" ><span cla
|
|
|
271
292
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
272
293
|
Code coverage generated by
|
|
273
294
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
274
|
-
at
|
|
295
|
+
at Wed Mar 30 2022 17:14:46 GMT+0000 (Coordinated Universal Time)
|
|
275
296
|
</div>
|
|
276
297
|
<script src="prettify.js"></script>
|
|
277
298
|
<script>
|
package/coverage/index.html
CHANGED
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">0% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>0/
|
|
28
|
+
<span class='fraction'>0/19</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
33
|
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>0/
|
|
35
|
+
<span class='fraction'>0/13</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">0% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>0/
|
|
49
|
+
<span class='fraction'>0/19</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
85
85
|
</td>
|
|
86
86
|
<td data-value="0" class="pct low">0%</td>
|
|
87
|
-
<td data-value="
|
|
87
|
+
<td data-value="18" class="abs low">0/18</td>
|
|
88
88
|
<td data-value="0" class="pct low">0%</td>
|
|
89
|
-
<td data-value="
|
|
89
|
+
<td data-value="13" class="abs low">0/13</td>
|
|
90
90
|
<td data-value="0" class="pct low">0%</td>
|
|
91
91
|
<td data-value="3" class="abs low">0/3</td>
|
|
92
92
|
<td data-value="0" class="pct low">0%</td>
|
|
93
|
-
<td data-value="
|
|
93
|
+
<td data-value="18" class="abs low">0/18</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at
|
|
119
|
+
at Wed Mar 30 2022 17:14:46 GMT+0000 (Coordinated Universal Time)
|
|
120
120
|
</div>
|
|
121
121
|
<script src="prettify.js"></script>
|
|
122
122
|
<script>
|
package/coverage/init.js.html
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
97
|
-
at
|
|
97
|
+
at Wed Mar 30 2022 17:14:46 GMT+0000 (Coordinated Universal Time)
|
|
98
98
|
</div>
|
|
99
99
|
<script src="prettify.js"></script>
|
|
100
100
|
<script>
|
package/netlify.toml
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
[build]
|
|
2
2
|
base = "./"
|
|
3
|
-
publish = "
|
|
3
|
+
publish = "docs/.vuepress/dist"
|
|
4
4
|
command = "yarn docs:build"
|
|
5
|
-
# This sort of lets us build only on tagged commits to prod
|
|
6
|
-
# [context.production]
|
|
7
|
-
# ignore = "if git diff $CACHED_COMMIT_REF $COMMIT_REF ./package.json | grep - | grep version && git diff $CACHED_COMMIT_REF $COMMIT_REF ./package.json | grep + | grep version; then exit 1; else exit 0; fi"
|
|
8
5
|
|
|
9
6
|
# Sets our asset optimization
|
|
10
7
|
[build.processing.css]
|
|
@@ -22,4 +19,14 @@
|
|
|
22
19
|
[[headers]]
|
|
23
20
|
for = "/images/*"
|
|
24
21
|
[headers.values]
|
|
25
|
-
|
|
22
|
+
Cache-Control = "public, max-age=31536000"
|
|
23
|
+
|
|
24
|
+
# We need this so preview environments and the base site look ok on their own
|
|
25
|
+
[[redirects]]
|
|
26
|
+
from = "/"
|
|
27
|
+
to = "/laravel"
|
|
28
|
+
status = 200
|
|
29
|
+
[[redirects]]
|
|
30
|
+
from = "/laravel/*"
|
|
31
|
+
to = "/:splat"
|
|
32
|
+
status = 200
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lando/laravel",
|
|
3
3
|
"description": "A Lando plugin that provides a tight integration with Laravel.",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.2",
|
|
5
5
|
"author": "John Ouellet @labboy0276",
|
|
6
6
|
"license": "GPL-3.0",
|
|
7
7
|
"repository": "lando/laravel",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"coverage": "nyc report --reporter=text-lcov | coveralls",
|
|
34
|
-
"docs:dev": "vuepress dev docs",
|
|
35
|
-
"docs:build": "vuepress build docs
|
|
34
|
+
"docs:dev": "vuepress dev docs --clean-cache --clean-temp",
|
|
35
|
+
"docs:build": "vuepress build docs",
|
|
36
36
|
"docs:lint": "eslint -c docs/.eslintrc.json --quiet docs/.vuepress",
|
|
37
37
|
"lint": "eslint --quiet . && yarn docs:lint",
|
|
38
38
|
"release": "bump --prompt --tag --all --push",
|
|
@@ -42,13 +42,12 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"js-yaml": "^3.4.6",
|
|
45
|
-
"lodash": "^4.17.21"
|
|
46
|
-
"tar": "^6.1.11"
|
|
45
|
+
"lodash": "^4.17.21"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
48
|
"@babel/eslint-parser": "^7.16.0",
|
|
50
49
|
"@lando/leia": "^0.6.4",
|
|
51
|
-
"@lando/vuepress-theme-
|
|
50
|
+
"@lando/vuepress-theme-default-plus": "1.0.0-beta.30",
|
|
52
51
|
"chai": "^4.3.4",
|
|
53
52
|
"command-line-test": "^1.0.10",
|
|
54
53
|
"eslint": "^7.32.0",
|
|
@@ -57,6 +56,6 @@
|
|
|
57
56
|
"mocha": "^9.1.2",
|
|
58
57
|
"nyc": "^15.1.0",
|
|
59
58
|
"version-bump-prompt": "^4.2.1",
|
|
60
|
-
"vuepress": "^2.0.0-beta.
|
|
59
|
+
"vuepress": "^2.0.0-beta.35"
|
|
61
60
|
}
|
|
62
61
|
}
|
|
@@ -50,7 +50,14 @@ module.exports = {
|
|
|
50
50
|
constructor(id, options = {}) {
|
|
51
51
|
options = _.merge({}, config, options);
|
|
52
52
|
// Add the laravel cli installer command
|
|
53
|
-
options.
|
|
53
|
+
if (options.php >= 7.3) {
|
|
54
|
+
options.composer['laravel/installer'] = '^4.0.0';
|
|
55
|
+
} else if (options.php < 7.2) {
|
|
56
|
+
options.composer['laravel/installer'] = '^2.3.0';
|
|
57
|
+
} else {
|
|
58
|
+
options.composer['laravel/installer'] = '^3.2.0';
|
|
59
|
+
}
|
|
60
|
+
|
|
54
61
|
// Add in artisan tooling
|
|
55
62
|
// @NOTE: does artisan always live one up of the webroot?
|
|
56
63
|
options.tooling.artisan = {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"/home/runner/work/laravel/laravel/recipes/laravel/builder.js":{"path":"/home/runner/work/laravel/laravel/recipes/laravel/builder.js","statementMap":{"0":{"start":{"line":4,"column":10},"end":{"line":4,"column":27}},"1":{"start":{"line":9,"column":17},"end":{"line":24,"column":1}},"2":{"start":{"line":11,"column":2},"end":{"line":23,"column":3}},"3":{"start":{"line":12,"column":4},"end":{"line":16,"column":6}},"4":{"start":{"line":18,"column":9},"end":{"line":23,"column":3}},"5":{"start":{"line":19,"column":4},"end":{"line":22,"column":6}},"6":{"start":{"line":29,"column":0},"end":{"line":67,"column":2}},"7":{"start":{"line":49,"column":31},"end":{"line":66,"column":3}},"8":{"start":{"line":51,"column":6},"end":{"line":51,"column":45}},"9":{"start":{"line":53,"column":6},"end":{"line":53,"column":50}},"10":{"start":{"line":56,"column":6},"end":{"line":59,"column":8}},"11":{"start":{"line":60,"column":6},"end":{"line":62,"column":7}},"12":{"start":{"line":61,"column":8},"end":{"line":61,"column":57}},"13":{"start":{"line":64,"column":6},"end":{"line":64,"column":25}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":9,"column":17},"end":{"line":9,"column":18}},"loc":{"start":{"line":9,"column":26},"end":{"line":24,"column":1}},"line":9},"1":{"name":"(anonymous_1)","decl":{"start":{"line":49,"column":11},"end":{"line":49,"column":12}},"loc":{"start":{"line":49,"column":31},"end":{"line":66,"column":3}},"line":49},"2":{"name":"(anonymous_2)","decl":{"start":{"line":50,"column":4},"end":{"line":50,"column":5}},"loc":{"start":{"line":50,"column":34},"end":{"line":65,"column":5}},"line":50}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":2},"end":{"line":23,"column":3}},"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":23,"column":3}},{"start":{"line":11,"column":2},"end":{"line":23,"column":3}}],"line":11},"1":{"loc":{"start":{"line":18,"column":9},"end":{"line":23,"column":3}},"type":"if","locations":[{"start":{"line":18,"column":9},"end":{"line":23,"column":3}},{"start":{"line":18,"column":9},"end":{"line":23,"column":3}}],"line":18},"2":{"loc":{"start":{"line":50,"column":20},"end":{"line":50,"column":32}},"type":"default-arg","locations":[{"start":{"line":50,"column":30},"end":{"line":50,"column":32}}],"line":50},"3":{"loc":{"start":{"line":60,"column":6},"end":{"line":62,"column":7}},"type":"if","locations":[{"start":{"line":60,"column":6},"end":{"line":62,"column":7}},{"start":{"line":60,"column":6},"end":{"line":62,"column":7}}],"line":60},"4":{"loc":{"start":{"line":60,"column":10},"end":{"line":60,"column":61}},"type":"binary-expr","locations":[{"start":{"line":60,"column":10},"end":{"line":60,"column":33}},{"start":{"line":60,"column":37},"end":{"line":60,"column":61}}],"line":60}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"f":{"0":0,"1":0,"2":0},"b":{"0":[0,0],"1":[0,0],"2":[0],"3":[0,0],"4":[0,0]},"all":true},"/home/runner/work/laravel/laravel/recipes/laravel/init.js":{"path":"/home/runner/work/laravel/laravel/recipes/laravel/init.js","statementMap":{"0":{"start":{"line":6,"column":0},"end":{"line":8,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":0},"f":{},"b":{},"all":true}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":1672,"argv":["/opt/hostedtoolcache/node/14.18.2/x64/bin/node","/home/runner/work/laravel/laravel/node_modules/.bin/mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/laravel/laravel","time":1641833322908,"ppid":1661,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/04d3f9d6-9ba8-4c77-8563-e177512662d5.json","externalId":"","uuid":"04d3f9d6-9ba8-4c77-8563-e177512662d5","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":1661,"argv":["/opt/hostedtoolcache/node/14.18.2/x64/bin/node","/home/runner/work/laravel/laravel/node_modules/.bin/nyc","--reporter=html","--reporter=text","mocha","--timeout","5000","test/**/*.spec.js"],"execArgv":[],"cwd":"/home/runner/work/laravel/laravel","time":1641833322414,"ppid":1660,"coverageFilename":"/home/runner/work/laravel/laravel/.nyc_output/0b657367-6474-408c-81dd-4ab42bce4864.json","externalId":"","uuid":"0b657367-6474-408c-81dd-4ab42bce4864","files":["/home/runner/work/laravel/laravel/recipes/laravel/builder.js","/home/runner/work/laravel/laravel/recipes/laravel/init.js"]}
|