Skip to content

Commit

Permalink
feat: Adding semantic-release 🙀
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledMohamedP committed Jan 2, 2017
1 parent ebb1b91 commit e1971ba
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 27 deletions.
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '6'
- '4'
install:
- npm install
before_script:
- npm prune
script:
- npm run lint
- npm test
after_success:
- npm run semantic-release
branches:
only:
- master
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Translate a JSON Object
↳ Links: [NPM](https://www.npmjs.com/package/translate-json-object) | [GitHub](https://github.com/KhaledMohamedP/translate-json-object)

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/fd5819795ed745d2b793787849b5400d)](https://www.codacy.com/app/khaledmohamedp/translate-json-object?utm_source=github.com&utm_medium=referral&utm_content=KhaledMohamedP/translate-json-object&utm_campaign=Badge_Grade) [![Version](https://img.shields.io/npm/v/translate-json-object.svg?style=flat-square)](https://www.npmjs.com/package/translate-json-object) [![License](https://img.shields.io/npm/l/translate-json-object.svg?style=flat-square)](https://www.npmjs.com/package/translate-json-object) [![Downloads](http://img.shields.io/npm/dm/translate-json-object.svg?style=flat-square)](https://www.npmjs.com/package/translate-json-object)
[![Build Status](https://travis-ci.org/KhaledMohamedP/translate-json-object.svg?branch=master)](https://travis-ci.org/KhaledMohamedP/translate-json-object)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/fd5819795ed745d2b793787849b5400d)](https://www.codacy.com/app/khaledmohamedp/translate-json-object?utm_source=github.com&utm_medium=referral&utm_content=KhaledMohamedP/translate-json-object&utm_campaign=Badge_Grade) [![Version](https://img.shields.io/npm/v/translate-json-object.svg?style=flat)](https://www.npmjs.com/package/translate-json-object) [![License](https://img.shields.io/npm/l/translate-json-object.svg?style=flat)](https://www.npmjs.com/package/translate-json-object) [![Downloads](http://img.shields.io/npm/dm/translate-json-object.svg?style=flat)](https://www.npmjs.com/package/translate-json-object)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

A Node.js module to translate a JSON object from a detectable language to any other language currently via [google translate API](https://cloud.google.com/translate/docs) | [yandex translate](https://tech.yandex.com/translate/)

Expand Down Expand Up @@ -76,9 +78,11 @@ Translate an object to any given language, it returns a promise with the transla
## What's next?
#### TODO
* [] Adding yandex service v2.1.0
* [] Adding bing service
* [] Unit test v2.1.4
* [] JS Linting v2.1.3
* [] semantic-release-cli
* [] Adding bing translate service
* [] Adding cli utility

#### Reach out

Expand Down
58 changes: 36 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,26 @@
{
"name": "translate-json-object",
"version": "2.1.4",
"version": "0.0.0-development",
"description": "Translate a JSON object to any language via google or yandex translate API",
"main": "lib/translate-json-object.js",
"scripts": {
"commit": "git-cz",
"lint": "xo",
"test": "jest",
"coverage": "jest --coverage",
"test:watch": "jest --coverage --watch"
"test": "jest --coverage",
"test:watch": "jest --coverage --watchAll",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
"type": "git",
"url": "git+https://github.com/KhaledMohamedP/translate-json-object.git"
},
"keywords": [
"translate",
"object",
"JSON",
"google",
"translate"
],
"author": "Khaled Mohamed",
"license": "MIT",
"bugs": {
"url": "https://github.com/KhaledMohamedP/translate-json-object/issues"
},
"homepage": "https://github.com/KhaledMohamedP/translate-json-object#readme",
"dependencies": {
"google-translate": "1.0.7",
"lodash": "4.17.3",
"promise": "7.1.1",
"yandex-translate": "2.1.1"
},
"devDependencies": {
"commitizen": "2.9.3",
"cz-conventional-changelog": "1.2.0",
"jest": "18.0.0",
"semantic-release": "6.3.2",
"xo": "0.17.1"
},
"xo": {
Expand All @@ -44,5 +31,32 @@
"describe",
"it"
]
}
},
"jest": {
"coverageThreshold": {
"global": {
"branches": 85,
"functions": 85,
"lines": 85,
"statements": 85
}
}
},
"repository": {
"type": "git",
"url": "https://github.com/KhaledMohamedP/translate-json-object.git"
},
"keywords": [
"translate",
"object",
"JSON",
"google",
"translate"
],
"author": "Khaled Mohamed",
"license": "MIT",
"bugs": {
"url": "https://github.com/KhaledMohamedP/translate-json-object/issues"
},
"homepage": "https://github.com/KhaledMohamedP/translate-json-object#readme"
}

0 comments on commit e1971ba

Please sign in to comment.