@adalo/cli
v1.0.9
Published
CLI tool to bundle & distribute Proton libraries
Maintainers
Keywords
Readme
Adalo CLI
Dev Server
The dev server allows you to develop components locally, and test them in the Adalo editor, without having to publish your packages.
Dev Server Usage
From your component repo, run:
npx adalo devThen from the editor, reload the page, and look under the "Add Layer" menu. You should see your local components available to add to your project.
Note: if you want to use a different dev-server than the default one, set ADALO_DEV_SERVER=https://...
Publishing for New React Native
npx adalo publish --new-react-nativeDeveloping and Publishing the CLI
If you add a new command to the CLI, but haven't yet published the update to NPM, you can invoke the command from inside the cli repository like so:
node src/cli.js your-command-nameOnce you are happy with the changes, open the package.json file and bump the version number. Then login to the adalodev NPM account (credentials in password manager) via the NPM CLI and run this command from inside the repository:
npm publishIf you receive an error about 2FA/granular tokens, this means you haven't yet created and saved an appropriately configured token for publishing. Login to the adalodev account, go to Access Tokens, and create a new read/write token scoped to the @adalo/cli package and having access to the @adalo organization. Make sure bypass 2FA is enabled. Then run this command before running npm publish:
npm config set //registry.npmjs.org/:_authToken=YOUR_NPM_TOKEN_GOES_HERE