-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Dial fully for `lando update` * Update to node 18 * Fix some script-generated issues. * First stab at new directory structure and adding in lamp-y builders * Feed linter. * Try clearing lando. * Get rid of erroneous builder.js/init. * Set confsrc. * Update dependencies. * Correct path to local joomla.
- Loading branch information
1 parent
adb6ada
commit 319cccd
Showing
29 changed files
with
9,715 additions
and
4,487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
name: lando-joomla-plugin | ||
services: | ||
node: | ||
type: node:14 | ||
type: node:18 | ||
build: | ||
- yarn install | ||
- npm install | ||
scanner: false | ||
ssl: false | ||
sslExpose: false | ||
tooling: | ||
node: | ||
service: node | ||
yarn: | ||
npm: | ||
service: node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16 | ||
18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
const LandoMariadb = require('./../node_modules/@lando/mariadb/builders/mariadb.js'); | ||
|
||
// Builder | ||
module.exports = { | ||
name: 'joomla-mariadb', | ||
parent: '_service', | ||
builder: (parent, config) => class JoomlaMariadb extends LandoMariadb.builder(parent, LandoMariadb.config) { | ||
constructor(id, options = {}) { | ||
super(id, _.merge({}, config, options), {services: _.set({}, options.name)}); | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
const LandoMysql = require('./../node_modules/@lando/mysql/builders/mysql.js'); | ||
|
||
// Builder | ||
module.exports = { | ||
name: 'joomla-mysql', | ||
parent: '_service', | ||
builder: (parent, config) => class JoomlaMysql extends LandoMysql.builder(parent, LandoMysql.config) { | ||
constructor(id, options = {}) { | ||
super(id, _.merge({}, config, options), {services: _.set({}, options.name)}); | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
const PhpNginx = require('@lando/php/builders/php-nginx.js'); | ||
|
||
// Builder | ||
module.exports = { | ||
name: 'joomla-nginx', | ||
parent: '_webserver', | ||
config: { | ||
version: '1.25', | ||
}, | ||
builder: (parent, config) => class JoomlaNginx extends PhpNginx.builder(parent, PhpNginx.config) { | ||
constructor(id, options = {}) { | ||
super(id, _.merge({}, config, options), {services: _.set({}, options.name)}); | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const landoPhpPath = path.join(__dirname, '../node_modules/@lando/php'); | ||
const LandoPhp = require(`${landoPhpPath}/builders/php.js`); | ||
|
||
const loadScripts = options => { | ||
const lando = _.get(options, '_app._lando'); | ||
// Move the script to the confDir and make executable. | ||
if (fs.existsSync(path.join(landoPhpPath, 'scripts'))) { | ||
const confDir = path.join(lando.config.userConfRoot, 'scripts'); | ||
const dest = lando.utils.moveConfig(path.join(landoPhpPath, 'scripts'), confDir); | ||
lando.utils.makeExecutable(fs.readdirSync(dest), dest); | ||
lando.log.debug('automoved scripts from %s to %s and set to mode 755', | ||
path.join(landoPhpPath, 'scripts'), confDir); | ||
} | ||
}; | ||
|
||
// Builder | ||
module.exports = { | ||
name: 'joomla-php', | ||
parent: '_appserver', | ||
builder: (parent, config) => class JoomlaPhp extends LandoPhp.builder(parent, LandoPhp.config) { | ||
constructor(id, options = {}, factory) { | ||
loadScripts(options); | ||
options.nginxServiceType = 'joomla-nginx'; | ||
super(id, _.merge({}, config, options), factory); | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
const _ = require('lodash'); | ||
const LandoPostgres = require('./../node_modules/@lando/postgres/builders/postgres.js'); | ||
|
||
// Builder | ||
module.exports = { | ||
name: 'joomla-postgres', | ||
parent: '_service', | ||
builder: (parent, config) => class JoomlaPostgres extends LandoPostgres.builder(parent, LandoPostgres.config) { | ||
constructor(id, options = {}) { | ||
super(id, _.merge({}, config, options), {services: _.set({}, options.name)}); | ||
}; | ||
}, | ||
}; |
Oops, something went wrong.