Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
add semantic-release 👀
Browse files Browse the repository at this point in the history
  • Loading branch information
spences10 committed Apr 10, 2017
1 parent 6d93046 commit e31d4a8
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 561 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '7'
- '6'
- '4'
before_script:
- npm prune
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
{
"name": "twitter-bot-bootstrap",
"version": "2.0.0",
"version": "0.0.0-development",
"description": "twitter bot bootstrap",
"main": "index.js",
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-preset-es2015": "^6.24.1",
"nodemon": "^1.11.0",
"standard": "^8.6.0"
"semantic-release": "^6.3.2"
},
"scripts": {
"start": "node src/index.js",
"test": "standard && node index.js",
"snyk-protect": "snyk protect",
"prepublish": "npm run snyk-protect",
"dev": "nodemon --exec babel-node src/index.js",
"build": "babel src --out-dir dist"
"build": "babel src --out-dir dist",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"author": "",
"license": "MIT",
Expand All @@ -26,5 +27,9 @@
"unique-random-array": "^1.0.0",
"unirest": "^0.5.1"
},
"snyk": true
"snyk": true,
"repository": {
"type": "git",
"url": "https://github.com/spences10/twitter-bot-bootstrap.git"
}
}
4 changes: 2 additions & 2 deletions src/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import config from './config'

let Twitter = new Twit(config.twitter)

function tweetNow(text) {
export const tweetNow = (text) => {
let tweet = {status: text}

Twitter.post('statuses/update', tweet, (err, data, response) => {
Expand All @@ -12,4 +12,4 @@ function tweetNow(text) {
})
}

tweetNow('hello world!')
tweetNow('hello')
Empty file added src/helpers/tweetNow.js
Empty file.
Loading

0 comments on commit e31d4a8

Please sign in to comment.