Skip to content

Commit 03942ec

Browse files
committed
feat: initial commit
0 parents  commit 03942ec

28 files changed

+13552
-0
lines changed

.artifactrc.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
artifacts:
2+
- name: "@daiyam/artifact-lang-js"
3+
version: 0.6.1
4+
- name: "@daiyam/artifact-lang-ts"
5+
version: 0.5.5
6+
- name: "@daiyam/artifact-npm-ts"
7+
version: 0.3.1
8+
- name: "@daiyam/artifact-npm-zokugun"
9+
version: 0.2.1
10+
- name: "@daiyam/artifact-test-mocha-ts"
11+
version: 0.4.0

.commitlintrc.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
extends:
2+
- "@commitlint/config-conventional"
3+
rules:
4+
type-enum:
5+
- 2
6+
- always
7+
- - build
8+
- ci
9+
- docs
10+
- enhance
11+
- feat
12+
- fix
13+
- perf
14+
- refactor
15+
- revert
16+
- style
17+
- test
18+
- vcs

.czrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "cz-conventional-changelog"
3+
}

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
tab_width = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[{*.yml,*.yaml}]
12+
indent_style = space
13+
indent_size = 2
14+
15+
[*.md]
16+
indent_style = space
17+
indent_size = 4

.fixpackrc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"sortToTop": [
3+
"name",
4+
"displayName",
5+
"description",
6+
"version",
7+
"private",
8+
"author",
9+
"publisher",
10+
"license",
11+
"homepage",
12+
"repository",
13+
"bugs",
14+
"engines",
15+
"type",
16+
"bin",
17+
"exports",
18+
"main",
19+
"types",
20+
"scripts",
21+
"dependencies",
22+
"devDependencies",
23+
"optionalDependencies",
24+
"keywords"
25+
],
26+
"finalNewLine": true
27+
}

.github/FUNDING.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ko_fi: daiyam
2+
liberapay: daiyam
3+
custom: paypal.me/daiyam99

.github/workflows/publish.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish Package
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: 20
14+
registry-url: https://registry.npmjs.org
15+
- run: npm ci
16+
- run: npm publish --access=public
17+
env:
18+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
lib
3+
.test

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
npx commitlint --edit "$1"

.husky/pre-commit

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
npx lint-staged

.lintstagedrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"package.json": "fixpack",
3+
"*.ts": "xo"
4+
}

.mocharc.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require:
2+
- source-map-support/register
3+
spec:
4+
- .test/test/**/*.test.js
5+
watch-files:
6+
- .test/src
7+
reporter: spec
8+
color: true
9+
check-leaks: true

.npmignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*
2+
*/**
3+
**/.DS_Store
4+
!package.json
5+
!LICENSE
6+
!README.md
7+
!lib/**/*.js
8+
!lib/**/*.d.ts

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20.18.3

.release-it.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
git:
2+
commitMessage: v${version}
3+
tagName: v${version}
4+
tagAnnotation: Release version ${version}
5+
npm:
6+
publish: false
7+
disable-metrics: true

.vscode/settings.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"taskExplorer.exclude": [
3+
".husky",
4+
],
5+
"search.exclude": {
6+
"lib/**": true,
7+
"package-lock.json": true,
8+
".test/**": true,
9+
},
10+
}

.xo-config.json

+152
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
{
2+
"ignores": [
3+
"*.config.js",
4+
"test/fixtures"
5+
],
6+
"rules": {
7+
"@typescript-eslint/ban-types": "off",
8+
"@typescript-eslint/brace-style": [
9+
"error",
10+
"stroustrup"
11+
],
12+
"@typescript-eslint/class-literal-property-style": [
13+
"error",
14+
"fields"
15+
],
16+
"@typescript-eslint/keyword-spacing": [
17+
"error",
18+
{
19+
"overrides": {
20+
"if": {
21+
"after": false
22+
},
23+
"for": {
24+
"after": false
25+
},
26+
"switch": {
27+
"after": false
28+
},
29+
"while": {
30+
"after": false
31+
}
32+
}
33+
}
34+
],
35+
"@typescript-eslint/member-ordering": [
36+
"error",
37+
{
38+
"default": [
39+
"field",
40+
"constructor",
41+
"get",
42+
"set",
43+
"method"
44+
]
45+
}
46+
],
47+
"@typescript-eslint/naming-convention": [
48+
"error",
49+
{
50+
"selector": "variable",
51+
"modifiers": [
52+
"const",
53+
"global"
54+
],
55+
"format": [
56+
"camelCase",
57+
"UPPER_CASE"
58+
]
59+
},
60+
{
61+
"selector": "variable",
62+
"format": [
63+
"camelCase"
64+
]
65+
}
66+
],
67+
"@typescript-eslint/no-confusing-void-expression": "off",
68+
"@typescript-eslint/no-dynamic-delete": "off",
69+
"@typescript-eslint/no-inferrable-types": "off",
70+
"@typescript-eslint/no-namespace": "off",
71+
"@typescript-eslint/object-curly-spacing": [
72+
"error",
73+
"always"
74+
],
75+
"arrow-parens": [
76+
"error",
77+
"always"
78+
],
79+
"capitalized-comments": "off",
80+
"complexity": "off",
81+
"default-case": "off",
82+
"import/extensions": [
83+
"error",
84+
"never"
85+
],
86+
"import/order": [
87+
"error",
88+
{
89+
"groups": [
90+
"builtin",
91+
"external",
92+
"internal",
93+
"parent",
94+
"sibling",
95+
"index",
96+
"object"
97+
],
98+
"alphabetize": {
99+
"order": "asc",
100+
"caseInsensitive": true
101+
}
102+
}
103+
],
104+
"max-depth": [
105+
"error",
106+
8
107+
],
108+
"max-params": [
109+
"error",
110+
12
111+
],
112+
"no-await-in-loop": "off",
113+
"no-else-return": "off",
114+
"no-lonely-if": "off",
115+
"no-negated-condition": "off",
116+
"one-var": [
117+
"error",
118+
"never"
119+
],
120+
"unicorn/empty-brace-spaces": "off",
121+
"unicorn/no-array-callback-reference": "off",
122+
"unicorn/no-object-as-default-parameter": "off",
123+
"unicorn/prefer-json-parse-buffer": "off",
124+
"unicorn/prefer-module": "off",
125+
"unicorn/prefer-node-protocol": "off",
126+
"unicorn/prefer-switch": "off",
127+
"unicorn/prefer-ternary": "off",
128+
"unicorn/prevent-abbreviations": [
129+
"error",
130+
{
131+
"replacements": {
132+
"args": false,
133+
"err": false,
134+
"func": false,
135+
"pkg": false
136+
}
137+
}
138+
]
139+
},
140+
"plugins": [
141+
"chai-friendly"
142+
],
143+
"overrides": [
144+
{
145+
"files": "**/*.test.ts",
146+
"rules": {
147+
"@typescript-eslint/no-unused-expressions": "off",
148+
"chai-friendly/no-unused-expressions": "error"
149+
}
150+
}
151+
]
152+
}

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2025-present Baptiste Augrain
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)