Skip to content

Commit 091f707

Browse files
committed
Release v0.1.0-beta.1
1 parent 09044c7 commit 091f707

File tree

4 files changed

+113
-4
lines changed

4 files changed

+113
-4
lines changed

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#### Community Contributions
2+
3+
- [#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)
4+
- [#2](https://github.com/zapnito/ember-cli-deploy-build/pull/2) Add circle.yml [@achambers](https://github.com/achambers)
5+
- [#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)
6+
- [#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)
7+
- [#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)
8+
- [#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)
9+
- [#8](https://github.com/zapnito/ember-cli-deploy-build/pull/8) Add test coverage and willDeploy config validation [@lukemelia](https://github.com/lukemelia)
10+
- [#9](https://github.com/zapnito/ember-cli-deploy-build/pull/9) Allow outputPath to be configurable [@lukemelia](https://github.com/lukemelia)
11+
- [#10](https://github.com/zapnito/ember-cli-deploy-build/pull/10) A few tweaks to log output [@lukemelia](https://github.com/lukemelia)
12+
- [#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)
13+
- [#12](https://github.com/zapnito/ember-cli-deploy-build/pull/12) Plugin base class restructure [@lukemelia](https://github.com/lukemelia)
14+
- [#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+
- [#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+
- [#16](https://github.com/zapnito/ember-cli-deploy-build/pull/16) Update README for 0.5.0 [@achambers](https://github.com/achambers)
17+
18+
Thank you to all who took the time to contribute!

bin/changelog

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
#!/usr/bin/env node
2+
'use strict';
3+
4+
/*
5+
* This script generates the template a changelog by comparing a current version
6+
* with master. Run this, copy what's logged into the `CHANGELOG.md` and update
7+
* the top section based on the changes listed in "Community Contributions"
8+
*
9+
* Usage:
10+
*
11+
* bin/changelog
12+
*/
13+
14+
var EOL = require('os').EOL;
15+
var multiline = require('multiline');
16+
var Promise = require('ember-cli/lib/ext/promise');
17+
var GitHubApi = require('github');
18+
19+
var github = new GitHubApi({version: '3.0.0'});
20+
var compareCommits = Promise.denodeify(github.repos.compareCommits);
21+
var currentVersion = 'v' + require('../package').version;
22+
23+
compareCommits({
24+
user: 'zapnito',
25+
repo: 'ember-cli-deploy-build',
26+
base: currentVersion,
27+
head: 'master'
28+
}).then(function(res) {
29+
return res.commits.map(function(commitInfo) {
30+
return commitInfo.commit.message
31+
32+
}).filter(function(message) {
33+
return message.indexOf('Merge pull request #') > -1;
34+
35+
}).map(function(message) {
36+
var numAndAuthor = message.match(/#(\d+) from (.*)\//).slice(1,3);
37+
var title = message.split('\n\n')[1];
38+
39+
return {
40+
number: +numAndAuthor[0],
41+
author: numAndAuthor[1],
42+
title: title
43+
};
44+
45+
}).sort(function(a, b) {
46+
return a.number > b.number;
47+
}).map(function(pr) {
48+
var link = '[#' + pr.number + ']' +
49+
'(https://github.com/zapnito/ember-cli-deploy-build/pull/' + pr.number + ')';
50+
var title = pr.title;
51+
var author = '[@' + pr.author + ']' +
52+
'(https://github.com/' + pr.author +')';
53+
54+
return '- ' + link + ' ' + title + ' ' + author;
55+
56+
}).join('\n');
57+
58+
}).then(function(contributions) {
59+
var changelog = generateChangelog(contributions);
60+
61+
console.log(changelog);
62+
}).catch(function(err) {
63+
console.error(err);
64+
})
65+
66+
function generateChangelog(contributions) {
67+
var header = multiline(function() {/*
68+
The following changes are required if you are upgrading from the previous
69+
version:
70+
- Users
71+
+ Upgrade your project's ember-cli version - [docs](http://www.ember-cli.com/#project-update)
72+
- Addon Developers
73+
+ No changes required
74+
- Core Contributors
75+
+ No changes required
76+
#### Community Contributions
77+
*/});
78+
79+
var footer = 'Thank you to all who took the time to contribute!';
80+
81+
return header + EOL + EOL + contributions + EOL + EOL + footer;
82+
}

bin/prepare-release

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
rm -rf node_modules && \
4+
rm -rf ./ember-cli-deploy-build*.tgz && \
5+
npm cache clear && \
6+
npm i --no-optional && \
7+
npm link --no-optional && \
8+
npm pack

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ember-cli-deploy-build",
3-
"version": "0.1.0",
3+
"version": "0.1.0-beta.1",
44
"description": "A Build Plugin for ember-cli-deploy",
55
"directories": {
66
"doc": "doc",
@@ -34,17 +34,18 @@
3434
"ember-disable-prototype-extensions": "^1.0.0",
3535
"ember-export-application-global": "^1.0.2",
3636
"ember-try": "0.0.4",
37-
"glob": "^5.0.5",
38-
"mocha": "^2.2.4"
37+
"github": "^0.2.4",
38+
"mocha": "^2.2.4",
39+
"multiline": "^1.0.2"
3940
},
4041
"keywords": [
4142
"ember-addon",
4243
"ember-cli-deploy-plugin"
4344
],
4445
"dependencies": {
4546
"chalk": "^1.0.0",
46-
"ember-cli-deploy-plugin": "0.1.3",
4747
"ember-cli-babel": "^5.0.0",
48+
"ember-cli-deploy-plugin": "0.1.3",
4849
"glob": "^5.0.5",
4950
"rsvp": "^3.0.18"
5051
},

0 commit comments

Comments
 (0)