Host application to showcase wmfnext-shell.
A live example of this application is hosted on Netlify.
- Installation
- Start developing
- Publish the application
- Release the packages
- Available modules
- Other commands
This project use Yarn workspace. Therefore, you must install Yarn:
choco install yarn
For more options to install Yarn, view https://yarnpkg.com/lang/en/docs/install/#windows-stable.
To install the project, open a terminal at the root of the workspace and execute the following command:
yarn install-dev
To ease local development symlinks to shell packages are automatically created at installation.
Open a terminal in VSCode and execute the following command at the root of the workspace:
yarn dev
To develop the static module in isolation, Open a terminal in VSCode and execute the following commands at the root of the workspace:
cd packages/static-module-1
yarn dev-local
Push a commit and the application will be automatically deployed on Netlify.
Releasing the packages includes several steps:
- Compile the packages code for production
- Identifies packages that have been updated since the previous release (Read the Lerna section.)
- Bump the version of the identified packages
- Modifies package metadata to reflect new release
- Publish the packages to npm
- Push those changes to Git with a tag
- Create a new Github release associated to the tag created previously
Fortunately, this is all automated with a few commands!
Before you release, make sure you are in the master
branch, have write access to every selected npm packages and that you are logged in to npm.
To release, open a terminal at the root of the workspace and execute the following commands:
yarn new-version
yarn release
yarn push-release <VERSION> (e.g. yarn push-release 22.0.2)
Ex:
yarn new-version
yarn release
yarn push-release 19.0.1
After you released the packages, create a Github release for the Git annotated tag [@sharegate/orbit-ui package version] created earlier by the push-release
command and list all the changes that has been published.
Don't forget to publish the release.
- The static module "static-1" is automatically deployed with the host application.
- The remote module "remote-1" is available in the wmfnext-remote-1 repository.
yarn build
yarn clean
yarn link-pkg
yarn reset