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/.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"} diff --git a/.travis.yml b/.travis.yml index 9e35d85..68a0e4e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,9 @@ -language: node_js +version: ~> 1.0 -node_js: -- '10.6.0' -- '6' -- '7' -- '8' -- '9' - -sudo: false +import: + - form8ion/.travis-ci:node.yml + - traverson/.travis-ci:authenticated-semantic-release-stage.yml -env: - global: - secure: CvWvWn6pDIBUUdi3gVmvLSbgojqqG0NDhKQv9k6dg4U/1wUT0nhaiFsQAeCiFxCv6fclMA/oLhz4O6TUMBDXLUGXrKixu5Nk4kzrIthjbbukXoZ4K//3H/r9M3Zas21StS25dMszryhcvH5CbnO4DQqaV5cXlg9uyVru3k97q4U= +node_js: +- '10' +- '12' diff --git a/CHANGELOG.md b/CHANGELOG.md index 12aa473..8482bfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,28 @@ +# [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) + + +### 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 ------------- 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/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/package.json b/package.json index f969421..9d21aaa 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,13 @@ "version": "6.1.0", "description": "AngularJS adapter for Traverson", "repository": "https://github.com/traverson/traverson-angular.git", + "engines": { + "node": ">= 10" + }, "main": "traverson-angular.js", + "files": [ + "traverson-angular.js" + ], "author": { "name": "Bastian Krol", "email": "bastian.krol@web.de" @@ -21,7 +27,8 @@ "license": "MIT", "scripts": { "test": "grunt", - "build": "grunt" + "build": "grunt build", + "prepack": "npm run build" }, "config": { "commitizen": { diff --git a/readme.markdown b/readme.markdown index 0c308d4..3264040 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/) @@ -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 -----