Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
fix: setup semantic release (#69)
Browse files Browse the repository at this point in the history
* Update .travis.yml to automatically deploy and run tests/linting
* Added Slack, Commitizen, and Semantic Release badges to README
* Cleaned up .gitignore and package.json
* Switched eslint configs to YAML files

closes #67
  • Loading branch information
cecilia-sanare committed Oct 22, 2016
1 parent fd69ecc commit e3e1a8d
Show file tree
Hide file tree
Showing 12 changed files with 124 additions and 239 deletions.
122 changes: 0 additions & 122 deletions .eslintrc

This file was deleted.

21 changes: 21 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
extends: google
globals:
Logging: true
rules:
comma-dangle:
- error
- arrays: never
objects: never
imports: never
exports: never
functions: never
max-nested-callbacks: 0
no-warning-comments: 0
require-jsdoc: 0
max-len: 0
object-curly-spacing: 0
one-var: 0
arrow-parens: 0
new-cap: 0
camelcase: 0
no-var: 0
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Auto detect text files and perform LF normalization
* text eol=lf
*.png binary
51 changes: 5 additions & 46 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,46 +1,5 @@
# NodeJS and Gulp Oriented GitIgnore file

# Packages #
############
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Build Systems #
#################
node_modules/

# Bower Directory #
###################
bower_components/
pkgs/

.sass-cache
*.css.map

# Gulp Build Directories #
##########################
dev/
release/
coverage/
node_modules
coverage
dist
npm-debug.log*
.nyc_output
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
29 changes: 13 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
sudo: false
language: node_js
node_js:
- stable
- iojs
- "node"
- "4"
cache:
directories:
- node_modules
branches:
only:
- master
before_script:
- npm prune
script:
- npm test
- npm run lint
- npm run test
after_script:
- npm install coveralls && coveralls < coverage/lcov.info
deploy:
provider: npm
email: [email protected]
api_key:
secure: FPoYvp2dH5Cvu2PyJQUuh5wHYFQMGQOpCF/gtCIJVFDysoguzM48DVv8ih5mGa231UWuMflYOAw5FSL5yzJIssqP88jnLfJ7U0Cng67yAIRAg1hC1vQy0QFxU/G9MB2fq8GhvAWlw6RCqUtvqlhavr/iGYgqRYx/fTtOQ2CnXSRu/Ws2/xURJloQ/dCGAGg5kHDqNhpbBLDDMi2YsWRS7Ih3QTkqi2dlOG7sCemxrMQ2ntboLX3I5QYSFVBZYXJeHPKZGiWKMzDlzGZEGFjGOAcXk2GqRik4HH6QIf85Abt3EZ7k8WpBqx/IrLBC9OJwFJwuoZO+97PoQj9piQGIl5VvDyTsgAaCjdlj3v6WxWM++e7KUNxkGuzTAV0WbdGCWHn0PXC159oUxABfmmNPbNY22C+/waAaavVNsB7ZEdW30Y8CibzGe+5VDG8rYehArxValuXz/KSeB3qDNjGixg3kb3bS31+4rrQmz1mepYVWO/WGjEnpSTYOWdalAfdx0dsxC2tLLQvg68UUtcnkDS80i/Uo8RmKLGAQX7t0NuO0tIWOzVPhWxei79AnvRzkKu84odYCN1b8DEoFbetDDdFizm/3livg3iKfwjMYEXKFZ6+CB8VKcguL6DSTX1MnXivD6VNByESKffA6PreaTyAvyL8v840+Zb3yL8TnuLU=
on:
branch: master
tags: true
- npm run report-coverage
- npm run semantic-release
notifications:
slack:
secure: ENKTdT08GhdFVnwUYfNp/S9/vdLjSettDlYKBNW1R4loPu8Z55n/fpQGvvvgm+G+aZrcEZb+pK9+ZmeLPm4dU1aCYILqAKHY90940XzyM7Xx5N7xnPl2LDwWhbXO8o5vYN0CJZksv3JBN8waUjNgpGKMX47kmSv9/uqec+1oKjExQCuIjpBm3DrGufh3pxCHc3bCacBba/hlnVMI9MWsdv7/UxExnKfOB5Z1nR67sJoRosBUo+UhZJZMcprcBk7XE+3py9xkW6LrbR2a60MguvVQTdTOEVX904e0ccttAzOZiYqFH/qaQ5iqKOuOUojNqHV7wHgm/Lw5a6mTSSEucYdyWdO6VYrn2LnWB0VKQHyqg07MzaVp85o49dR77+VgV3MEhqVHkLtTGr8tC1UPwSzUwurmu8l26TTiwfPCq0fBDc51q+kTVb2tJ48obUuXTmPkU+QqiG1m/1CAPLYOl8GwDPrWq9nNkQ12nDvfk7iumBBAsNc4+U/EZ9U2zzrQ30j9XsI1ukFinH5U8XeJSmKZae0+ddT+mTdM2X5M9O6QEqDg6N6/k/PvizkafhdxzwD1Wn89syRx7mrF84kLfbdQPBXaCEQ+/Sz1XL5tvUFjinJsEnWGQ08YZ7evWp0nOlisyGrAheo1PiAYvAxvMid1TpEjvC7VHOdJxHXybeI=
on_success: change # options: [always|never|change] default: always
email: false
email: change
12 changes: 6 additions & 6 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)
The MIT License

Copyright (c) 2015 Salte
Copyright (c) 2012-2016 the Salte Team, https://salte.io

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 All @@ -9,13 +9,13 @@ 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 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.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
44 changes: 33 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# Dry Parser
[![Slack Status][slack-image]][slack-url]
[![NPM Version][npm-version-image]][npm-url]
[![NPM Downloads][npm-downloads-image]][npm-url]
[![Travis][travis-ci-image]][travis-ci-url]
[![Coveralls][coveralls-image]][coveralls-url]

[![David Dependencies][david-dependencies-image]][david-dependencies-url]
[![David Dependencies][david-dev-dependencies-image]][david-dev-dependencies-url]
[![Commitizen friendly][commitizen-image]][commitizen-url]
[![semantic-release][semantic-release-image]][semantic-release-url]

A simple tool for parsing JavaScript objects to avoid repetition.

> This tool was primarily developed to parse config files.
## Installation

```
```sh
$ npm install dry-parser
```

Expand Down Expand Up @@ -105,7 +106,31 @@ lib = dry.parse(lib, dir);
```

## License
[MIT](https://github.com/salte-io/dry-parser/blob/master/LICENSE)

The MIT License

Copyright (c) 2012-2016 the Salte Team, https://salte.io

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.

[slack-image]: https://salte-slack.herokuapp.com/badge.svg
[slack-url]: https://salte-slack.herokuapp.com/

[npm-version-image]: http://img.shields.io/npm/v/dry-parser.svg?style=flat
[npm-downloads-image]: http://img.shields.io/npm/dm/dry-parser.svg?style=flat
Expand All @@ -117,11 +142,8 @@ lib = dry.parse(lib, dir);
[coveralls-image]: https://img.shields.io/coveralls/salte-io/dry-parser/master.svg
[coveralls-url]: https://coveralls.io/github/salte-io/dry-parser

[code-climate-gpa-image]: https://img.shields.io/codeclimate/github/salte-io/dry-parser.svg
[code-climate-coverage-image]: https://img.shields.io/codeclimate/coverage/github/salte-io/dry-parser.svg
[code-climate-url]: https://codeclimate.com/github/salte-io/dry-parser
[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[commitizen-url]: http://commitizen.github.io/cz-cli/

[david-dependencies-image]: https://img.shields.io/david/salte-io/dry-parser.svg
[david-dev-dependencies-image]: https://img.shields.io/david/dev/salte-io/dry-parser.svg
[david-dependencies-url]: https://david-dm.org/salte-io/dry-parser
[david-dev-dependencies-url]: https://david-dm.org/salte-io/dry-parser#info=devDependencies
[semantic-release-url]: https://github.com/semantic-release/semantic-release
[semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
17 changes: 0 additions & 17 deletions gulpfile.js

This file was deleted.

Loading

0 comments on commit e3e1a8d

Please sign in to comment.