-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
113 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters