-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make things nice enough for release.
- Loading branch information
1 parent
af04029
commit ca4f952
Showing
29 changed files
with
9,291 additions
and
609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module.exports = { | ||
'env': { | ||
'browser': true, | ||
'commonjs': true, | ||
'es2021': true | ||
}, | ||
'extends': 'eslint:recommended', | ||
'overrides': [ | ||
{ | ||
'env': { | ||
'node': true | ||
}, | ||
'files': [ | ||
'.eslintrc.{js,cjs}' | ||
], | ||
'parserOptions': { | ||
'sourceType': 'script' | ||
} | ||
} | ||
], | ||
'parserOptions': { | ||
'ecmaVersion': 'latest' | ||
}, | ||
'globals': { | ||
'__dirname': 'readonly', | ||
'process': 'writable', | ||
}, | ||
'rules': { | ||
'linebreak-style': [ | ||
'error', | ||
'unix' | ||
], | ||
'semi': [ | ||
'error', | ||
'always' | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: validate | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16, 18, 20] | ||
|
||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Validate | ||
working-directory: ./ | ||
run: | | ||
npm i | ||
env PGUSER=postgres PGPASSWORD=postgres npm run test:setup-db | ||
env SUP_SQL_TEST_DSN=postgres://postgres:postgres@127.0.0.1/test npm run validate | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v4.0.1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: vampirical/supple-sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
node_modules | ||
|
||
coverage | ||
docs | ||
|
||
.idea | ||
**/*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
coverage/tmp | ||
|
||
.idea | ||
**/*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Supple SQL | ||
|
||
[![validate](https://github.com/vampirical/supple-sql/actions/workflows/validate.yml/badge.svg)](https://github.com/vampirical/supple-sql/actions/workflows/validate.yml) | ||
[![codecov](https://codecov.io/gh/vampirical/supple-sql/graph/badge.svg?token=R6DEXGFIB5)](https://codecov.io/gh/vampirical/supple-sql) | ||
|
||
*Minimal viable PostgreSQL only ORM, does as little as it can get away with.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"source": { | ||
"include": ["src", "package.json", "README.md"], | ||
"includePattern": ".js$", | ||
"excludePattern": "(node_modules/|docs)" | ||
}, | ||
"plugins": ["plugins/markdown"], | ||
"opts": { | ||
"destination": "docs/", | ||
"encoding": "utf8", | ||
"readme": "./README.md", | ||
"recurse": true, | ||
"template": "./node_modules/clean-jsdoc-theme", | ||
"tutorials": "tutorials/" | ||
}, | ||
"markdown": { | ||
"hardwrap": false, | ||
"idInHeadings": true | ||
} | ||
} |
Oops, something went wrong.