Install dependencies
-
Fork and clone this repo.
git clone git@github.com:<your-github-handle>/ember-intl.git
-
Change directory.
cd ember-intl
-
Use
pnpm
to install dependencies.pnpm install
Run the demo app
-
Once dependencies have been installed, you can run the demo app.
# From the workspace root pnpm start
-
Open the app at http://localhost:4200.
Lint files
-
When you write code, please check that it meets the linting rules.
# From the workspace root pnpm lint
-
You can run
lint:fix
to automatically fix linting errors.# From the workspace root pnpm lint:fix
Run tests
-
When you write code, please check that all tests continue to pass.
# From the workspace root pnpm test
Add changeset to pull request
-
To record how a pull request affects packages, you will want to add a changeset.
The changeset provides a summary of the code change. It also describes how package versions should be updated (major, minor, or patch) as a result of the code change.
# From the workspace root pnpm changeset
Publish packages (for admins)
-
Generate a personal access token in GitHub, with default values for scopes (none selected).
-
Run the
release:changelog
script. This removes changesets, updates the package versions, and updates theCHANGELOG
's.# From the workspace root GITHUB_TOKEN=<YOUR_PERSONAL_ACCESS_TOKEN> pnpm release:changelog
-
The workspace root's version (e.g.
0.1.3
) is more of an identifier than a (semantic) version. We will use it to name the tag that will be published.In the root
package.json
, update the version following the "highest-version" formula:workspace root version = max( max(all package versions), workspace root version + 0.0.1, );
-
Create a tag and provide release notes. The tag name should match the package version, prefixed by the letter
v
. For example,v1.0.0
. -
Publish the package.
# From the workspace root pnpm release:package