Skip to content

chore: prep the repo for automated releasing #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
language: node_js
node_js:
- "4"
- "5"
- "6"
- "7"
- "8"
notifications:
hipchat:
rooms:
secure: HFEXR61FFkjN6D1k33pg/8/rqEAqSRG4Xdv0gcJohCXQHoSALeZ9O9en3iozBHGIecNWYtfkAhsvya+PwNSEDL4wNVkTvjNGuwwV1dFgo3EWnrG1D7SgaFWETih674ihSd6dv1OqmWPcNbavvfRWM/JM+w3n/m8aNN8EcHzh/2U=
template:
- '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
<a href="https://github.com/%{repository}/commits/%{commit}">View on GitHub</a>'
format: html
- "4"
- "5"
- "6"
- "7"
- "8"
- "10"
- "lts/*"
- "node"
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Change Log
All notable changes to this project will be documented in this file.

## [1.3.1] - 2017-4-10
[2017-04-10] Version 1.3.1
--------------------------
### Fixed
- #16 fix issue where concat was used incorrectly
- Thanks to [Limian Wang](https://github.com/limianwang) for the PR!
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013-2018 SendGrid, Inc.
Copyright (c) 2013-2020 Twilio SendGrid, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.PHONY: clean install test

clean:
@rm -rf node_modules

install: clean
npm install

test: install
npm test
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,10 @@ source ./sendgrid.env

The following recommended installation requires [npm](https://npmjs.org/). If you are unfamiliar with npm, see the [npm docs](https://npmjs.org/doc/). Npm comes installed with Node.js since node version 0.8.x therefore you likely already have it.

Add the following to your `package.json` file:

```json
{
...
"dependencies": {
...
"smtpapi": "1.3.1"
}
}
```

Install smtpapi-nodejs and its dependencies:

```bash
npm install
npm install smtpapi
```

## Dependencies
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"devDependencies": {
"mocha": "3.5.3",
"should": "13.1.2"
},
},
"contributors": [
{
"name": "Yamil Asusta",
Expand Down
20 changes: 2 additions & 18 deletions test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ describe('smtapi', function() {
header = new smtpapi();
});

it('version should be set', function() {
header.version.should.eql("1.3.1");
});

it('has a jsonString method', function() {
header.jsonString().should.eql(t.json_string);
});
Expand Down Expand Up @@ -147,14 +143,6 @@ describe('smtapi', function() {
});

describe('smtapi-nodejs repo', function() {
it('should have ./Docker or docker/Docker file', function() {
assert(fileExists('Docker') || fileExists('docker/Docker'));
});

it('should have ./docker-compose.yml or ./docker/docker-compose.yml file', function() {
assert(fileExists('docker-compose.yml') || fileExists('docker/docker-compose.yml'));
});

it('should have ./.env_sample file', function() {
assert(fileExists('.env_sample'));
});
Expand Down Expand Up @@ -187,8 +175,8 @@ describe('smtapi-nodejs repo', function() {
assert(fileExists('.github/ISSUE_TEMPLATE'));
});

it('should have ./LICENSE.md file', function() {
assert(fileExists('LICENSE.md'));
it('should have ./LICENSE.txt file', function() {
assert(fileExists('LICENSE.txt'));
});

it('should have ./.github/PULL_REQUEST_TEMPLATE file', function() {
Expand All @@ -207,10 +195,6 @@ describe('smtapi-nodejs repo', function() {
assert(fileExists('USAGE.md'));
});

it('should have ./USE_CASES.md file', function() {
assert(fileExists('USE_CASES.md'));
});

function fileExists(filepath) {
try {
return fs.statSync(filepath).isFile();
Expand Down