@olenbetong/appframe-cli

Utility functions for AppframeWeb

Usage no npm install needed!

<script type="module">
  import olenbetongAppframeCli from 'https://cdn.skypack.dev/@olenbetong/appframe-cli';
</script>

README

Appframe CLI

Note that this project changed its scope completely in version 3, and none of the functionality in previous versions are available anymore.

Installation

To add to the current project run this command

npm install --save-dev @olenbetong/appframe-cli

Commands

deploy-cra

In a create-react-app project with @olenbetong/react-scripts, run this command after building to deploy the application:

npx af deploy-cra

generate-data-object

To generate data object or procedure definitions for data API resources, run this command:

npx af generate-data-object -r <resource-name>

prepare-bundle

For projects that should be uploaded to AF Bundles, run this command to pack the project and upload it:

npx af prepare-bundle

This command assumes the bundle has the same name as the name property in package.json.

publish-bundle

When a bundle has been uploaded, run this command to deploy it from dev.obet.no to test.obet.no. It will only be downloaded on the production server, not applied.

npx af publish-bundle

publish-to-prod

This command publishes the article on dev.obet.no and deploys it to test.obet.no. It is not applied only the productions server, only downloaded.

The article ID and hostname is read from the appframe property in package.json.

npx af publish-to-prod