From b37939ebf428099c9deab8018ddd0fd8936ff166 Mon Sep 17 00:00:00 2001 From: Joakim Carlstein Date: Fri, 15 Sep 2017 10:28:35 +0200 Subject: [PATCH] feat: add semantic-release --- .npmrc | 1 + .travis.yml | 19 ++++++++++++++----- README.md | 24 +----------------------- package.json | 10 +++++----- 4 files changed, 21 insertions(+), 33 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..ae64359 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +//registry.npmjs.org/:_authToken=${NPM_TOKEN} diff --git a/.travis.yml b/.travis.yml index 1ea1ba1..730edbe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,17 @@ language: node_js +cache: + directories: + - node_modules +notifications: + email: false node_js: - - '0.12' - - '4' - - '5' + - '7' - '6' - -sudo: false + - '4' +before_script: + - npm prune +after_success: + - npm run semantic-release +branches: + except: + - /^v\d+\.\d+\.\d+$/ diff --git a/README.md b/README.md index 357f83b..a6d2def 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,6 @@ # gulp-inject ---- - -## HELP WANTED - -### Contributors are welcomed! - -**I don't have enough time to maintain this plugin as I would want to, so I'm looking for people who want to help out and be contributors/repository admins.** - -#### Interested? - -**Contact me! See `package.json` for contact information.** - ---- - -[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![XO code style][codestyle-image]][codestyle-url] [![Dependency Status][depstat-image]][depstat-url] +[![NPM version][npm-image]][npm-url] [![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) [![Build Status][travis-image]][travis-url] [![XO code style][codestyle-image]][codestyle-url] [![Dependency Status][depstat-image]][depstat-url] > A stylesheet, javascript and webcomponent reference injection plugin for [gulp](https://github.com/wearefractal/gulp). No more manual editing of your index.html! @@ -868,14 +854,6 @@ Default: `false` Affects the default `options.transform` function, see above. -#### options.quiet -Type: `Boolean` - -Default: `false` - -Lower the verbosity by setting this to true, suppressing the logging of successful injections. - - #### ~~options.templateString~~ ***DEPRECATED!*** diff --git a/package.json b/package.json index 6a1fe53..e3687fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gulp-inject", - "version": "4.2.1", + "version": "0.0.0-development", "description": "A javascript, stylesheet and webcomponent injection plugin for Gulp, i.e. inject file references into your index.html", "keywords": [ "gulpplugin", @@ -20,13 +20,13 @@ "main": "index.js", "repository": { "type": "git", - "url": "git://github.com/klei/gulp-inject.git" + "url": "https://github.com/klei/gulp-inject.git" }, "scripts": { "lint": "xo", "pretest": "npm run -s lint", "test": "mocha -R spec src/**/*_test.js", - "release": "standard-version" + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "dependencies": { "arrify": "^1.0.1", @@ -40,9 +40,9 @@ "devDependencies": { "mocha": "~2.0.1", "should": "^4.0.4", - "standard-version": "^2.2.1", "strip-color": "^0.1.0", - "xo": "^0.13.0" + "xo": "^0.13.0", + "semantic-release": "^7.0.2" }, "engines": { "node": ">=4"