-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mark Skelton
committed
Nov 8, 2021
1 parent
f40deef
commit 32da424
Showing
18 changed files
with
3,548 additions
and
5,874 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'i18next-async-backend': patch | ||
--- | ||
|
||
Update docs to reflect migration to changesets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Yarn auto-generated files | ||
.yarn/ | ||
.yarnrc.yml | ||
|
||
# Changelogs are managed by changesets | ||
CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true | ||
"singleQuote": true, | ||
"proseWrap": "always" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# How to Contribute | ||
# Contributing | ||
|
||
We'd love to accept your patches and contributions to this project. There are | ||
just a few small guidelines you need to follow. | ||
|
@@ -10,10 +10,38 @@ use GitHub pull requests for this purpose. Consult | |
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more | ||
information on using pull requests. | ||
|
||
## Tips | ||
### Tips | ||
|
||
- Smaller changes are easier to review | ||
- Give the PR a meaningful title and description with context surrounding | ||
the changes | ||
- To close an issue automatically after a PR is merged, use keywords | ||
"fix", "close", or "resolve" in the PR description, e.g. fix #1337. | ||
- Give the PR a meaningful title and description with context surrounding the | ||
changes | ||
- To close an issue automatically after a PR is merged, use keywords "fix", | ||
"close", or "resolve" in the PR description, e.g. fix #1337. | ||
|
||
## Changesets | ||
|
||
This project uses [changesets](https://github.com/atlassian/changesets) for | ||
versioning and publishing packages. Changesets allows contributors to specify | ||
how changes should be released without having to manually edit changelogs or | ||
package.json files. | ||
|
||
When making a change that requires a release, run the `yarn changeset` command | ||
and follow the prompts to specify the semver bump and the change notes. | ||
|
||
```sh | ||
yarn changeset | ||
``` | ||
|
||
After running this command, a new markdown file will be created in the | ||
`.changeset` folder. These files should be pushed to your branch and if you make | ||
a mistake, you can amend them at any time. | ||
|
||
### Snapshot releases | ||
|
||
When commits are pushed to a branch, snapshot releases will be published. | ||
Snapshot releases are not meant for production use, but can be installed in your | ||
application for testing purposes. | ||
|
||
```sh | ||
yarn add [email protected] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
{ | ||
"name": "i18next-async-backend", | ||
"version": "0.0.0-semantically-released", | ||
"version": "1.0.1", | ||
"description": "i18next backend which loads resources via promises. Useful when loading resources via dynamic imports.", | ||
"author": "Widen", | ||
"license": "ISC", | ||
"packageManager": "[email protected]", | ||
"repository": "github:Widen/i18next-async-backend", | ||
"homepage": "https://github.com/Widen/i18next-async-backend#readme", | ||
"bugs": { | ||
|
@@ -24,7 +25,7 @@ | |
"scripts": { | ||
"lint": "eslint .", | ||
"test": "jest", | ||
"release": "semantic-release" | ||
"release": "./scripts/release.sh" | ||
}, | ||
"release": { | ||
"branches": [ | ||
|
@@ -35,15 +36,15 @@ | |
"i18next": ">=20" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^26.0.22", | ||
"@typescript-eslint/eslint-plugin": "^4.19.0", | ||
"@typescript-eslint/parser": "^4.19.0", | ||
"eslint": "^7.22.0", | ||
"i18next": "^20.1.0", | ||
"jest": "^26.6.3", | ||
"prettier": "^2.2.1", | ||
"semantic-release": "^17.4.2", | ||
"ts-jest": "^26.5.4", | ||
"typescript": "^4.2.3" | ||
"@changesets/cli": "^2.18.0", | ||
"@types/jest": "^27.0.2", | ||
"@typescript-eslint/eslint-plugin": "^5.3.0", | ||
"@typescript-eslint/parser": "^5.3.0", | ||
"eslint": "^8.2.0", | ||
"i18next": "^21.4.1", | ||
"jest": "^27.3.1", | ||
"prettier": "^2.4.1", | ||
"ts-jest": "^27.0.7", | ||
"typescript": "^4.4.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
if [[ -z "${CI}" ]]; then | ||
echo "Releasing is only allowed from CI." | ||
exit 1 | ||
fi | ||
|
||
yarn tsc | ||
yarn changeset publish |
Oops, something went wrong.