Michael-Gibbons / OSB

An Opinionated Full Stack Shopify App Boiler
MIT License
19 stars 2 forks source link

Add addon infrastructure #7

Closed Michael-Gibbons closed 1 year ago

Michael-Gibbons commented 1 year ago

Give access to

Michael-Gibbons commented 1 year ago

const results = fs.readdirSync(folderPath) const folders = results.filter(res => fs.lstatSync(path.resolve(folderPath, res)).isDirectory())

Michael-Gibbons commented 1 year ago

tentative addon structure


ADDON REPO STRUCTURE

backend ... project files register.js package.json frontend ... project files register.js package.json cli ... project files register.js package.json

package.json


INSTALL


shallow clone addon repo in tmp dir find each directory copy/paste dirs into correct locations delete tmp dir install deps


INSTALLED ADDON STRUCTURE

backend addons addon-name ... project files register.js frontend addons addon-name ... project files register.js cli addons addon-name ... project files register.js

Michael-Gibbons commented 1 year ago

Done, finally