Skip to content

Commit 0192704

Browse files
committed
Initial commit
0 parents  commit 0192704

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+6802
-0
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf

.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.eslintrc.js
2+
# .gitignore
3+
.history
4+
.pnpm-store
5+
node_modules
6+
coverage
7+
lib
8+
tsconfig.tsbuildinfo

.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
3+
parser: "@typescript-eslint/parser",
4+
parserOptions: {
5+
project: "./tsconfig.json",
6+
},
7+
plugins: ["@typescript-eslint"],
8+
};

.github/workflows/ci.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
env:
7+
PNPM_CACHE_FOLDER: .pnpm-store
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Use Node.js 16.x
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: 16
19+
- uses: actions/cache@v2
20+
with:
21+
path: ${{ env.PNPM_CACHE_FOLDER }}
22+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
23+
restore-keys: |
24+
${{ runner.os }}-pnpm-
25+
- name: Use pnpm
26+
uses: pnpm/action-setup@v2
27+
with:
28+
version: 6
29+
- name: Setup pnpm config
30+
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
31+
- name: Install dependencies
32+
run: pnpm install
33+
env:
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
- name: Check
36+
run: pnpm check
37+
- name: Test
38+
run: pnpm test
39+
- name: Build
40+
run: pnpm build
41+
- name: Patch
42+
run: pnpm patch
43+
- name: Create release pull request or publish to npm
44+
id: changesets
45+
uses: changesets/action@v1
46+
with:
47+
commit: "chore: update versions"
48+
title: Update versions
49+
publish: pnpm exec changeset publish
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.history
2+
.pnpm-store
3+
node_modules
4+
coverage
5+
lib
6+
tsconfig.tsbuildinfo

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
pnpm-lock.yaml
2+
# .gitignore
3+
.history
4+
.pnpm-store
5+
node_modules
6+
coverage
7+
lib
8+
tsconfig.tsbuildinfo

.prettierrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
plugins: [
3+
require("@trivago/prettier-plugin-sort-imports"),
4+
require("prettier-plugin-sort-json"),
5+
require("prettier-plugin-packagejson"),
6+
],
7+
importOrderParserPlugins: [
8+
"typescript",
9+
"classProperties",
10+
"decorators-legacy",
11+
],
12+
};

.vscode/settings.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"[javascript]": {
3+
"editor.defaultFormatter": "esbenp.prettier-vscode"
4+
},
5+
"[json]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
},
8+
"[jsonc]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
10+
},
11+
"[typescript]": {
12+
"editor.defaultFormatter": "esbenp.prettier-vscode"
13+
},
14+
"editor.formatOnSave": true,
15+
"jest.autoRun": "off"
16+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# anymodel (WIP)

jest.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2+
// eslint-disable-next-line no-undef
3+
module.exports = {
4+
preset: "ts-jest",
5+
testEnvironment: "node",
6+
collectCoverage: true,
7+
coverageDirectory: "coverage",
8+
coverageReporters: ["json", "html"],
9+
globals: {
10+
"ts-jest": {
11+
tsconfig: "<rootDir>/tsconfig.jest.json",
12+
},
13+
},
14+
testMatch: [
15+
"<rootDir>/packages/*/src/**/*.test.ts",
16+
"<rootDir>/packages/*/test/**/*.test.ts",
17+
],
18+
};

0 commit comments

Comments
 (0)