2
2
* js-data-http
3
3
* http://github.com/js-data/js-data-http
4
4
*
5
- * Copyright (c) 2014 Jason Dobry <http://www.js-data.io/js-data-http>
5
+ * Copyright (c) 2014-2015 Jason Dobry <http://www.js-data.io/js-data-http>
6
6
* Licensed under the MIT license. <https://github.com/js-data/js-data-http/blob/master/LICENSE>
7
7
*/
8
8
module . exports = function ( grunt ) {
@@ -42,27 +42,38 @@ module.exports = function (grunt) {
42
42
'* @author Jason Dobry <[email protected] >\n' +
43
43
'* @file js-data-http.min.js\n' +
44
44
'* @version <%= pkg.version %> - Homepage <http://www.js-data.io/docs/dshttpadapter>\n' +
45
- '* @copyright (c) 2014 Jason Dobry\n' +
45
+ '* @copyright (c) 2014-2015 Jason Dobry\n' +
46
46
'* @license MIT <https://github.com/js-data/js-data-http/blob/master/LICENSE>\n' +
47
47
'*\n' +
48
- '* @overview My Adapter .\n' +
48
+ '* @overview Http adapter for js-data .\n' +
49
49
'*/\n'
50
50
} ,
51
51
files : {
52
52
'dist/js-data-http.min.js' : [ 'dist/js-data-http.js' ]
53
53
}
54
54
}
55
55
} ,
56
- browserify : {
57
- options : {
58
- browserifyOptions : {
59
- standalone : 'DSHttpAdapter'
60
- } ,
61
- external : [ 'js-data' ]
62
- } ,
56
+ webpack : {
63
57
dist : {
64
- files : {
65
- 'dist/js-data-http.js' : [ 'src/index.js' ]
58
+ entry : './src/index.js' ,
59
+ output : {
60
+ filename : './dist/js-data-http.js' ,
61
+ libraryTarget : 'umd' ,
62
+ library : 'DSHttpAdapter'
63
+ } ,
64
+ externals : {
65
+ 'js-data' : {
66
+ amd : 'js-data' ,
67
+ commonjs : 'js-data' ,
68
+ commonjs2 : 'js-data' ,
69
+ root : 'JSData'
70
+ } ,
71
+ 'js-data-schema' : {
72
+ amd : 'js-data-schema' ,
73
+ commonjs : 'js-data-schema' ,
74
+ commonjs2 : 'js-data-schema' ,
75
+ root : 'Schemator'
76
+ }
66
77
}
67
78
}
68
79
} ,
@@ -114,10 +125,10 @@ module.exports = function (grunt) {
114
125
'* @author Jason Dobry <[email protected] >\n' +
115
126
'* @file js-data-http.js\n' +
116
127
'* @version ' + pkg . version + ' - Homepage <http://www.js-data.io/docs/dshttpadapter>\n' +
117
- '* @copyright (c) 2014 Jason Dobry \n' +
128
+ '* @copyright (c) 2014-2015 Jason Dobry \n' +
118
129
'* @license MIT <https://github.com/js-data/js-data-http/blob/master/LICENSE>\n' +
119
130
'*\n' +
120
- '* @overview My Adapter .\n' +
131
+ '* @overview Http adapter for js-data .\n' +
121
132
'*/\n' ;
122
133
123
134
file = banner + file ;
@@ -129,7 +140,7 @@ module.exports = function (grunt) {
129
140
grunt . registerTask ( 'build' , [
130
141
'clean' ,
131
142
'jshint' ,
132
- 'browserify ' ,
143
+ 'webpack ' ,
133
144
'banner' ,
134
145
'uglify:main'
135
146
] ) ;
0 commit comments