Skip to content

Commit 8f1e7d2

Browse files
committed
Initial commit
0 parents  commit 8f1e7d2

File tree

11 files changed

+4691
-0
lines changed

11 files changed

+4691
-0
lines changed

.all-contributorsrc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"imageSize": 75,
3+
"projectName": "i18next-test",
4+
"projectOwner": "devoxa",
5+
"repoType": "github",
6+
"repoHost": "https://github.com",
7+
"skipCi": true,
8+
"contributors": [
9+
{
10+
"login": "queicherius",
11+
"name": "David Reeß",
12+
"avatar_url": "https://avatars3.githubusercontent.com/u/4615516?v=4",
13+
"profile": "https://www.david-reess.de",
14+
"contributions": [
15+
"code",
16+
"doc",
17+
"test"
18+
]
19+
}
20+
],
21+
"files": [
22+
"README.md"
23+
],
24+
"contributorsPerLine": 7
25+
}

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: '/'
5+
schedule:
6+
interval: daily

.github/workflows/push.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Continuous Integration
2+
3+
on: [push]
4+
5+
jobs:
6+
test-and-build:
7+
name: 'Test & Build'
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: 'Checkout the repository'
12+
uses: actions/checkout@v2
13+
14+
- name: 'Setup Node.JS'
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: '14'
18+
19+
- name: 'Cache dependencies'
20+
uses: actions/cache@v2
21+
with:
22+
path: '**/node_modules'
23+
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
24+
25+
- name: 'Install dependencies'
26+
run: yarn install --frozen-lockfile
27+
28+
- name: 'Run tests'
29+
run: yarn test --coverage
30+
31+
- name: 'Save test coverage'
32+
uses: codecov/codecov-action@v1
33+
34+
- name: 'Check code formatting'
35+
run: yarn format:check
36+
37+
- name: 'Run linter'
38+
run: yarn lint
39+
40+
- name: 'Build package'
41+
run: yarn build

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Compiled Output
2+
dist/
3+
4+
# Tests
5+
coverage/
6+
7+
# Dependencies
8+
node_modules/
9+
yarn-debug.log*
10+
yarn-error.log*
11+
12+
# Development Environments
13+
.history/

.kodiak.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version = 1
2+
3+
[merge]
4+
delete_branch_on_merge = true
5+
6+
[merge.automerge_dependencies]
7+
usernames = ["dependabot"]
8+
versions = ["minor", "patch"]

.npmignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Tests
2+
coverage/
3+
4+
# Dependencies
5+
node_modules/
6+
yarn-debug.log*
7+
yarn-error.log*
8+
9+
# Development Environments
10+
.history/

README.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<!-- Title -->
2+
<h1 align="center">
3+
i18next-test
4+
</h1>
5+
6+
<!-- Description -->
7+
<h4 align="center">
8+
Check <code>i18next</code> locale files for missing translations and common errors.
9+
</h4>
10+
11+
<!-- Badges -->
12+
<p align="center">
13+
<a href="https://www.npmjs.com/package/@devoxa/i18next-test">
14+
<img
15+
src="https://img.shields.io/npm/v/@devoxa/i18next-test?style=flat-square"
16+
alt="Package Version"
17+
/>
18+
</a>
19+
20+
<a href="https://github.com/devoxa/i18next-test/actions?query=branch%3Amaster+workflow%3A%22Continuous+Integration%22">
21+
<img
22+
src="https://img.shields.io/github/workflow/status/devoxa/i18next-test/Continuous%20Integration?style=flat-square"
23+
alt="Build Status"
24+
/>
25+
</a>
26+
27+
<a href="https://codecov.io/github/devoxa/i18next-test">
28+
<img
29+
src="https://img.shields.io/codecov/c/github/devoxa/i18next-test/master?style=flat-square"
30+
alt="Code Coverage"
31+
/>
32+
</a>
33+
</p>
34+
35+
<!-- Quicklinks -->
36+
<p align="center">
37+
<a href="#installation">Installation</a> •
38+
<a href="#usage">Usage</a> •
39+
<a href="#contributors">Contributors</a> •
40+
<a href="#license">License</a>
41+
</p>
42+
43+
<br>
44+
45+
## Installation
46+
47+
```bash
48+
yarn add @devoxa/i18next-test
49+
```
50+
51+
## Usage
52+
53+
TODO
54+
55+
## Contributors
56+
57+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
58+
59+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
60+
<!-- prettier-ignore-start -->
61+
<!-- markdownlint-disable -->
62+
<table>
63+
<tr>
64+
<td align="center"><a href="https://www.david-reess.de"><img src="https://avatars3.githubusercontent.com/u/4615516?v=4" width="75px;" alt=""/><br /><sub><b>David Reeß</b></sub></a><br /><a href="https://github.com/devoxa/i18next-test/commits?author=queicherius" title="Code">💻</a> <a href="https://github.com/devoxa/i18next-test/commits?author=queicherius" title="Documentation">📖</a> <a href="https://github.com/devoxa/i18next-test/commits?author=queicherius" title="Tests">⚠️</a></td>
65+
</tr>
66+
</table>
67+
68+
<!-- markdownlint-enable -->
69+
<!-- prettier-ignore-end -->
70+
71+
<!-- ALL-CONTRIBUTORS-LIST:END -->
72+
73+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors)
74+
specification. Contributions of any kind welcome!
75+
76+
## License
77+
78+
MIT

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
testPathIgnorePatterns: ['dist'],
5+
}

package.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "@devoxa/i18next-test",
3+
"description": "Check `i18next` locale files for missing translations and common errors.",
4+
"version": "0.0.0",
5+
"main": "dist/src/index.js",
6+
"license": "MIT",
7+
"repository": {
8+
"url": "https://github.com/devoxa/i18next-test"
9+
},
10+
"scripts": {
11+
"test": "jest",
12+
"format": "prettier --ignore-path='.gitignore' --list-different --write .",
13+
"format:check": "prettier --ignore-path='.gitignore' --check .",
14+
"lint": "eslint --ignore-path='.gitignore' '{src,tests}/**/*.ts'",
15+
"build": "rm -rf dist/ && tsc",
16+
"preversion": "yarn build"
17+
},
18+
"eslintConfig": {
19+
"extends": "@devoxa"
20+
},
21+
"prettier": "@devoxa/prettier-config",
22+
"devDependencies": {
23+
"@devoxa/eslint-config": "^2.0.5",
24+
"@devoxa/prettier-config": "^1.0.0",
25+
"@types/jest": "^26.0.3",
26+
"@types/node": "^15.0.1",
27+
"eslint": "^7.0.0",
28+
"jest": "^26.0.1",
29+
"prettier": "^2.0.5",
30+
"ts-jest": "^26.0.0",
31+
"typescript": "^4.1.3"
32+
},
33+
"publishConfig": {
34+
"access": "public"
35+
}
36+
}

tsconfig.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"compilerOptions": {
3+
// Output Options
4+
"target": "es2015",
5+
"module": "commonjs",
6+
"jsx": "react",
7+
"noEmitOnError": true,
8+
"newLine": "lf",
9+
"outDir": "dist/",
10+
"baseUrl": "./",
11+
"declaration": true,
12+
"sourceMap": true,
13+
"removeComments": true,
14+
"emitDecoratorMetadata": true,
15+
"experimentalDecorators": true,
16+
"incremental": true,
17+
18+
// Type-Checking Options
19+
"lib": ["esnext"],
20+
"strict": true,
21+
"skipLibCheck": true,
22+
"strictPropertyInitialization": false,
23+
24+
// Module Resolution Options
25+
"moduleResolution": "node",
26+
"allowSyntheticDefaultImports": true,
27+
"esModuleInterop": true,
28+
"forceConsistentCasingInFileNames": true,
29+
"resolveJsonModule": true,
30+
"allowJs": false
31+
},
32+
"include": ["src/", "tests/"]
33+
}

0 commit comments

Comments
 (0)