Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamerblue committed Jul 8, 2023
0 parents commit 917b24b
Show file tree
Hide file tree
Showing 18 changed files with 2,040 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
27 changes: 27 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = {
extends: [
'alloy',
'alloy/react',
'alloy/typescript',
],
env: {
// Your environments (which contains several predefined global variables)
//
// browser: true,
// node: true,
// mocha: true,
// jest: true,
// jquery: true
},
globals: {
// Your global variables (setting to false means it's not allowed to be reassigned)
//
// myGlobal: false
},
rules: {
// Customize your rules
'no-undef': 'off',
'max-params': 'off',
'@typescript-eslint/no-empty-interface': 'off',
},
};
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
.idea
node_modules
/dist
.pnpm-debug.log
npm-debug.log*
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"eslint-config-alloy/.prettierrc.js"
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# standard-ranklist-utils

Utilities for standard ranklist.

## Utilities

### formatters

- `formatTimeDuration`
- `preZeroFill`
- `secToTimeStr`
- `numberToAlphabet`
- `alphabetToNumber`

### resolvers

- `resolveText`
- `resolveContributor`
- `resolveColor`
- `resolveThemeColor`
- `resolveStyle`

### ranklist

- `canRegenerateRanklist`
- `getSortedCalculatedRawSolutions`
- `filterSolutionsUntil`
- `sortRows`
- `regenerateRanklistBySolutions`
- `regenerateRowsByIncrementalSolutions`
- `convertToStaticRanklist`
50 changes: 50 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "@algoux/standard-ranklist-utils",
"version": "0.1.0",
"author": "bLue",
"keywords": [
"standard ranklist",
"srk",
"utils"
],
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"dev": "NODE_OPTIONS='--es-module-specifier-resolution=node' ts-node --transpile-only src/index.ts",
"build": "tsc"
},
"dependencies": {
"bcp-47-match": "^2.0.2",
"bignumber.js": "^9.1.1",
"semver": "^7.5.4",
"textcolor": "^1.0.2"
},
"devDependencies": {
"@algoux/standard-ranklist": "^0.3.2",
"@types/node": "^16.18.38",
"@types/semver": "^7.5.0",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"eslint": "^8.44.0",
"eslint-config-alloy": "^4.0.0",
"prettier": "^2.7.1",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
},
"peerDependencies": {
"@algoux/standard-ranklist": "*"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/algoux/standard-ranklist-utils.git"
},
"bugs": {
"url": "https://github.com/algoux/standard-ranklist-utils/issues"
},
"homepage": "https://github.com/algoux/standard-ranklist-utils#readme"
}
Loading

0 comments on commit 917b24b

Please sign in to comment.