Skip to content

Commit b95ab05

Browse files
committed
feat: create a new packages
0 parents  commit b95ab05

File tree

16 files changed

+7054
-0
lines changed

16 files changed

+7054
-0
lines changed

.envrc.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export CONVENTIONAL_GITHUB_RELEASER_TOKEN=xxxxxxx

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
docs/
2+
examples/

.eslintrc.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
extends:
2+
- standard
3+
- plugin:@typescript-eslint/recommended
4+
plugins:
5+
- "@typescript-eslint"
6+
7+
parser: "@typescript-eslint/parser"
8+
env:
9+
es6: true
10+
node: true
11+
parserOptions:
12+
sourceType: 'module'
13+
ecmaFeatures:
14+
ts: true
15+
globals:
16+
describe: false
17+
it: false
18+
beforeEach: false
19+
afterEach: false
20+
beforeAll: false
21+
afterAll: false
22+
jasmine: false
23+
expect: false
24+
rules:
25+
"@typescript-eslint/explicit-function-return-type": off

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules/
2+
.DS_Store
3+
.envrc
4+
coverage/
5+
.idea/
6+
dist/
7+
examples/
8+
.rpt2_cache/

.huskyrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const tasks = arr => arr.join(' && ')
2+
module.exports = {
3+
'hooks': {
4+
'pre-commit': tasks([
5+
"lint-staged",
6+
]),
7+
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
8+
}
9+
}

.npmignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
tests/
2+
docs/
3+
.eslint*
4+
.gitignore
5+
.travis.yml
6+
node_modules/
7+
.DS_Store
8+
.envrc
9+
coverage/
10+
__tests__/
11+
libs/
12+
.idea/
13+
examples/
14+
.rpt2_cache/
15+
.huskyrc*
16+
commitlint.config.js
17+
.envrc*

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
nodejs:
3+
- 8
4+
- 10
5+
script:
6+
- npx @commitlint/travis-clid
7+
- yarn run lint
8+
- yarn run test -- --ci
9+
- yarn run build

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) 2019 Hidetaka Okamoto
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: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Lambda@edge function controller
2+
3+
Simply manager for Lambda@edge.
4+
5+
## Getting started
6+
7+
```
8+
$ git clone YOUR_REPO_URI
9+
$ cd YOUR_REPO_URI
10+
11+
// Put your GitHub Personal Access Token
12+
$ mv .envrc.example .envrc
13+
$ vim .envrc
14+
export CONVENTIONAL_GITHUB_RELEASER_TOKEN=PUT_YOUR_GITHUB_ACCESS_TOKEN
15+
16+
// Install
17+
$ yarn
18+
or
19+
$ npm install
20+
```
21+
22+
23+
## Commit message rule
24+
25+
The repository runs commitlint.
26+
We have to follow "Conventional Commit" to make a commit message.
27+
28+
https://www.conventionalcommits.org/en/v1.0.0-beta.4/
29+
30+
```bash
31+
$ git commit -m "<type>[optional scope]: <description>
32+
33+
[optional body]
34+
35+
[optional footer]"
36+
```
37+
38+
## Contribution
39+
40+
```bash
41+
// clone
42+
$ git clone git@github.com:hideokamoto/MY_REPO_NAME.git
43+
$ cd MY_REPO_NAME
44+
45+
// setup
46+
$ yarn
47+
48+
// Unit test
49+
$ yarn test
50+
or
51+
$ yarn run test:watch
52+
53+
// Lint
54+
$ yarn run lint
55+
or
56+
$ yarn run lint --fix
57+
58+
// Build
59+
$ yarn run build
60+
61+
// Rebuild docs
62+
$ yarn run doc
63+
```

0 commit comments

Comments
 (0)