Skip to content

Commit

Permalink
Bumped version number
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergii Rudenko committed Mar 7, 2016
1 parent 4e16f0c commit 5a36a18
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
# boilerplate-component
# js-module-boilerplate

Simple boilerplate for JavaScript component.

## The Stack

[Gulp](http://gulpjs.com/) - tasks
[Babel](https://babeljs.io/) - transform ES6 to ES6
[Rollup](https://github.com/rollup/rollup) - bundling

##Structure

The root level of the contains the following directories and files:

* `src/` - source files
* `dist/` - final bundles
* `gulpfile.babel.js` - the gulp entry point + tasks
* `package.json` - package.json file with info and depth
8 changes: 5 additions & 3 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const conventionalGithubReleaser = require('conventional-github-releaser')

// Configs for all tasks
// Comments are just examples how to add posible configurations to the tasks

const rollupConf = {
entry: 'src/index.js',
plugins: [
Expand Down Expand Up @@ -59,7 +58,6 @@ gulp.task('watch', () => {
gulp.watch('style/*.styl', ['style'])
})


// Tasks for the github release
gulp.task('bump-ver', () => {
const options = { type: util.env.type || 'patch' }
Expand All @@ -68,13 +66,16 @@ gulp.task('bump-ver', () => {
.pipe(gulp.dest('./'))
})

//git commit task
gulp.task('commit-changes', () => gulp.src('.')
.pipe(git.add())
.pipe(git.commit('Bumped version number'))
)

//git push taks
gulp.task('push-changes', cb => git.push('origin', 'master', cb))

//git create new tag task
gulp.task('create-new-tag', cb => {
const version = JSON.parse(fs.readFileSync('./package.json', 'utf8')).version
git.tag(version, 'Created Tag for version: ' + version, error => {
Expand All @@ -83,11 +84,12 @@ gulp.task('create-new-tag', cb => {
})
})

//github release task
gulp.task('github-release', done => {
conventionalGithubReleaser({
type: 'oauth',
token: process.env.OAUTH // change this to your own GitHub token or use an environment variable
}, { preset: 'angular' }, done)
}, {}, done)
})

gulp.task('release', callback => {
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@
"es6",
"boilerplate",
"module",
"rollup",
"module-boilerplate",
"js-boilerplate",
"rollup-boilerplate",
"es6-boilerplate"
]
}

0 comments on commit 5a36a18

Please sign in to comment.