Skip to content

Commit 09699e9

Browse files
committed
Initial commit
0 parents  commit 09699e9

File tree

13 files changed

+2811
-0
lines changed

13 files changed

+2811
-0
lines changed

.eslintrc

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"parser": "@typescript-eslint/parser",
7+
"parserOptions": {
8+
"ecmaVersion": 2021,
9+
"sourceType": "module"
10+
},
11+
"rules": {
12+
"array-bracket-spacing": [
13+
2,
14+
"never"
15+
],
16+
"block-scoped-var": 2,
17+
"brace-style": [
18+
2,
19+
"1tbs"
20+
],
21+
"camelcase": 1,
22+
"computed-property-spacing": [
23+
2,
24+
"never"
25+
],
26+
"curly": 2,
27+
"eol-last": 2,
28+
"eqeqeq": [
29+
2,
30+
"smart"
31+
],
32+
"max-depth": [
33+
1,
34+
3
35+
],
36+
"new-cap": 0,
37+
"no-extend-native": 2,
38+
"no-mixed-spaces-and-tabs": 2,
39+
"no-trailing-spaces": 2,
40+
"no-unused-vars": 0,
41+
"no-use-before-define": [
42+
2,
43+
"nofunc"
44+
],
45+
"object-curly-spacing": [
46+
2,
47+
"never"
48+
],
49+
"quotes": [
50+
2,
51+
"single",
52+
"avoid-escape"
53+
],
54+
"semi": [
55+
2,
56+
"always"
57+
],
58+
"keyword-spacing": [
59+
2,
60+
{
61+
"before": true,
62+
"after": true
63+
}
64+
],
65+
"space-unary-ops": 2
66+
}
67+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test/* -linguist-detectable

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Tests / Code Coverage
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
environment: ci
7+
strategy:
8+
matrix:
9+
node-version: ['20.x', '21.x']
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
# Node.js environment
14+
- name: Setup Node.js ${{ matrix.node-version }}
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: ${{ matrix.node-version }}
18+
- name: Install NPM dependencies
19+
run: npm ci
20+
- name: Run ESLint
21+
run: npm run lint
22+
- name: Run Mocha
23+
run: npm run test

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist
2+
node_modules
3+
npm-debug.log
4+
test-handler

.npmignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.github
2+
.eslintrc
3+
.gitattributes
4+
.vscode
5+
src
6+
test
7+
tsconfig.json

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"Arjun.swagger-viewer",
4+
"DavidAnson.vscode-markdownlint",
5+
"dbaeumer.vscode-eslint",
6+
"donjayamanne.githistory"
7+
]
8+
}

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"markdownlint.config": {
3+
"MD014": false,
4+
"MD024": {"siblings_only": true},
5+
"MD045": false,
6+
"MD046": false
7+
}
8+
}

LICENSE

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

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# L³ Swagger converter
2+
3+
Convert a Swagger/OpenAPI schema to a new [](https://github.com/lambda-lambda-lambda) application.
4+
5+
## Dependencies
6+
7+
- [Node.js](https://nodejs.org)
8+
9+
## Developers
10+
11+
### CLI options
12+
13+
Compile JavaScript sources from [TypeScript](https://www.typescriptlang.org) to a distribution:
14+
15+
$ npm run compile
16+
17+
Compile and listen for changes (development mode):
18+
19+
$ npm run watch
20+
21+
Run [ESLint](https://eslint.org/) on project sources:
22+
23+
$ npm run lint
24+
25+
Run [Mocha](https://mochajs.org) integration tests:
26+
27+
$ npm run test
28+
29+
## Author
30+
31+
[Marc S. Brooks](https://github.com/nuxy)

0 commit comments

Comments
 (0)