Skip to content

Commit 0e299be

Browse files
committed
removeing gulp for good!
1 parent 4d9c0ca commit 0e299be

File tree

4 files changed

+6
-81
lines changed

4 files changed

+6
-81
lines changed

gulpfile.js

Lines changed: 0 additions & 72 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@
2828
"url": "https://github.com/shprink/wp-api-angularjs/issues"
2929
},
3030
"homepage": "https://github.com/shprink/wp-api-angularjs",
31-
"pearDependencies": {
32-
"restangular": "^1.4.0"
33-
},
3431
"devDependencies": {
32+
"angular": "^1.4.5",
3533
"babel-core": "^5.6.15",
3634
"babel-loader": "^5.2.2",
3735
"exports-loader": "^0.6.2",
@@ -47,7 +45,6 @@
4745
"webpack-dev-server": "~1.10.0"
4846
},
4947
"dependencies": {
50-
"angular": "^1.4.5",
5148
"js-base64": "^2.1.9"
5249
}
5350
}

test/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<head>
55
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6-
<title>Test wp-api-angularjs</title>
6+
<title>{%=o.htmlWebpackPlugin.options.pkg.title %}</title>
77
<style>
88
.error {
99
background-color: red;
@@ -35,7 +35,9 @@ <h2>Users</h2>
3535
<div ng-repeat="(name, result) in main.users" ng-class="{'success': result === 'OK', 'error': result === 'FAILED'}">{{name}}</div>
3636
<h2>Comments</h2>
3737
<div ng-repeat="(name, result) in main.comments" ng-class="{'success': result === 'OK', 'error': result === 'FAILED'}">{{name}}</div>
38-
<script src="{%=o.htmlWebpackPlugin.assets.main%}"></script>
38+
{% for (var chunk in o.htmlWebpackPlugin.files.chunks) { %}
39+
<script src="{%=o.htmlWebpackPlugin.files.chunks[chunk].entry %}"></script>
40+
{% } %}
3941
</body>
4042

4143
</html>

webpack.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ var path = require('path'),
66
pkg = require('./package.json'),
77
HtmlWebpackPlugin = require('html-webpack-plugin');
88

9-
console.log(JSdoc)
10-
119
module.exports = {
1210
entry: path.join(testPath, 'index.js'),
1311
output: {
@@ -29,7 +27,7 @@ module.exports = {
2927
},
3028
plugins: [new HtmlWebpackPlugin({
3129
filename: 'index.html',
32-
title: 'wp-api-angularjs',
30+
pkg: pkg,
3331
template: path.join(testPath, 'index.html')
3432
}), new JSdoc({
3533
glob: [

0 commit comments

Comments
 (0)