Skip to content

Commit

Permalink
feat: upgrade to core 0.15 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mararok authored Jun 21, 2024
1 parent a606461 commit 389f483
Show file tree
Hide file tree
Showing 37 changed files with 1,580 additions and 2,917 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = {
parserOptions: {
ecmaVersion: 2022,
sourceType: 'module',
extraFileExtensions: ['vue'],
},
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
Expand Down
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.github/ @Mararok
13 changes: 6 additions & 7 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: Pull Request
on:
pull_request:
branches: [master, main]

branches: [ main ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
- name: Yarn install
uses: hexancore/[email protected]
uses: hexancore/yarn-ci-install@ba9baf131eba84b6c86efb46375a530a3098bb04 # 0.1.0
- name: Lint
run: yarn lint
- name: Built
run: yarn build
- name: test
- name: Test
uses: ./.github/actions/test
- name: Build
run: yarn build
39 changes: 39 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish
env:
HUSKY: 0
on:
release:
types: [published]

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6

- name: Yarn install
uses: hexancore/yarn-ci-install@ba9baf131eba84b6c86efb46375a530a3098bb04 # 0.1.0
- name: Test
uses: ./.github/actions/test
publish:
needs: [check]
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # 4.1.6
- name: Yarn install
uses: hexancore/yarn-ci-install@ba9baf131eba84b6c86efb46375a530a3098bb04 # 0.1.0
- name: Build
run: yarn build

# Publish package
- name: Publish
shell: bash
run: |
npm publish --provenance --access public --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
64 changes: 0 additions & 64 deletions .github/workflows/release.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .jestrc.json

This file was deleted.

4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test/
/test/
tsconfig.build.json
tsconfig.common.json
tsconfig.json
Expand All @@ -18,6 +18,7 @@ yarn.lock
.eslintrc.js
.eslintignore
.jestrc.json
jest.config.ts
config/
CONTRIBUTION.md
tmp/
Expand All @@ -26,3 +27,4 @@ docker/
node_modules/
Makefile
.swcrc
CHANGELOG.md
32 changes: 0 additions & 32 deletions .swcrc

This file was deleted.

683 changes: 342 additions & 341 deletions .yarn/releases/yarn-4.1.0.cjs → .yarn/releases/yarn-4.3.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ npmPublishRegistry: "https://registry.npmjs.org"

npmRegistryServer: "https://registry.npmjs.org"

yarnPath: .yarn/releases/yarn-4.1.0.cjs
yarnPath: .yarn/releases/yarn-4.3.0.cjs
35 changes: 17 additions & 18 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
(The MIT License)
MIT License

Copyright (c) 2021 Mararok https://mararok.com
Copyright (c) 2023-2024 Andrzej Wasiak <https://andrzejwasiak.pl>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
26 changes: 4 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,15 @@
<p align="center">
<a href="https://hexancore.com/" target="blank"><img src="https://avatars.githubusercontent.com/u/113235766?s=200&v=4" width="120" alt="Hexancore Logo" /></a>
<a href="https://hexancore.dev/" target="blank"><img src="https://avatars.githubusercontent.com/u/113235766?s=200&v=4" width="120" alt="Hexancore Logo" /></a>
</p>

<h1 align="center">Hexancore</h1>
<p align="center">Fullstack typescript framework based on NestJS for building epic hexagonal architecture designed apps.</p>
<h2 align="center">Package: TypeORM</h2>
<p align="center"><i>Full-Stack TypeScript Framework for building epic <b>HexArch</b> designed applications.</i></p>
<h2 align="center">Package: Typeorm</h2>
<p align="center">
<img alt="Build" src="https://img.shields.io/github/actions/workflow/status/hexancore/typeorm/release">
<a href="https://www.npmjs.com/package/@hexancore/typeorm"><img src="https://img.shields.io/npm/v/@hexancore/typeorm.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/package/@hexancore/typeorm"><img src="https://img.shields.io/npm/l/@hexancore/typeorm.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/package/@hexancore/typeorm"><img src="https://img.shields.io/npm/dm/@hexancore/typeorm.svg" alt="NPM Downloads" /></a>
</p>

## Description

TypeORM module for [Hexancore](https://hexancore.github.io/hexancore/)

## Installation
```bash
# NPM
npm i --save @hexancore/typeorm

# YARN
yarn add @hexancore/typeorm
```

## Documentation

Documentation(work in progress...):
https://hexancore.github.io/hexancore/typeorm


Package of Hexancore framework [https://hexancore.dev](https://hexancore.dev)
20 changes: 20 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { pathsToModuleNameMapper } from 'ts-jest';
import { compilerOptions } from './tsconfig.json';
import type { JestConfigWithTsJest } from 'ts-jest';

const jestConfig: JestConfigWithTsJest = {
preset: "ts-jest",
runner: "groups",
roots: [__dirname],
modulePaths: [__dirname],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: "<rootDir>" }),
testMatch: ["<rootDir>/test/**/*.test.ts"],
setupFiles: [],
setupFilesAfterEnv: ["jest-expect-message", "<rootDir>/test/config.ts"],
coverageDirectory: "./test/coverage",
testEnvironment: "node",

};

export default jestConfig;

Loading

0 comments on commit 389f483

Please sign in to comment.