Skip to content

Commit dda580d

Browse files
committed
inital project setup
1 parent 5f0261a commit dda580d

10 files changed

+6453
-0
lines changed

.editorconfig

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[*]
2+
charset=utf-8
3+
end_of_line=lf
4+
insert_final_newline=true
5+
indent_style=space
6+
indent_size=2
7+
8+
[{.eslintrc,.babelrc,jest.config,.stylelintrc,*.bowerrc,*.jsb3,*.jsb2,*.json}]
9+
indent_style=space
10+
indent_size=2
11+
12+
[{*.ts,*.ats}]
13+
indent_style=space
14+
indent_size=2
15+
16+
[{jshint.json,*.jshintrc}]
17+
indent_style=space
18+
indent_size=2
19+
20+
[{*.jscs.json,*.jscsrc}]
21+
indent_style=space
22+
indent_size=2
23+
24+
[{tsconfig.app.json,tsconfig.e2e.json,tsconfig.spec.json,tsconfig.json}]
25+
indent_style=space
26+
indent_size=2
27+
28+
[{*.ddl,*.sql}]
29+
indent_style=space
30+
indent_size=2
31+
32+
[*.js.map]
33+
indent_style=space
34+
indent_size=2
35+
36+
[*.conf]
37+
indent_style=space
38+
indent_size=2
39+
40+
[*.scss]
41+
indent_style=space
42+
indent_size=2
43+
44+
[{*.yml,*.yaml}]
45+
indent_style=space
46+
indent_size=2
47+

.github/workflows/nodejs.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [12.x]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: npm ci
28+
- run: npm run build --if-present
29+
- run: npm run test:coverage
30+
env:
31+
CI: true
32+
- name: Upload coverage to Codecov
33+
uses: codecov/codecov-action@v1
34+
with:
35+
file: ./coverage/coverage-final.json
36+
flags: unittests
37+
name: codecov-umbrella
38+
fail_ci_if_error: true
39+
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ./.npmrc
40+
- run: npm publish
41+
env:
42+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
43+
- uses: Klemensas/action-autotag@stable
44+
with:
45+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
node_modules
2+
# dependencies
3+
/node_modules
4+
/.pnp
5+
.pnp.js
6+
7+
*.tgz
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
/dist
14+
15+
# misc
16+
.DS_Store
17+
.env.local
18+
.env.development.local
19+
.env.test.local
20+
.env.production.local
21+
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cSpell.words": [
3+
"declapi"
4+
]
5+
}

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
2+
![Node.js CI](https://github.com/mmagyar/declapi/workflows/Node.js%20CI/badge.svg?branch=master)
3+
![Code coverage](https://img.shields.io/codecov/c/github/mmagyar/declapi)
4+
15
# declapi
26
Declarative API generation.

jest.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
roots: ['<rootDir>/src'],
3+
transform: {
4+
'^.+\\.tsx?$': 'ts-jest'
5+
},
6+
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
7+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node']
8+
}

0 commit comments

Comments
 (0)