Gluestack V2 Plugin Development
Important Notes:
- You'll need node version >= 18 & < 19
- Please checkout to the develop branch to access latest (beta) version
- Please do not use Yarn or PNPM, we will only use npm as a package manager in Gluestack's v2
Install npm dependencies
$ npm run install:all;
Create plugin builds (in production mode)
$ npm run build:plugins;
Create plugin builds (in development mode)
$ npm run watch:cli;
$ npm run watch:develop;
$ npm run watch:web;
Access Glue
$ node glue
Usage: glue [options] [command]
Gluestack V2 Framework CLI
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
add|install <plugin-name> <instance-name> installs a gluestack plugin, use help for more info on subcommands
instance:list Prints the list of installed plugin instances
plugin:list Prints the list of available plugins
plugin:init Initializes the gluestack app as a plugin
watch Watches the instances for changes and restarts them
help [command] display help for command
Create Gluestack Project Build
$ node glue build
Run Gluestack Project Build
$ cd .glue/seal/scripts
$ npm install
$ npm run build
$ node build/index run:service website --platform docker --ports 3000:9000
$ node build/index run:service website --platform local
npm run install:all
npm run build:plugins
node glue add @gluestack-v2/glue-plugin-develop develop
node glue add @gluestack-v2/glue-plugin-web web
node glue add @gluestack-v2/glue-plugin-service-sdk sdk
node glue add @gluestack-v2/glue-plugin-service-gateway gateway
node glue add @gluestack-v2/glue-plugin-functions functions