From 8ec44fd10f0a20ff49a7d3020c6a3eb01bb4b09f Mon Sep 17 00:00:00 2001 From: Mark Skelton Date: Thu, 25 Mar 2021 18:05:08 -0500 Subject: [PATCH] Rename --- .github/workflows/format.yml | 2 +- CHANGELOG.md | 2 +- README.md | 10 +++++----- init.sh | 22 ---------------------- package.json | 10 +++++----- yarn.lock | 32 ++++++++++++++++---------------- 6 files changed, 28 insertions(+), 50 deletions(-) delete mode 100755 init.sh diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 7f7f29a..e6bbf57 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -2,7 +2,7 @@ name: Format on: pull_request: branches: [main] -if: github.repository == 'Widen/npm-package-template' +if: github.repository == 'Widen/i18next-async-backend' jobs: test: runs-on: ubuntu-latest diff --git a/CHANGELOG.md b/CHANGELOG.md index a25f1d2..1959620 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ # Changelog -The changelog is automatically updated using [semantic-release](https://github.com/semantic-release/semantic-release). You can see it on the [releases page](https://github.com/Widen/npm-package-template/releases). +The changelog is automatically updated using [semantic-release](https://github.com/semantic-release/semantic-release). You can see it on the [releases page](https://github.com/Widen/i18next-async-backend/releases). diff --git a/README.md b/README.md index d81d346..4c01847 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,22 @@ -# npm-package-template +# i18next-async-backend -[![Build](https://github.com/Widen/npm-package-template/actions/workflows/build.yml/badge.svg)](https://github.com/Widen/npm-package-template/actions/workflows/build.yml) +[![Build](https://github.com/Widen/i18next-async-backend/actions/workflows/build.yml/badge.svg)](https://github.com/Widen/i18next-async-backend/actions/workflows/build.yml) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) -{{description}} +i18next backend which loads resources via promises. Useful when loading resources via dynamic imports. ## Installation ### npm ```sh -npm install npm-package-template +npm install i18next-async-backend ``` ### Yarn ``` -yarn add npm-package-template +yarn add i18next-async-backend ``` ## Usage diff --git a/init.sh b/init.sh deleted file mode 100755 index a5f7e77..0000000 --- a/init.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -packageName= -description= - -read -p "Package name: " packageName -read -p "Description: " description - -# Set working directory to the script's location so we can safely use relative paths in this script. -cd "${0%/*}"; - -sed -i "" "s/npm-package-template/${packageName}/" README.md -sed -i "" "s/npm-package-template/${packageName}/" CHANGELOG.md -sed -i "" "s/npm-package-template/${packageName}/" package.json -sed -i "" "s/npm-package-template/${packageName}/" yarn.lock -sed -i "" "s/npm-package-template/${packageName}/" .github/workflows/format.yml - -sed -i "" "s/{{description}}/${description}/" README.md -sed -i "" "s/{{description}}/${description}/" package.json - -rm init.sh diff --git a/package.json b/package.json index 844bfa1..a025a65 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { - "name": "npm-package-template", + "name": "i18next-async-backend", "version": "0.0.0-semantically-released", - "description": "{{description}}", + "description": "i18next backend which loads resources via promises. Useful when loading resources via dynamic imports.", "author": "Widen", "license": "ISC", - "repository": "github:Widen/npm-package-template", - "homepage": "https://github.com/Widen/npm-package-template#readme", + "repository": "github:Widen/i18next-async-backend", + "homepage": "https://github.com/Widen/i18next-async-backend#readme", "bugs": { - "url": "https://github.com/Widen/npm-package-template/issues" + "url": "https://github.com/Widen/i18next-async-backend/issues" }, "keywords": [], "exports": "./lib/index.js", diff --git a/yarn.lock b/yarn.lock index b82e779..0d80460 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4134,6 +4134,22 @@ fsevents@^2.1.2: languageName: node linkType: hard +"i18next-async-backend@workspace:.": + version: 0.0.0-use.local + resolution: "i18next-async-backend@workspace:." + dependencies: + "@types/jest": ^26.0.22 + "@typescript-eslint/eslint-plugin": ^4.19.0 + "@typescript-eslint/parser": ^4.19.0 + eslint: ^7.22.0 + jest: ^26.6.3 + prettier: ^2.2.1 + semantic-release: ^17.4.2 + ts-jest: ^26.5.4 + typescript: ^4.2.3 + languageName: unknown + linkType: soft + "iconv-lite@npm:0.4.24, iconv-lite@npm:~0.4.13": version: 0.4.24 resolution: "iconv-lite@npm:0.4.24" @@ -6547,22 +6563,6 @@ fsevents@^2.1.2: languageName: node linkType: hard -"npm-package-template@workspace:.": - version: 0.0.0-use.local - resolution: "npm-package-template@workspace:." - dependencies: - "@types/jest": ^26.0.22 - "@typescript-eslint/eslint-plugin": ^4.19.0 - "@typescript-eslint/parser": ^4.19.0 - eslint: ^7.22.0 - jest: ^26.6.3 - prettier: ^2.2.1 - semantic-release: ^17.4.2 - ts-jest: ^26.5.4 - typescript: ^4.2.3 - languageName: unknown - linkType: soft - "npm-packlist@npm:^1.1.12, npm-packlist@npm:^1.4.8": version: 1.4.8 resolution: "npm-packlist@npm:1.4.8"