Skip to content

Commit 9b5ee40

Browse files
committed
Ported vscode-extension/templates/server.js
Scaffold package dependencies
0 parents  commit 9b5ee40

8 files changed

Lines changed: 4319 additions & 0 deletions

File tree

‎.eslintrc‎

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

‎.gitignore‎

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

‎.npmignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.eslintrc
2+
.vscode
3+
test/*
4+
README.md

‎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) 2023 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: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# lambda-edge-server
2+
3+
[AWS Lambda@Edge](https://aws.amazon.com/lambda/edge) handler emulator (HTTP server).
4+
5+
## Dependencies
6+
7+
- [Node.js](https://nodejs.org)
8+
9+
## Developers
10+
11+
### CLI options
12+
13+
Run [ESLint](https://eslint.org/) on project sources:
14+
15+
$ npm run lint
16+
17+
Run [Mocha](https://mochajs.org) integration tests:
18+
19+
$ npm run test
20+
21+
## References
22+
23+
- [Example origin request](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#example-origin-request)
24+
25+
## Contributions
26+
27+
If you fix a bug, or have a code you want to contribute, please send a pull-request with your changes. (Note: Before committing your code please ensure that you are following the [Node.js style guide](https://github.com/felixge/node-style-guide))
28+
29+
## Versioning
30+
31+
This package is maintained under the [Semantic Versioning](https://semver.org) guidelines.
32+
33+
## License and Warranty
34+
35+
This package is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
36+
37+
_lambda-edge-server_ is provided under the terms of the [MIT license](http://www.opensource.org/licenses/mit-license.php)
38+
39+
[AWS](https://aws.amazon.com) is a registered trademark of Amazon Web Services, Inc.
40+
41+
## Author
42+
43+
[Marc S. Brooks](https://github.com/nuxy)

0 commit comments

Comments
 (0)