Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 polishing.1 #20

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
bbc7eb8
:construction: Initial v3.0 implementation
DRFR0ST Sep 17, 2021
73094fb
:wrench: Setup example app
DRFR0ST Sep 17, 2021
b84275a
:zap: Improve performance and code structure
norwegianbegginer Sep 18, 2021
97a5ffe
:construction: Implement merging preset with translations *WIP*
DRFR0ST Sep 19, 2021
527e542
:contruction: Improve typing
norwegianbegginer Sep 20, 2021
e94edff
:label: Fix dynamic translation properties not being typed properly
DRFR0ST Sep 20, 2021
db22bcd
:bug: Fix useLittera return type
DRFR0ST Sep 20, 2021
4fc615f
:zap: Optimize locale changing
DRFR0ST Sep 20, 2021
abe59c1
:fire: Remove unused test
DRFR0ST Sep 20, 2021
2ef3f1b
:memo: Update README
DRFR0ST Dec 4, 2022
245b2a4
:white_check_mark: Improve/Add tests
DRFR0ST Dec 4, 2022
c0267b7
:recycle: Clean code
DRFR0ST Dec 4, 2022
a0d4e16
:sparkles: Implement experimental fetching from cdn
DRFR0ST Apr 28, 2023
c0c2ef0
:sparkles: Improve remote feature
DRFR0ST Apr 29, 2023
9138083
Revert ":sparkles: Improve remote feature"
DRFR0ST May 3, 2023
219c3bd
Revert ":sparkles: Implement experimental fetching from cdn"
DRFR0ST May 3, 2023
9a91c25
:sparkles: Implement Trans component
DRFR0ST May 3, 2023
9cb34ff
:arrow_up: Update react dependency
DRFR0ST May 3, 2023
5daa94d
:bug: Fix circular dependency
DRFR0ST May 3, 2023
020be7d
:arrow_up: Upgrade all dependencies
DRFR0ST May 3, 2023
7ee2f01
:bug: Fix tests failing when react is not in dev dependencies
DRFR0ST May 3, 2023
bd6b93b
:bug: Fix tests and linting
DRFR0ST May 3, 2023
c7dfbec
:bug: Fix missing Trans component's code
DRFR0ST May 3, 2023
f0368dc
:bookmark: Bump version to 3.0.0-next.1
DRFR0ST May 3, 2023
8cf759d
:bug: Fix build issues
DRFR0ST May 3, 2023
8675373
:package: Upgrade dependencies
DRFR0ST Jan 18, 2024
075b7ed
:wrench: Move from Node to Bun
DRFR0ST Jan 19, 2024
3627c3e
:wrench: Link the library with example
DRFR0ST Jan 19, 2024
98a54df
:fire: Remove test
DRFR0ST Jan 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

28 changes: 9 additions & 19 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
# This file is for unifying the coding style for different editors and IDEs.
# More information at http://editorconfig.org

# No .editorconfig files above the root directory
root = true

[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100

[*.{html,hbs,mustache,ejs,js,jsx,rb,scss,xml,svg}]
indent_size = 4

[*.md]
indent_size = 4
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
1 change: 0 additions & 1 deletion .env

This file was deleted.

2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

22 changes: 0 additions & 22 deletions .eslintrc.json

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/generate_docs.yml

This file was deleted.

19 changes: 13 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false
uses: actions/checkout@v3 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.

- name: Setup bun 🛠️
uses: oven-sh/setup-bun@v1

- name: Install 🔧
run: |
bun install

- name: Build 🏗️
run: |
bun run build

- name: Test ✅ # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
yarn
yarn typecheck
yarn test
bun run test
179 changes: 175 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,175 @@
/node_modules
/dist
/coverage
/docs
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore

# Logs

logs
_.log
npm-debug.log_
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Caches

.cache

# Diagnostic reports (https://nodejs.org/api/report.html)

report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json

# Runtime data

pids
_.pid
_.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover

lib-cov

# Coverage directory used by tools like istanbul

coverage
*.lcov

# nyc test coverage

.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)

.grunt

# Bower dependency directory (https://bower.io/)

bower_components

# node-waf configuration

.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)

build/Release

# Dependency directories

node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)

web_modules/

# TypeScript cache

*.tsbuildinfo

# Optional npm cache directory

.npm

# Optional eslint cache

.eslintcache

# Optional stylelint cache

.stylelintcache

# Microbundle cache

.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history

.node_repl_history

# Output of 'npm pack'

*.tgz

# Yarn Integrity file

.yarn-integrity

# dotenv environment variable files

.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)

.parcel-cache

# Next.js build output

.next
out

# Nuxt.js build / generate output

.nuxt
dist

# Gatsby files

# Comment in the public line in if your project uses Gatsby and not Next.js

# https://nextjs.org/blog/next-9-1#public-directory-support

# public

# vuepress build output

.vuepress/dist

# vuepress v2.x temp and cache directory

.temp

# Docusaurus cache and generated files

.docusaurus

# Serverless directories

.serverless/

# FuseBox cache

.fusebox/

# DynamoDB Local files

.dynamodb/

# TernJS port file

.tern-port

# Stores VSCode versions used for testing VSCode extensions

.vscode-test

# yarn v2

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# IntelliJ based IDEs
.idea

# Finder (MacOS) folder config
.DS_Store
3 changes: 3 additions & 0 deletions .gitignore copy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/node_modules/
**/dist/
**/coverage/
23 changes: 18 additions & 5 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
/coverage
/docs
/src
/.vscode
/types
**/src
**/.vscode
**/example
**/coverage
**/node_modules
yarn.lock
**/.git
**/.github
*.ts
*.test.*
*.md
*.json
*.lock
.eslintrc
.eslintignore
.editorconfig
.prettierrc
.gitignore
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"singleQuote": true,
"jsxSingleQuote": true,
"semi": false,
"tabWidth": 2,
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"trailingComma": "none",
"endOfLine":"auto"
}
20 changes: 3 additions & 17 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
{
"search.exclude": {
"**/node_modules": true,
"**/dist": true,
"**/out": true,
".awcache": true
},
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
"**/node_modules": true,
"**/out": false,
"tslint-rules/**/*.js": true,
".awcache": true,
".eslintcache": true
},
"editor.tabSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
}
}
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

Loading