Skip to content

Commit 888eb1c

Browse files
authored
Merge pull request #1 from CodeForBaltimore/initRepo
Init repo
2 parents 70c72da + e3c57f3 commit 888eb1c

21 files changed

+3957
-327
lines changed

.all-contributorsrc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"projectName": "lambda-restful-util",
3+
"projectOwner": "CodeForBaltimore",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
6+
"files": [
7+
"README.md"
8+
],
9+
"imageSize": 100,
10+
"commit": true,
11+
"commitConvention": "eslint",
12+
"contributors": [
13+
{
14+
"login": "revjtanton",
15+
"name": "Jason Anton",
16+
"avatar_url": "https://avatars.githubusercontent.com/u/6391564?v=4",
17+
"profile": "http://www.jasonanton.com/",
18+
"contributions": [
19+
"code",
20+
"doc"
21+
]
22+
},
23+
{
24+
"login": "suryayelagam",
25+
"name": "suryayelagam",
26+
"avatar_url": "https://avatars.githubusercontent.com/u/17008332?v=4",
27+
"profile": "https://github.com/suryayelagam",
28+
"contributions": [
29+
"review"
30+
]
31+
}
32+
],
33+
"contributorsPerLine": 7
34+
}

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.eslintrc

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:mocha/recommended",
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended"
12+
],
13+
"rules": {
14+
"indent": [
15+
"error",
16+
2
17+
],
18+
"linebreak-style": [
19+
"error",
20+
"unix"
21+
],
22+
"quotes": [
23+
"error",
24+
"single"
25+
],
26+
"semi": [
27+
"error",
28+
"never"
29+
]
30+
},
31+
"globals": {
32+
"__dirname": true,
33+
"__filename": true,
34+
"after": true,
35+
"before": true,
36+
"describe": true,
37+
"exports": true,
38+
"it": true,
39+
"process": true
40+
}
41+
}

.github/workflows/node.js.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Node.js CI
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ master ]
10+
branches: [ main ]
1111

1212
jobs:
1313
build:
@@ -20,11 +20,22 @@ jobs:
2020
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- name: Checkout repo
24+
uses: actions/checkout@v2
25+
with:
26+
fetch-depth: 2
27+
2428
- name: Use Node.js ${{ matrix.node-version }}
2529
uses: actions/setup-node@v1
2630
with:
2731
node-version: ${{ matrix.node-version }}
28-
- run: npm ci
29-
- run: npm run build --if-present
30-
- run: npm test
32+
33+
- name: Install dependencies
34+
run: npm ci
35+
- run: npm install
36+
- name: Run the tests
37+
run: npm test && npm run report
38+
- name: Upload coverage to Codecov
39+
uses: codecov/codecov-action@v1
40+
with:
41+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
node-version: 12
1818
- run: npm ci
1919
- run: npm test
20+
- run: npm run build
2021

2122
publish-npm:
2223
needs: build
@@ -28,9 +29,10 @@ jobs:
2829
node-version: 12
2930
registry-url: https://registry.npmjs.org/
3031
- run: npm ci
32+
- run: npm build
3133
- run: npm publish
3234
env:
33-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
35+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3436

3537
publish-gpr:
3638
needs: build
@@ -42,6 +44,7 @@ jobs:
4244
node-version: 12
4345
registry-url: https://npm.pkg.github.com/
4446
- run: npm ci
47+
- run: npm build
4548
- run: npm publish
4649
env:
4750
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
node_modules/
2+
.node_modules/
3+
built/*
4+
dist/
5+
.env
6+
.nyc_output
7+
tests/cases/rwc/*
8+
tests/cases/test262/*
9+
tests/cases/perf/*
10+
!tests/cases/webharness/compilerToString.js
11+
test-args.txt
12+
~*.docx
13+
\#*\#
14+
.\#*
15+
tests/baselines/local/*
16+
tests/baselines/local.old/*
17+
tests/services/baselines/local/*
18+
tests/baselines/prototyping/local/*
19+
tests/baselines/rwc/*
20+
tests/baselines/test262/*
21+
tests/baselines/reference/projectOutput/*
22+
tests/baselines/local/projectOutput/*
23+
tests/baselines/reference/testresults.tap
24+
tests/services/baselines/prototyping/local/*
25+
tests/services/browser/typescriptServices.js
26+
src/harness/*.js
27+
src/compiler/diagnosticInformationMap.generated.ts
28+
src/compiler/diagnosticMessages.generated.json
29+
src/parser/diagnosticInformationMap.generated.ts
30+
src/parser/diagnosticMessages.generated.json
31+
rwc-report.html
32+
*.swp
33+
build.json
34+
*.actual
35+
tests/webTestServer.js
36+
tests/webTestServer.js.map
37+
tests/webhost/*.d.ts
38+
tests/webhost/webtsc.js
39+
tests/cases/**/*.js
40+
!tests/cases/docker/*.js/
41+
tests/cases/**/*.js.map
42+
*.config
43+
scripts/eslint/built/
44+
scripts/debug.bat
45+
scripts/run.bat
46+
scripts/word2md.js
47+
scripts/buildProtocol.js
48+
scripts/ior.js
49+
scripts/authors.js
50+
scripts/configurePrerelease.js
51+
scripts/configureLanguageServiceBuild.js
52+
scripts/open-user-pr.js
53+
scripts/open-cherry-pick-pr.js
54+
scripts/processDiagnosticMessages.d.ts
55+
scripts/processDiagnosticMessages.js
56+
scripts/produceLKG.js
57+
scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.js
58+
scripts/generateLocalizedDiagnosticMessages.js
59+
scripts/request-pr-review.js
60+
scripts/*.js.map
61+
scripts/typings/
62+
coverage/
63+
internal/
64+
**/.DS_Store
65+
.settings
66+
**/.vs
67+
**/.vscode/*
68+
!**/.vscode/tasks.json
69+
!**/.vscode/settings.template.json
70+
!**/.vscode/launch.template.json
71+
!**/.vscode/extensions.json
72+
!tests/cases/projects/projectOption/**/node_modules
73+
!tests/cases/projects/NodeModulesSearch/**/*
74+
!tests/baselines/reference/project/nodeModules*/**/*
75+
.idea
76+
yarn-error.log
77+
.parallelperf.*
78+
tests/cases/user/*/package-lock.json
79+
tests/cases/user/*/node_modules/
80+
tests/cases/user/*/**/*.js
81+
tests/cases/user/*/**/*.js.map
82+
tests/cases/user/*/**/*.d.ts
83+
!tests/cases/user/zone.js/
84+
!tests/cases/user/bignumber.js/
85+
!tests/cases/user/discord.js/
86+
tests/baselines/reference/dt
87+
.failed-tests
88+
TEST-results.xml
89+
tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter
90+
tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter
91+
tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter
92+
tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter
93+
tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter
94+
tests/cases/user/create-react-app/create-react-app
95+
tests/cases/user/fp-ts/fp-ts
96+
tests/cases/user/webpack/webpack
97+
tests/cases/user/puppeteer/puppeteer
98+
tests/cases/user/axios-src/axios-src
99+
tests/cases/user/prettier/prettier
100+
.eslintcache

CONTRIBUTING.md

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,17 @@ Please note we have a [CODE OF CONDUCT](/docs/Code_of_Conduct.md), please follow
77

88
## Overview
99

10-
In this section you should provide a semi-detailed overview of your project. This overview should include a statement of the
11-
problem you're looking to solve, maybe some bullet points, and a statement defining the solution.
10+
This project aims to offer simple utilities for API development on AWS Lambda. Some of these utilities may work for other frameworks like Express, however this is just a happy coincidence.
1211

1312
### Non Goals
1413

15-
This should be a list of bullets of related features you are not planning to add to the project. This should be adjusted based
16-
on the maturity of the product.
17-
18-
### Minimum Viable Product
19-
20-
As with the _Non Goals_ this should be a bulleted list of features you will include in your product. This list can be adjusted
21-
based on the maturity of the product.
22-
23-
### Roadmap
24-
25-
Provide an esitmate of when work will be completed, or a link to any kanban boards you may have.
14+
This product does not aim to offer everything needed for RESTful development on AWS Lambda, just a jump-start. We are getting the low hanging fruit to speed up development, nothing more.
2615

2716
## Technology and Code
2817

29-
Provide a bulleted list of your applicable tech stack. Below is the standard sentence to link to the Best_Practices doc. You can also link
30-
to the Tech_Spec.
31-
32-
Please update the [Tech Spec](/docs/Tech_Spec.md) with a full breakdown of the project and workflows then link it here.
18+
This is an npm package so it's Typescript/Javascript.
3319

34-
Please update the [Best Practices](/docs/Best_Practices.md) with code standards, git standards, and other guidance for writing clean and well
35-
documented code then link it here.
20+
Please see [Best Practices](/docs/Best_Practices.md) for Typescript coding standards.
3621

3722
### Pull Request Process
3823

@@ -52,6 +37,3 @@ The best ways to get in touch with us is via Slack. An active Slack link can be
5237
***[codeforbaltimore.org](https://codeforbaltimore.org/)***
5338

5439
You can also reach out to the tech lead [Jason Anton](https://github.com/revjtanton) via email at [jason@codeforbaltimore.org](mailto:jason@codeforbaltimore.org).
55-
56-
## Sources and Links
57-
Provide any relevant links here.

0 commit comments

Comments
 (0)