Skip to content

Commit 73f480a

Browse files
committed
feat: Version 1.0.0 released
1 parent f4a21c1 commit 73f480a

38 files changed

+8231
-0
lines changed

.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
*.json
3+
types
4+
dist
5+
examples
6+
/*.js
7+
/*.ts

.eslintrc.js

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
module.exports = {
2+
env: {
3+
es6: true,
4+
node: true,
5+
},
6+
globals: {
7+
jest: 'readonly',
8+
beforeAll: 'readonly',
9+
afterAll: 'readonly',
10+
beforeEach: 'readonly',
11+
afterEach: 'readonly',
12+
describe: 'readonly',
13+
test: 'readonly',
14+
expect: 'readonly',
15+
it: 'readonly',
16+
},
17+
extends: [
18+
'eslint:recommended',
19+
'plugin:@typescript-eslint/eslint-recommended',
20+
'airbnb-base',
21+
],
22+
parser: '@typescript-eslint/parser',
23+
parserOptions: {
24+
ecmaVersion: 2015,
25+
sourceType: 'module',
26+
},
27+
plugins: [
28+
'@typescript-eslint',
29+
],
30+
settings: {
31+
'import/resolver': {
32+
alias: {
33+
map: [
34+
['@', './src'],
35+
['@type', './types'],
36+
],
37+
extensions: ['.ts', '.d.ts', '.js'],
38+
},
39+
},
40+
},
41+
rules: {
42+
'no-console': 'off',
43+
'no-debugger': 'error',
44+
'max-len': ['error', {
45+
code: 100,
46+
ignoreUrls: true,
47+
ignoreStrings: true,
48+
ignoreTemplateLiterals: true,
49+
ignoreRegExpLiterals: true,
50+
ignoreComments: true,
51+
}],
52+
'import/extensions': [
53+
'error',
54+
'ignorePackages',
55+
{
56+
ts: 'never',
57+
},
58+
],
59+
'no-unused-vars': 'off',
60+
'@typescript-eslint/no-unused-vars': ['error'],
61+
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
62+
},
63+
};

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: 🐛Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report 🤗
10+
Make sure there aren't any open/closed issues for this topic 😃
11+
- type: input
12+
id: contact
13+
attributes:
14+
label: Contact Details
15+
description: How can we get in touch with you if we need more info?
16+
placeholder: ex. email@example.com
17+
validations:
18+
required: false
19+
- type: textarea
20+
id: what-happened
21+
attributes:
22+
label: What happened?
23+
description: Also tell us, what did you expect to happen?
24+
placeholder: Tell us what you see!
25+
validations:
26+
required: true
27+
- type: input
28+
id: version
29+
attributes:
30+
label: Version
31+
description: What version of our software are you running?
32+
placeholder: ex. 1.0.0
33+
validations:
34+
required: true
35+
- type: input
36+
id: environment
37+
attributes:
38+
label: Environment
39+
description: What environments are our software running at?
40+
placeholder: ex. macOS@12.2/Chrome@96/Go@1.4/Node@16.13.2
41+
validations:
42+
required: true
43+
- type: textarea
44+
id: logs
45+
attributes:
46+
label: Relevant log output
47+
description: Please copy and paste any relevant log output.
48+
render: shell
49+
- type: textarea
50+
id: additional-information
51+
attributes:
52+
label: Additional Information
53+
description: |
54+
Provide any additional information such as steps, screenshots, likes, scenarios in which the bug occurs so that it facilitates resolving the issue.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: ✨Feature Request
2+
description: Request a new feature or enhancement
3+
labels: ["enhancement"]
4+
title: "[FEAT]: "
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Please make sure this feature request hasn't been already submitted by someone by looking through other open/closed issues
10+
- type: textarea
11+
id: description
12+
attributes:
13+
label: Description
14+
description: Give us a brief description of the feature or enhancement you would like
15+
validations:
16+
required: true
17+
- type: textarea
18+
id: additional-information
19+
attributes:
20+
label: Additional Information
21+
description: Give us some additional information on the feature request like proposed solutions, links, screenshots, etc.

.github/pull_request_template.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--
2+
Thanks for creating this pull request 🤗
3+
4+
Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one.
5+
-->
6+
7+
<!-- If this pull request closes an issue, please mention the issue number below -->
8+
Closes # <!-- Issue # here -->
9+
10+
## 📑 Description
11+
<!-- Add a brief description of the pr -->
12+
13+
<!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax
14+
- [ ] Not Completed
15+
- [x] Completed
16+
-->
17+
18+
## ✅ Checks
19+
<!-- Make sure your pr passes the CI checks and do check the following fields as needed - -->
20+
- [ ] My pull request adheres to the code style of this project
21+
- [ ] My code requires changes to the documentation
22+
- [ ] I have updated the documentation as required
23+
- [ ] All the tests have passed
24+
25+
## 🧻 Additional Information
26+
<!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behavior, etc. -->
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build And Publish
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
testing:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node: [ '10', '12', '14', '16' ]
12+
name: Testing on node ${{ matrix.node }}
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Initial node enviroment
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: ${{ matrix.node }}
20+
- run: npm install
21+
- run: npm run test
22+
build-publish-tag:
23+
needs:
24+
- testing
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v3
29+
- name: Initial node enviroment
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: '14'
33+
- run: npm install
34+
- run: npm run build
35+
- name: Publish
36+
uses: JS-DevTools/npm-publish@v1
37+
with:
38+
token: ${{ secrets.NPM_ACCESS_TOKEN }}
39+
access: public
40+
- name: Read package.json
41+
uses: tyankatsu0105/read-package-version-actions@v1
42+
id: package-version
43+
- name: Create Release for Tag
44+
id: release_tag
45+
uses: actions/create-release@v1
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
with:
49+
tag_name: v${{ steps.package-version.outputs.version }}
50+
release_name: Release v${{ steps.package-version.outputs.version }}
51+
prerelease: false
52+
body: 'Click [change log](https://github.com/BillionBottle/pm2-intercom-log4js/blob/main/CHANGELOG.md) to see more.'

.github/workflows/testing.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Testing
2+
on:
3+
push:
4+
branches-ignore:
5+
- main
6+
jobs:
7+
testing:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node: [ '10', '12', '14', '16' ]
12+
name: Testing on node ${{ matrix.node }}
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Initial node enviroment
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: ${{ matrix.node }}
20+
- run: npm install
21+
- run: npm run test

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
node_modules
2+
.DS_Store
3+
.swc
4+
dist
5+
6+
# local env files
7+
*.local
8+
9+
# Log files
10+
*.log*
11+
12+
# Editor directories and files
13+
.idea
14+
.vscode/*
15+
!.vscode/settings.json
16+
*.suo
17+
*.ntvs*
18+
*.njsproj
19+
*.sln
20+
*.sw?

.npmignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
node_modules
2+
.*
3+
/__*__
4+
/examples
5+
/*config*
6+
7+
# local env files
8+
*.local
9+
10+
# Log files
11+
*.log*
12+
13+
# Editor directories and files
14+
.idea
15+
.vscode/*
16+
!.vscode/settings.json
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln
21+
*.sw?

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Changelog
2+
3+
- `Added` New features
4+
- `Changed` Changes to existing feature
5+
- `Removed` Features that have been removed
6+
- `Fixed` Bug fix
7+
- `Security` Improvements to Safety
8+
9+
## [1.0.0] - 2022-03-12
10+
11+
### Added
12+
13+
- Version 1.0.0 released @Juner

0 commit comments

Comments
 (0)