Skip to content

Commit

Permalink
Release v0.1.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
achambers committed Aug 8, 2015
1 parent 09044c7 commit 091f707
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 4 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#### Community Contributions

- [#1](https://github.com/zapnito/ember-cli-deploy-build/pull/1) Update chalk to be a production dependency instead of dev [@achambers](https://github.com/achambers)
- [#2](https://github.com/zapnito/ember-cli-deploy-build/pull/2) Add circle.yml [@achambers](https://github.com/achambers)
- [#3](https://github.com/zapnito/ember-cli-deploy-build/pull/3) Add the index and assets paths to the data object [@achambers](https://github.com/achambers)
- [#4](https://github.com/zapnito/ember-cli-deploy-build/pull/4) Updated to be in line with how ember-cli-deploy handles context data [@achambers](https://github.com/achambers)
- [#6](https://github.com/zapnito/ember-cli-deploy-build/pull/6) Now we don't make a distinction between index and assets [@achambers](https://github.com/achambers)
- [#7](https://github.com/zapnito/ember-cli-deploy-build/pull/7) Now the `context.distFiles` prop doesn't contain the dist dir [@achambers](https://github.com/achambers)
- [#8](https://github.com/zapnito/ember-cli-deploy-build/pull/8) Add test coverage and willDeploy config validation [@lukemelia](https://github.com/lukemelia)
- [#9](https://github.com/zapnito/ember-cli-deploy-build/pull/9) Allow outputPath to be configurable [@lukemelia](https://github.com/lukemelia)
- [#10](https://github.com/zapnito/ember-cli-deploy-build/pull/10) A few tweaks to log output [@lukemelia](https://github.com/lukemelia)
- [#11](https://github.com/zapnito/ember-cli-deploy-build/pull/11) Implement `configure` hook for config validation instead of `willDeploy` [@achambers](https://github.com/achambers)
- [#12](https://github.com/zapnito/ember-cli-deploy-build/pull/12) Plugin base class restructure [@lukemelia](https://github.com/lukemelia)
- [#14](https://github.com/zapnito/ember-cli-deploy-build/pull/14) Ensure we are using the Builder from the project's version of ember-cli [@lukemelia](https://github.com/lukemelia)
- [#15](https://github.com/zapnito/ember-cli-deploy-build/pull/15) use path.sep instead of / for cross-platform compatibility [@duizendnegen](https://github.com/duizendnegen)
- [#16](https://github.com/zapnito/ember-cli-deploy-build/pull/16) Update README for 0.5.0 [@achambers](https://github.com/achambers)

Thank you to all who took the time to contribute!
82 changes: 82 additions & 0 deletions bin/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/usr/bin/env node
'use strict';

/*
* This script generates the template a changelog by comparing a current version
* with master. Run this, copy what's logged into the `CHANGELOG.md` and update
* the top section based on the changes listed in "Community Contributions"
*
* Usage:
*
* bin/changelog
*/

var EOL = require('os').EOL;
var multiline = require('multiline');
var Promise = require('ember-cli/lib/ext/promise');
var GitHubApi = require('github');

var github = new GitHubApi({version: '3.0.0'});
var compareCommits = Promise.denodeify(github.repos.compareCommits);
var currentVersion = 'v' + require('../package').version;

compareCommits({
user: 'zapnito',
repo: 'ember-cli-deploy-build',
base: currentVersion,
head: 'master'
}).then(function(res) {
return res.commits.map(function(commitInfo) {
return commitInfo.commit.message

}).filter(function(message) {
return message.indexOf('Merge pull request #') > -1;

}).map(function(message) {
var numAndAuthor = message.match(/#(\d+) from (.*)\//).slice(1,3);
var title = message.split('\n\n')[1];

return {
number: +numAndAuthor[0],
author: numAndAuthor[1],
title: title
};

}).sort(function(a, b) {
return a.number > b.number;
}).map(function(pr) {
var link = '[#' + pr.number + ']' +
'(https://github.com/zapnito/ember-cli-deploy-build/pull/' + pr.number + ')';
var title = pr.title;
var author = '[@' + pr.author + ']' +
'(https://github.com/' + pr.author +')';

return '- ' + link + ' ' + title + ' ' + author;

}).join('\n');

}).then(function(contributions) {
var changelog = generateChangelog(contributions);

console.log(changelog);
}).catch(function(err) {
console.error(err);
})

function generateChangelog(contributions) {
var header = multiline(function() {/*
The following changes are required if you are upgrading from the previous
version:
- Users
+ Upgrade your project's ember-cli version - [docs](http://www.ember-cli.com/#project-update)
- Addon Developers
+ No changes required
- Core Contributors
+ No changes required
#### Community Contributions
*/});

var footer = 'Thank you to all who took the time to contribute!';

return header + EOL + EOL + contributions + EOL + EOL + footer;
}
8 changes: 8 additions & 0 deletions bin/prepare-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

rm -rf node_modules && \
rm -rf ./ember-cli-deploy-build*.tgz && \
npm cache clear && \
npm i --no-optional && \
npm link --no-optional && \
npm pack
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-cli-deploy-build",
"version": "0.1.0",
"version": "0.1.0-beta.1",
"description": "A Build Plugin for ember-cli-deploy",
"directories": {
"doc": "doc",
Expand Down Expand Up @@ -34,17 +34,18 @@
"ember-disable-prototype-extensions": "^1.0.0",
"ember-export-application-global": "^1.0.2",
"ember-try": "0.0.4",
"glob": "^5.0.5",
"mocha": "^2.2.4"
"github": "^0.2.4",
"mocha": "^2.2.4",
"multiline": "^1.0.2"
},
"keywords": [
"ember-addon",
"ember-cli-deploy-plugin"
],
"dependencies": {
"chalk": "^1.0.0",
"ember-cli-deploy-plugin": "0.1.3",
"ember-cli-babel": "^5.0.0",
"ember-cli-deploy-plugin": "0.1.3",
"glob": "^5.0.5",
"rsvp": "^3.0.18"
},
Expand Down

0 comments on commit 091f707

Please sign in to comment.