Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enabled semantic-release #63

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .npmignore

This file was deleted.

1 change: 1 addition & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"extends": "@traverson/semantic-release-config"}
19 changes: 7 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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'
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
-------------

Expand Down
20 changes: 16 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
34 changes: 0 additions & 34 deletions bower.json

This file was deleted.

5 changes: 1 addition & 4 deletions howto_release.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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`
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -21,7 +27,8 @@
"license": "MIT",
"scripts": {
"test": "grunt",
"build": "grunt"
"build": "grunt build",
"prepack": "npm run build"
},
"config": {
"commitizen": {
Expand Down
6 changes: 1 addition & 5 deletions readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down Expand Up @@ -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
-----

Expand Down