Skip to content

Commit b29ab7e

Browse files
committed
chore(setup): Added travis, semantic-release and testing command
1 parent 0b160c2 commit b29ab7e

3 files changed

Lines changed: 27 additions & 11 deletions

File tree

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
8+
node_js:
9+
- iojs
10+
before_install:
11+
- npm i -g npm@^2.0.0
12+
before_script:
13+
- npm prune
14+
after_success:
15+
- npm run semantic-release

package.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "embed-js",
3-
"version": "3.0.0",
43
"description": "A jQuery plugin that analyses the string and automatically embeds emojis, media, maps, tweets, code and services.",
54
"keywords": [
65
"jquery-plugin",
@@ -14,10 +13,10 @@
1413
"main": "./src/jquery.embed.js",
1514
"repository": {
1615
"type": "git",
17-
"url": "https://github.com/ritz078/embed-js.git"
16+
"url": "https://github.com/ritz078/embed.js.git"
1817
},
1918
"bugs": {
20-
"url": "https://github.com/ritz078/embed-js/issues"
19+
"url": "https://github.com/ritz078/embed.js/issues"
2120
},
2221
"author": {
2322
"name": "Ritesh Kumar",
@@ -53,16 +52,15 @@
5352
"grunt-contrib-watch": "^0.6.1",
5453
"grunt-mocha": "^0.4.13",
5554
"grunt-postcss": "^0.5.5",
56-
"mocha": "^2.2.5"
55+
"mocha": "^2.2.5",
56+
"semantic-release": "^4.3.5"
5757
},
5858
"scripts": {
59-
"commit":"git-cz",
60-
"test": "mocha --compilers js:babel/register"
59+
"commit": "git-cz",
60+
"test": "mocha --compilers js:babel/register test/index.js",
61+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
6162
},
62-
"dependencies": {
63-
"jquery": "^2.1.4"
64-
},
65-
"czConfig":{
66-
"path":"node_modules/cz-conventional-changelog"
63+
"czConfig": {
64+
"path": "node_modules/cz-conventional-changelog"
6765
}
6866
}

test/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/**
2+
* Created by ritz078 on 20/09/15.
3+
*/

0 commit comments

Comments
 (0)