Skip to content

Commit

Permalink
feat(release): first release
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenbearkin committed Mar 9, 2017
1 parent 2544afd commit 6d7d6ee
Show file tree
Hide file tree
Showing 10 changed files with 1,543 additions and 442 deletions.
33 changes: 17 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
language: node_js
node_js: stable
sudo: false
install: true
os:
- linux

node_js: stable
cache:
yarn: true
directories:
- node_modules

branches:
only:
- master

before_script:
- npm install
- npm install -g coveralls nyc
- yarn global add coveralls nyc

script:
- npm run test && npm run lint
- yarn test && yarn lint

after_success:
- nyc report --reporter=text-lcov | coveralls
deploy:
provider: npm
email: huihangkin@gmail.com
api_key:
secure: mHKQ0VEL5yhHUNRHlIsKRnSrT60s0+mGtVeMROmxHx0ypHSx+JAXHq+8ye9k5CB4lSrGdYGPzQgNR0ae2SygsTz3/Do4pKYrXC5h8wcIiUmOBI1j0pIAV5FWqZIy7jgMhKXpsnfaDxDzRjllx1glZzw6XslC7Ca8BTSRUWrS2tQY9jkeeTLZ0Aw3AgV7XFxLJI491Rq51QdxQVvCiDilP19rsX/yllCdTeIHIT19PdHjQdA4jj5k67WDabGLqwLyzf//ohT29VFQwiqtObOXomK5/y/MUo2lCTcWXjOiro2KeA6+7Oi8LudT3bW+Lrm41mkjJqjYyFnOGv1wFeOb+E4ojVgeggUMFn1W+QpB1qgHtk2SHTjqodhP5t0OeJ9N9aNPtaAC7KL8qCKeyWAqX3PlADrgUQyVgbgy4WtP4QLF04ZSgUYaoulO7okbSfLe+29sSqO7/in7nPu9h24uBkPcXt1tdCsaQGlbLdPouOXzDxhz10ZRRORahKE4JGZbr4RTorcfX6R5VcHDh2UMTBt68aXLiRTZ9ANpB4v+L5l/IO9EAM+tU4JLIId9717WFvNqXrUlEQO0GFncaQplfhxRxvgiZKUDBbzKalBjFWEsncdsOZ5NSr60WHZxKjyqs6aPukMKBvyKTnH2D0ACSL+ifHgkRBp54z3GT4pIc10=
on:
tags: true
repo: goldenbearkin/signature-v4
- nyc report --reporter=text-lcov | coveralls
- yarn semantic-release
Empty file removed CHANGELOG.md
Empty file.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 goldenbearkin <huihangkin@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
23 changes: 10 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
[![Build Status](https://travis-ci.org/goldenbearkin/sig-v4.svg?branch=master)](https://travis-ci.org/goldenbearkin/sig-v4)
[![Coverage Status](https://coveralls.io/repos/github/goldenbearkin/sig-v4/badge.svg?branch=master)](https://coveralls.io/github/goldenbearkin/sig-v4?branch=master)
[![Build Status](https://travis-ci.org/goldenbearkin/signature-v4.svg?branch=master)](https://travis-ci.org/goldenbearkin/signature-v4)
[![Coverage Status](https://coveralls.io/repos/github/goldenbearkin/signature-v4/badge.svg?branch=master)](https://coveralls.io/github/goldenbearkin/signature-v4?branch=master)

# Typescript Library Boilerplate
# Signature V4

A minimal, fully-tested utility to sign HTTP request by AWS Signature Version 4. Intented to be used by some middlewares such as Apollo Client or Angular HTTP Client.

Signing by AWS Signature Version 4

# How to use?

# Commands list
````
````
## Appollo Client:
TODO

# Reference
## Angular
TODO

# Please help

Welcome for PR

# License

MIT

testing1
testing2
test-tag
MIT
File renamed without changes.
187 changes: 0 additions & 187 deletions mocha/lib/headers.ts

This file was deleted.

30 changes: 19 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
{
"name": "signature-v4",
"version": "1.0.0",
"version": "0.0.0-semantically-released",
"description": "AWS Signature Version 4",
"main": "signature-v4.bundle.js",
"jsnext:main": "signature-v4.js",
"module": "signature-v4.js",
"types": "signature-v4.d.ts",
"jsnext:main": "index.js",
"module": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "nyc --exclude lib/headers.ts --include lib/**/*.ts --extension .ts --require ts-node/register mocha test/**/*.spec.ts && shx rm -rf ./coverage",
"test:watch": "mocha -w --compilers ts:ts-node/register test/**/*.spec.ts",
"build": "rimraf dist && tsc -p tsconfig-esm.json && rollup -c rollup.config.js dist/signature-v4.js > dist/signature-v4.bundle.js && cp package.json dist && ts-node tools/cleanup.ts && cp README.md dist",
"lint": "tslint -c tslint.json lib/**/*.ts test/**/*.ts"
"build": "rimraf dist && tsc -p tsconfig-esm.json && rollup -c rollup.config.js dist/index.js > dist/signature-v4.bundle.js && cp package.json dist && ts-node tools/cleanup.ts && cp README.md dist",
"lint": "tslint -c tslint.json lib/**/*.ts test/**/*.ts",
"commit": "git-cz",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
"type": "git",
"url": "git+https://github.com/goldenbearkin/signature-v4.git"
"url": "https://github.com/goldenbearkin/signature-v4.git"
},
"keywords": [
"AWS",
"Signature Version 4"
],
"author": "Jason Hui <huihangkin@gmail.com>",
"author": "goldenbearkin <huihangkin@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/goldenbearkin/signature-v4/issues"
Expand All @@ -31,17 +33,23 @@
"@types/crypto-js": "^3.1.33",
"@types/mocha": "^2.2.39",
"@types/node": "^7.0.5",
"@types/sinon": "^1.16.35",
"chai": "^3.5.0",
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.0.0",
"mocha": "^3.2.0",
"nyc": "^10.1.2",
"rimraf": "^2.6.0",
"rollup": "^0.41.4",
"shx": "^0.2.2",
"sinon": "^1.17.7",
"ts-node": "^2.1.0",
"tslint": "^4.4.2",
"typescript": "^2.1.6"
"typescript": "^2.1.6",
"semantic-release": "^6.3.2"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"dependencies": {
"crypto-js": "^3.1.9-1"
Expand Down
Loading

0 comments on commit 6d7d6ee

Please sign in to comment.