Skip to content

Commit

Permalink
docs: github workflow badges added
Browse files Browse the repository at this point in the history
  • Loading branch information
arturwojnar committed Mar 24, 2024
1 parent c070fad commit d17dca9
Show file tree
Hide file tree
Showing 17 changed files with 55 additions and 9,595 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module.exports = {
parserOptions: {
ecmaVersion: 2023,
tsconfigRootDir: __dirname,
project: ['./tsconfig.json', './packages/*/tsconfig.json', './packages/*/rollup.config.js'],
sourceType: 'module',
project: ['./tsconfig.json', './packages/*/tsconfig.json'],
},
ignorePatterns: ['examples/**/*'],
extends: [
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[![Build and test](https://github.com/arturwojnar/hermes/actions/workflows/build-and-test.yaml/badge.svg?branch=main)](https://github.com/arturwojnar/hermes/actions/workflows/build-and-test.yaml)
[![Deploy VitePress site to Pages](https://github.com/arturwojnar/hermes/actions/workflows/publish-docs.yaml/badge.svg)](https://github.com/arturwojnar/hermes/actions/workflows/publish-docs.yaml)
[![Publish to NPM](https://github.com/arturwojnar/hermes/actions/workflows/publish.yaml/badge.svg)](https://github.com/arturwojnar/hermes/actions/workflows/publish.yaml)

<img src="./docs/public/logo-main.png" alt="Hermes logo" style="margin: 0 auto; width: 70%; display: block;" />
<br />
<br />
Expand Down
11 changes: 11 additions & 0 deletions docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,14 @@
.row-container {display: flex; width: 100%; height: 100%; flex-direction: column; background-color: blue; overflow: hidden;}
.first-row {background-color: lime; }
.second-row { flex-grow: 1; border: none; margin: 0; padding: 0; }

.badges {
width: 100%;
text-align: center;
margin-top: 2em;

p {
display: inline-block;
padding: 0 0.5em;
}
}
10 changes: 10 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ features:
<div style="max-width: 600px; text-align: justify; text-justify: inter-word; margin: 0 auto;">
<i>"Hermes is the god of reliable deliveries. His two insignias are an outbox and a letter. Just write a message, put it into an envoy, and put it in the box. That's it! You don't need prayers, keeping crossed fingers and hope. Your message will be delivered for sure! Hermes is on it!</i>
</div>

<div class="badges">

[![Build and test](https://github.com/arturwojnar/hermes/actions/workflows/build-and-test.yaml/badge.svg?branch=main)](https://github.com/arturwojnar/hermes/actions/workflows/build-and-test.yaml)

[![Deploy VitePress site to Pages](https://github.com/arturwojnar/hermes/actions/workflows/publish-docs.yaml/badge.svg)](https://github.com/arturwojnar/hermes/actions/workflows/publish-docs.yaml)

[![Publish to NPM](https://github.com/arturwojnar/hermes/actions/workflows/publish.yaml/badge.svg)](https://github.com/arturwojnar/hermes/actions/workflows/publish.yaml)

</div>
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"devDependencies": {
"@commitlint/cli": "~19.2.0",
"@commitlint/config-conventional": "~19.1.0",
"@jest/globals": "^29.7.0",
"@microsoft/tsdoc": "~0.14.2",
"@microsoft/tsdoc-config": "~0.16.2",
"@semantic-release/changelog": "~6.0.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
extends: '../../.eslintrc.js',
extends: '../../.eslintrc.cjs',
ignorePatterns: ['lib/'],
parserOptions: {
project: ['./tsconfig.json'],
},
Expand Down
6 changes: 0 additions & 6 deletions packages/hermes-mongodb/.eslintrc.js

This file was deleted.

38 changes: 0 additions & 38 deletions packages/hermes-mongodb/jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,7 @@ module.exports = {
tsconfig: 'tsconfig.jest.json',
},
},
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {},
// transform: {
// // '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
// // '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
// '^.+\\.m?[tj]sx?$': [
// 'ts-jest',
// {
// useESM: true,
// },
// ],
// },
testMatch: ['**/test/*.test.ts'],
testEnvironment: 'node',
testTimeout: 20000,
Expand All @@ -34,30 +21,5 @@ module.exports = {
},
modulePaths: ['<rootDir>'],
collectCoverage: true,
// clearMocks: true,
coverageDirectory: 'coverage',
// globals: {
// 'ts-jest': {
// tsConfig: 'tsconfig.json',
// },
// },
// transform: {
// '^.+\\.{ts|tsx}?$': [
// 'ts-jest',
// {
// babel: true,
// tsConfig: 'tsconfig.jest.json',
// },
// ],
// },
// moduleFileExtensions: ['ts', 'js', 'json'],
// // testMatch: ['**/?(*.)+(e2e.)(spec|test).ts', 'test/e2e/*.test.(ts)'],
// testMatch: ['**/test/*.test.ts'],
// testEnvironment: 'node',
// testTimeout: 20000,
// moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>' }),
// modulePaths: ['<rootDir>'],
// collectCoverage: true,
// // clearMocks: true,
// coverageDirectory: 'coverage',
}
3 changes: 2 additions & 1 deletion packages/hermes-mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "rollup -c",
"build:ts": "tsc -p tsconfig.build.json",
"clean": "rm -rf ./lib/",
"lint:eslint": "eslint '**/*.ts'",
"lint:eslint": "eslint 'src/**/*.ts'",
"lint:prettier": "prettier --check \"**/**/!(*.d).{ts,json,md}\"",
"lint-fix": "eslint --fix -f unix \"src/**/*.{ts,tsx}\"",
"prepare": "husky install",
Expand Down Expand Up @@ -44,6 +44,7 @@
],
"license": "ISC",
"devDependencies": {
"@jest/globals": "^29.7.0",
"@microsoft/tsdoc": "~0.14.2",
"@microsoft/tsdoc-config": "~0.16.2",
"@rollup/plugin-commonjs": "^25.0.7",
Expand Down
5 changes: 4 additions & 1 deletion packages/hermes-mongodb/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "./tsconfig.json",
"exclude": ["test/**/*.spec.ts", "test/**/*"]
"exclude": ["test/**/*.spec.ts", "test/**/*"],
"compilerOptions": {
"outDir": "./lib"
}
}
7 changes: 7 additions & 0 deletions packages/hermes/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
extends: '../../.eslintrc.cjs',
ignorePatterns: ['lib/'],
parserOptions: {
project: ['./tsconfig.json'],
},
}
2 changes: 1 addition & 1 deletion packages/hermes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "rollup -c",
"build:ts": "tsc -p tsconfig.build.json",
"clean": "rm -rf ./lib/",
"lint:eslint": "eslint '**/*.ts'",
"lint:eslint": "eslint 'src/**/*.ts'",
"lint:prettier": "prettier --check \"**/**/!(*.d).{ts,json,md}\"",
"lint-fix": "eslint --fix -f unix \"src/**/*.{ts,tsx}\"",
"semantic-release": "semantic-release",
Expand Down
5 changes: 4 additions & 1 deletion packages/hermes/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "./tsconfig.json",
"exclude": ["test/**/*.spec.ts", "test/**/*"]
"exclude": ["test/**/*.spec.ts", "test/**/*"],
"compilerOptions": {
"outDir": "./lib"
}
}

0 comments on commit d17dca9

Please sign in to comment.