-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
1,595 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"presets": ["env"], | ||
"plugins": [ | ||
[ | ||
"transform-runtime", | ||
{ | ||
"polyfill": false, | ||
"regenerator": true | ||
} | ||
] | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Change Log | ||
|
||
## [Unreleased] | ||
### Added | ||
- Technical - Add babel. | ||
|
||
## RELEASE 2.16.9 - 2018-11-08 | ||
### Changed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
'rules': { | ||
'no-console': 0 | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
'use strict'; | ||
const moment = require('moment'); | ||
const fs = require('fs'); | ||
const simpleGit = require('simple-git')(); | ||
const semver = require('semver'); | ||
|
||
const BRANCH_MASTER = 'master'; | ||
const BRANCH_DEVEL = 'devel'; | ||
|
||
let numberToIncrement = 'patch'; | ||
if (process.argv && process.argv[3]) { | ||
const option = process.argv[3].replace('--', ''); | ||
if (['major', 'minor', 'patch'].indexOf(option) !== -1) { | ||
numberToIncrement = option; | ||
} | ||
} | ||
|
||
// VERSION | ||
const versionFile = fs.readFileSync('package.json').toString().split('\n'); | ||
let version = versionFile[3].match(/\w*"version": "(.*)",/)[1]; | ||
version = semver.inc(version, numberToIncrement); | ||
versionFile[3] = ' "version": "' + version + '",'; | ||
fs.writeFileSync('package.json', versionFile.join('\n')); | ||
|
||
// CHANGELOG | ||
const data = fs.readFileSync('CHANGELOG.md').toString().split('\n'); | ||
const today = moment().format('YYYY-MM-DD'); | ||
|
||
data.splice(3, 0, '\n## RELEASE ' + version + ' - ' + today); | ||
const text = data.join('\n'); | ||
|
||
simpleGit | ||
.checkout(BRANCH_DEVEL) | ||
.then(function() { console.log('Starting pull on ' + BRANCH_DEVEL + '...'); }) | ||
.pull(function(error) { if (error) { console.log(error); } }) | ||
.then(function() { console.log(BRANCH_DEVEL + ' pull done.'); }) | ||
.then(function() { fs.writeFileSync('CHANGELOG.md', text); }) | ||
.add(['CHANGELOG.md', 'package.json']) | ||
.commit('Release ' + version) | ||
.push() | ||
.checkout(BRANCH_MASTER) | ||
.then(function() { console.log('Starting pull on ' + BRANCH_MASTER + '...'); }) | ||
.pull(function(error) { if (error) { console.log(error); } }) | ||
.then(function() { console.log(BRANCH_MASTER + ' pull done.'); }) | ||
.mergeFromTo(BRANCH_DEVEL, BRANCH_MASTER) | ||
.push(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.