Skip to content

Commit df45471

Browse files
fmalcherJohannesHoppe
authored andcommitted
fixes addon for latest angular-cli (since angular/angular-cli#2056 build-webpack is now a JS file)
1 parent 16fa71c commit df45471

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ But by design, the command is limited to the `gh-pages` branch of the same repos
1818
In contrast to this, the [Angular2Buch/angular-cli-ghpages](https://github.com/Angular2Buch/angular-cli-ghpages) addon is able to push to any branch on any repository. It's build on top of [tschaub/gh-pages](https://github.com/tschaub/gh-pages).
1919
__This addon works great on [Travis-CI](https://travis-ci.org/).__ No git credentials must be set up in before. Specific environment variables of Travis-CI are evaluated, too. You will like it!
2020

21-
angular-cli-ghpages was sucessfully tested against __`angular-cli: 1.0.0-beta.11-webpack.2`__.
21+
angular-cli-ghpages was sucessfully tested against __`angular-cli: 1.0.0-beta.17`__.
2222

2323

2424
## Installation & Setup

deploy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// and does not work in NPM 2 until ember-cli is directly in package.json
99
var Command = require.main.require('ember-cli/lib/models/command');
1010
var Promise = require.main.require('ember-cli/lib/ext/promise');
11-
var WebpackBuild = require.main.require('angular-cli/addon/ng2/tasks/build-webpack.ts'); // see angular-cli/lib/cli/index.js which hooks up on require calls to transpile TypeScript.
11+
var WebpackBuild = require.main.require('angular-cli/tasks/build-webpack');
1212

1313
var path = require('path');
1414
var fs = require('fs');
@@ -95,7 +95,7 @@ module.exports = Command.extend({
9595
// gh-pages: forwards messages to ui
9696
options.logger = function(message) { ui.write(message + "\n"); }
9797

98-
var buildTask = new WebpackBuild({
98+
var buildTask = new WebpackBuild.default({
9999
ui: this.ui,
100100
analytics: this.analytics,
101101
cliProject: this.project,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-cli-ghpages",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Angular CLI addon. Publish to any gh-pages branch on GitHub (or any other branch on any other remote).",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)