Skip to content

Commit

Permalink
Release/1.2.0 (#9)
Browse files Browse the repository at this point in the history
* Version bump to v1.2.0

* Update changelog to v1.2.0

* modify travis & release prepare

* remove node6

* Update CHANGELOG.md
  • Loading branch information
buehler authored Apr 12, 2017
1 parent 6508c85 commit 0429b4f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
language: node_js
node_js:
- '6'
- '7'

before_install:
- export TZ=Europe/Zurich
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
- sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq yarn

script:
- yarn test
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [1.2.0]
#### Added
- Possibility to serialize / deserialize `null`.

Expand All @@ -26,7 +28,8 @@ Library that does serialization and deserialization for JSON communication. It d
to support browsers as well in the future. The main reason is to use decorators to register the serializable models
and create a reliable json structure with those informations. Further information is found in the readme.

[Unreleased]: https://github.com/buehler/ts-json-serializer/compare/v1.1.0...master
[Unreleased]: https://github.com/buehler/ts-json-serializer/compare/v1.2.0...master
[1.2.0]: https://github.com/buehler/ts-json-serializer/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/buehler/ts-json-serializer/compare/v1.0.1...v1.1.0
[1.0.1]: https://github.com/buehler/ts-json-serializer/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/buehler/ts-json-serializer/compare/v0.9.0...v1.0.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-json-serializer",
"version": "1.1.0",
"version": "1.2.0",
"description": "Object serialization made easy with decorators.",
"main": "index.js",
"typings": "index.d.ts",
Expand Down
8 changes: 0 additions & 8 deletions prepare-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ packageJson = packageJson.replace(/"version": .*,/, `"version": "${versionNumber

fs.writeFileSync('./package.json', packageJson, { encoding: 'utf-8' });

console.log(`Update npm-shrinkwrap.json to version v${versionNumber}`);

let shrinkWrap = fs.readFileSync('./npm-shrinkwrap.json', 'utf-8');
shrinkWrap = shrinkWrap.replace(/"version": .*,/, `"version": "${versionNumber}",`);

fs.writeFileSync('./npm-shrinkwrap.json', shrinkWrap, { encoding: 'utf-8' });

console.log(`Update changelog`);

let changelog = fs.readFileSync('./CHANGELOG.md', 'utf-8');
Expand All @@ -39,7 +32,6 @@ fs.writeFileSync('./CHANGELOG.md', changelog, { encoding: 'utf-8' });
console.log('Commit *.json');

exec('git add package.json');
exec('git add npm-shrinkwrap.json');
exec(`git commit -m "Version bump to v${versionNumber}"`);

console.log('Commit changelog');
Expand Down

0 comments on commit 0429b4f

Please sign in to comment.