Skip to content

Commit 5624250

Browse files
authored
Merge pull request #11 from OneSignal/update-repo
Repo maintenance updates
2 parents 11a3ee9 + 0899ff0 commit 5624250

File tree

6 files changed

+774
-10
lines changed

6 files changed

+774
-10
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
## January 2022
5+
6+
### `1.0.0-beta4` - 02/25/2022
7+
#### Added
8+
- .npmignore file
9+
10+
#### Fixed
11+
- Missing `dist` directory since npm was ignoring it due to lack of .npmignore

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Modified MIT License
2+
3+
Copyright 2022 OneSignal
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+
1. The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
2. All copies of substantial portions of the Software may only be used in connection
16+
with services provided by OneSignal.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24+
THE SOFTWARE.

README.md

Lines changed: 49 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,36 @@
1-
# Overview
1+
<h1 align="center">Welcome to @onesignal/node-onesignal 👋</h1>
2+
<p>
3+
<a href="https://www.npmjs.com/package/@onesignal/node-onesignal" target="_blank">
4+
<img alt="Version" src="https://img.shields.io/npm/v/@onesignal/node-onesignal.svg">
5+
</a>
6+
<a href="https://github.com/OneSignal/node-onesignal#readme" target="_blank">
7+
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
8+
</a>
9+
<a href="https://github.com/OneSignal/node-onesignal/graphs/commit-activity" target="_blank">
10+
<img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" />
11+
</a>
12+
<a href="https://twitter.com/onesignal" target="_blank">
13+
<img alt="Twitter: onesignal" src="https://img.shields.io/twitter/follow/onesignal.svg?style=social" />
14+
</a>
15+
</p>
16+
17+
> OpenAPI client for node-onesignal
18+
19+
### 🏠 [Homepage](https://github.com/OneSignal/node-onesignal#readme)
20+
### 🖤 [npm](https://www.npmjs.com/package/@onesignal/node-onesignal)
21+
22+
## 🚧 In Beta 🚧
23+
## Overview
224
This is a Node.js wrapper library over OneSignal REST API. You can create notifications, view apps, edit a device and all other actions you can take on OneSignal REST API. Includes Typescript support.
325

4-
# Installation
26+
# Install
527

6-
```
7-
npm install @onesignal/node-onesignal --save
8-
```
9-
10-
```
28+
```sh
29+
// yarn
1130
yarn add @onesignal/node-onesignal
31+
32+
// npm
33+
npm install @onesignal/node-onesignal --save
1234
```
1335

1436
# Usage
@@ -315,3 +337,23 @@ Outcome Data Limitations Outcomes are only accessible for around 30 days before
315337
```js
316338
client.getOutcomes(app.id, 'os__click.count,os_session_duration.count,my_outcome.sum');
317339
```
340+
341+
342+
## Author
343+
344+
* Website: https://onesignal.com
345+
* Twitter: [@onesignal](https://twitter.com/onesignal)
346+
* Github: [@OneSignal](https://github.com/OneSignal)
347+
348+
## 🤝 Contributing
349+
350+
Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://github.com/OneSignal/node-onesignal/issues).
351+
352+
## Show your support
353+
354+
Give a ⭐️ if this project helped you!
355+
356+
## 📝 License
357+
358+
Copyright © 2022 [OneSignal](https://github.com/OneSignal).<br />
359+
This project is [MIT](https://github.com/OneSignal/node-onesignal/blob/main/LICENSE) licensed.

RELEASE_INSTRUCTIONS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Release Instructions
2+
3+
1. Update version in package.json
4+
2. Update README.md with updated version number in version shield
5+
3. Document changes in CHANGELOG.md
6+
4. Merge changes into main branch
7+
5. Run `git pull` from local `main`
8+
5. Run `npm publish .`
9+
6. Draft a release
10+

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
"version": "1.0.0-beta4",
44
"description": "OpenAPI client for node-onesignal",
55
"author": "rgomezp",
6+
"homepage": "https://github.com/OneSignal/node-onesignal#readme",
67
"keywords": [
78
"typescript",
89
"node",
910
"openapi-client",
1011
"openapi-generator"
1112
],
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/OneSignal/node-onesignal"
16+
},
1217
"license": "MIT",
1318
"main": "./dist/index.js",
1419
"typings": "./dist/index.d.ts",
@@ -17,15 +22,16 @@
1722
"prepare": "npm run build"
1823
},
1924
"dependencies": {
20-
"node-fetch": "^2.6.0",
21-
"@types/node-fetch": "^2.5.7",
2225
"@types/node": "*",
23-
"form-data": "^2.5.0",
26+
"@types/node-fetch": "^2.5.7",
2427
"btoa": "^1.2.1",
2528
"es6-promise": "^4.2.4",
29+
"form-data": "^2.5.0",
30+
"node-fetch": "^2.6.0",
2631
"url-parse": "^1.4.3"
2732
},
2833
"devDependencies": {
34+
"readme-md-generator": "^1.0.0",
2935
"typescript": "^3.9.3"
3036
}
3137
}

0 commit comments

Comments
 (0)