From 815e48d09801456f126c96ed77b0749936438215 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Fri, 21 Feb 2020 22:09:02 -0600 Subject: [PATCH 01/10] ci(publish): enabled publishing with semantic-release --- .travis.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9e35d85..0c8e573 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,8 @@ -language: node_js +version: ~> 1.0 + +import: + - form8ion/.travi-ci:node.yml + - traverson/.travis-ci:authenticated-semantic-release-stage.yml node_js: - '10.6.0' @@ -6,9 +10,3 @@ node_js: - '7' - '8' - '9' - -sudo: false - -env: - global: - secure: CvWvWn6pDIBUUdi3gVmvLSbgojqqG0NDhKQv9k6dg4U/1wUT0nhaiFsQAeCiFxCv6fclMA/oLhz4O6TUMBDXLUGXrKixu5Nk4kzrIthjbbukXoZ4K//3H/r9M3Zas21StS25dMszryhcvH5CbnO4DQqaV5cXlg9uyVru3k97q4U= From 49389f7a752e3a60c6f12d98dfe9862e4804bb78 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Fri, 21 Feb 2020 22:15:18 -0600 Subject: [PATCH 02/10] docs(badges): pointed the travis badge at .com since the project has been migrated from .org --- readme.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.markdown b/readme.markdown index 0c308d4..77d3a35 100644 --- a/readme.markdown +++ b/readme.markdown @@ -4,7 +4,7 @@ traverson-angular AngularJS integration for Traverson, the JS Hypermedia Client ------------------------------------------------------------- -[![Build Status](https://travis-ci.org/traverson/traverson-angular.png?branch=master)](https://travis-ci.org/traverson/traverson-angular) +[![Build Status](https://img.shields.io/travis/com/traverson/traverson-angular.svg?branch=master)](https://travis-ci.com/traverson/traverson-angular) [![Dependency Status](https://david-dm.org/traverson/traverson-angular.png)](https://david-dm.org/traverson/traverson-angular) [![NPM](https://nodei.co/npm/traverson-angular.png?downloads=true&stars=true)](https://nodei.co/npm/traverson-angular/) [![Greenkeeper badge](https://badges.greenkeeper.io/traverson/traverson-angular.svg)](https://greenkeeper.io/) From 3679febfefe47f171197095d0fcee7c6892508a5 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Fri, 21 Feb 2020 22:20:04 -0600 Subject: [PATCH 03/10] ci(import): fixed the form8ion repo reference --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0c8e573..ae72820 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ version: ~> 1.0 import: - - form8ion/.travi-ci:node.yml + - form8ion/.travis-ci:node.yml - traverson/.travis-ci:authenticated-semantic-release-stage.yml node_js: From 152a74125f28f530875b67159416f7e9e31d851c Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Fri, 21 Feb 2020 23:10:01 -0600 Subject: [PATCH 04/10] ci(node-versions): dropped node versions that have reached EOL BREAKING CHANGE: node versions that have reached EOL are no longer supported --- .travis.yml | 7 ++----- package.json | 3 +++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index ae72820..68a0e4e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,5 @@ import: - traverson/.travis-ci:authenticated-semantic-release-stage.yml node_js: -- '10.6.0' -- '6' -- '7' -- '8' -- '9' +- '10' +- '12' diff --git a/package.json b/package.json index 87bd338..4f1061d 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "version": "6.1.0", "description": "AngularJS adapter for Traverson", "repository": "https://github.com/traverson/traverson-angular.git", + "engines": { + "node": ">= 10" + }, "main": "traverson-angular.js", "author": { "name": "Bastian Krol", From addb0ffe010db00fb219b9c65c0a9e024786c774 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Sat, 22 Feb 2020 22:25:51 -0600 Subject: [PATCH 05/10] ci(publish): defined the semantic-release config --- .releaserc.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 .releaserc.json diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..8f51124 --- /dev/null +++ b/.releaserc.json @@ -0,0 +1 @@ +{"extends": "@traverson/semantic-release-config"} From 25592c139334d691c2040547d9238de301df30f2 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Sat, 22 Feb 2020 22:29:37 -0600 Subject: [PATCH 06/10] chore(bower): dropped support for bower since bower itself recommends migrating away BREAKING CHANGE: Bower is no longer supported --- bower.json | 34 ---------------------------------- howto_release.markdown | 5 +---- readme.markdown | 4 ---- 3 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 bower.json diff --git a/bower.json b/bower.json deleted file mode 100644 index bc7139d..0000000 --- a/bower.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "traverson-angular", - "main": "browser/dist/traverson-angular.js", - "version": "6.1.0", - "homepage": "https://github.com/traverson/traverson-angular", - "authors": [ - "Bastian Krol " - ], - "description": "AngularJS integration for Traverson, the hypermedia API/HATEOAS client for Node.js and the browser", - "moduleType": [ - "amd" - ], - "keywords": [ - "AngularJS", - "Traverson", - "JSON", - "REST", - "API", - "HATEOAS", - "hypertext", - "hypermedia", - "HAL" - ], - "license": "MIT", - "ignore": [ - "**/.*", - "bin", - "bower_components", - "howto_release.markdown", - "node_modules", - "server", - "test" - ] -} diff --git a/howto_release.markdown b/howto_release.markdown index b6d3d9a..3c5c2b2 100644 --- a/howto_release.markdown +++ b/howto_release.markdown @@ -7,12 +7,9 @@ To release version x.y.z: - npm i - bump version in package.json to x.y.z (should match the used traverson version, at least the major and minor number) - bump version in package-lock.json to x.y.z (should match the used traverson version, at least the major and minor number) -- bump version in bower.json to x.y.z - `npm run build` (to create a fresh browser build, also make sure all tests pass etc.) -- First release? Then `bower register package-name git://github.com/user/repo.git` - `git commit -am"release x.y.z" && git push` - `npm publish` -- `git checkout -b release-x.y.z` (to create the release branch, required for bower) - `git add -f browser/dist/traverson-angular.*` (to add the build artifacts to the release branch) - `git commit -m"add build artifacts for release"` - `git push origin release-x.y.z` @@ -23,7 +20,7 @@ To release version x.y.z: - empty description - add all four JS files from browser/dist as "binaries" to the release - Publish release -- Why not just create a tag from the branch via git? Because we want to add the build artifacts to the GitHub relase as attachments (for users neither using npm or bower). This is only possible if the release was created via GitHub's web interface. Normal git tags show up as releases there too, but you can't add attachments or edit the release afterwards. Releases created via the web interface create a git tag automatically, however. +- Why not just create a tag from the branch via git? Because we want to add the build artifacts to the GitHub relase as attachments (for users not using npm). This is only possible if the release was created via GitHub's web interface. Normal git tags show up as releases there too, but you can't add attachments or edit the release afterwards. Releases created via the web interface create a git tag automatically, however. - `git checkout master` - `git branch -D release-x.y.z` - `git push origin :release-x.y.z` diff --git a/readme.markdown b/readme.markdown index 77d3a35..3264040 100644 --- a/readme.markdown +++ b/readme.markdown @@ -37,10 +37,6 @@ You can grab a download from the [latest release](https://github.com/traverson/t * `traverson.external.min.js`: Minified require/external build. Created with browserify's `--require` parameter and intended to be used (required) from other browserified modules, which were created with `--external traverson-angular`. This build could be used if you use browserify but do not want to bundle traverson-angular and Traverson with your own browserify build but keep it as a separate file. * `traverson.external.js`: Non-minified require/external build, same as before, just larger. -### Bower - -`bower install traverson-angular --save` - Usage ----- From 96863c7ce8f918db1e76bf83db26942ddcc5ad4c Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 23 Feb 2020 04:32:26 +0000 Subject: [PATCH 07/10] chore(release): 7.0.0-alpha.2 [skip ci] # [7.0.0-alpha.2](https://github.com/traverson/traverson-angular/compare/v7.0.0-alpha.1...v7.0.0-alpha.2) (2020-02-23) ### chore * **bower:** dropped support for bower ([25592c1](https://github.com/traverson/traverson-angular/commit/25592c139334d691c2040547d9238de301df30f2)) ### BREAKING CHANGES * **bower:** Bower is no longer supported --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12aa473..7008e67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +# [7.0.0-alpha.2](https://github.com/traverson/traverson-angular/compare/v7.0.0-alpha.1...v7.0.0-alpha.2) (2020-02-23) + + +### chore + +* **bower:** dropped support for bower ([25592c1](https://github.com/traverson/traverson-angular/commit/25592c139334d691c2040547d9238de301df30f2)) + + +### BREAKING CHANGES + +* **bower:** Bower is no longer supported + Release Notes ------------- From 135fd9cc5137ebb2e16053f8c62e303cba9fc7e9 Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Tue, 24 Mar 2020 22:03:35 -0500 Subject: [PATCH 08/10] build: split the gruntfile to enable running the build separately --- Gruntfile.js | 20 ++++++++++++++++---- package.json | 3 ++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 8e92261..48164aa 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -173,14 +173,26 @@ module.exports = function(grunt) { }); }); - grunt.registerTask('default', [ + grunt.registerTask('test', [ 'jshint', + ]); + + grunt.registerTask('test-browser', [ + 'start-test-server', + 'mocha', + 'stop-test-server', + ]); + + grunt.registerTask('build', [ 'clean', 'browserify', 'uglify', - 'start-test-server', - 'mocha', - 'stop-test-server' + ]); + + grunt.registerTask('default', [ + 'test', + 'build', + 'test-browser' ]); }; /* jshint +W106 */ diff --git a/package.json b/package.json index 4f1061d..431c24a 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "license": "MIT", "scripts": { "test": "grunt", - "build": "grunt" + "build": "grunt build", + "prepack": "npm run build" }, "config": { "commitizen": { From 39b2992b53be37baa0fd71d746d1c101667cc05c Mon Sep 17 00:00:00 2001 From: Matt Travi Date: Tue, 24 Mar 2020 22:28:37 -0500 Subject: [PATCH 09/10] build: limited the files included to the minimum required BREAKING CHANGE: limited the published files to those used by the public api. use of private files could break with this change --- .npmignore | 7 ------- package.json | 3 +++ 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index eca79d0..0000000 --- a/.npmignore +++ /dev/null @@ -1,7 +0,0 @@ -*.un~ -*.swp -.travis.yml -disc.html -test -browser/test/browserified_tests.js -browser/example diff --git a/package.json b/package.json index 431c24a..776e9fe 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,9 @@ "node": ">= 10" }, "main": "traverson-angular.js", + "files": [ + "traverson-angular.js" + ], "author": { "name": "Bastian Krol", "email": "bastian.krol@web.de" From eea081851f4e7f5a37224b1d5eb998ce6ad91ca5 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 25 Mar 2020 03:32:31 +0000 Subject: [PATCH 10/10] chore(release): 7.0.0-alpha.3 [skip ci] # [7.0.0-alpha.3](https://github.com/traverson/traverson-angular/compare/v7.0.0-alpha.2...v7.0.0-alpha.3) (2020-03-25) ### Build System * limited the files included to the minimum required ([39b2992](https://github.com/traverson/traverson-angular/commit/39b2992b53be37baa0fd71d746d1c101667cc05c)) ### BREAKING CHANGES * limited the published files to those used by the public api. use of private files could break with this change --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7008e67..8482bfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +# [7.0.0-alpha.3](https://github.com/traverson/traverson-angular/compare/v7.0.0-alpha.2...v7.0.0-alpha.3) (2020-03-25) + + +### Build System + +* limited the files included to the minimum required ([39b2992](https://github.com/traverson/traverson-angular/commit/39b2992b53be37baa0fd71d746d1c101667cc05c)) + + +### BREAKING CHANGES + +* limited the published files to those used by the public api. use of private files +could break with this change + # [7.0.0-alpha.2](https://github.com/traverson/traverson-angular/compare/v7.0.0-alpha.1...v7.0.0-alpha.2) (2020-02-23)