@@ -16,15 +16,7 @@ module.exports = function (grunt) {
16
16
} ) ;
17
17
require ( 'time-grunt' ) ( grunt ) ;
18
18
19
- var webpack = require ( 'webpack' ) ;
20
19
var pkg = grunt . file . readJSON ( 'package.json' ) ;
21
- var banner = 'js-data\n' +
22
- '@version ' + pkg . version + ' - Homepage <http://www.js-data.io/>\n' +
23
- '@author Jason Dobry <jason.dobry@gmail.com>\n' +
24
- '@copyright (c) 2014-2015 Jason Dobry \n' +
25
- '@license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>\n' +
26
- '\n' +
27
- '@overview Robust framework-agnostic data store.' ;
28
20
29
21
// Project configuration.
30
22
grunt . initConfig ( {
@@ -68,30 +60,7 @@ module.exports = function (grunt) {
68
60
}
69
61
} ,
70
62
webpack : {
71
- dist : {
72
- debug : true ,
73
- entry : './src/index.js' ,
74
- output : {
75
- filename : './dist/js-data-debug.js' ,
76
- libraryTarget : 'umd' ,
77
- library : 'JSData'
78
- } ,
79
- module : {
80
- loaders : [
81
- { test : / ( s r c ) ( .+ ) \. j s $ / , exclude : / n o d e _ m o d u l e s / , loader : 'babel-loader?blacklist=useStrict&modules=commonStrict' }
82
- ] ,
83
- preLoaders : [
84
- {
85
- test : / ( s r c ) ( .+ ) \. j s $ | ( t e s t ) ( .+ ) \. j s $ / , // include .js files
86
- exclude : / n o d e _ m o d u l e s / , // exclude any and all files in the node_modules folder
87
- loader : "jshint-loader?failOnHint=true"
88
- }
89
- ]
90
- } ,
91
- plugins : [
92
- new webpack . BannerPlugin ( banner )
93
- ]
94
- }
63
+ dist : require ( './webpack.config.js' )
95
64
} ,
96
65
karma : {
97
66
options : {
@@ -111,8 +80,8 @@ module.exports = function (grunt) {
111
80
files : [
112
81
'node_modules/es6-promise/dist/es6-promise.js' ,
113
82
'dist/js-data.min.js' ,
114
- 'node_modules /js-data-http/dist/js-data-http.js' ,
115
- 'node_modules /js-data-localstorage/dist/js-data-localstorage.js' ,
83
+ 'bower_components /js-data-http/dist/js-data-http.js' ,
84
+ 'bower_components /js-data-localstorage/dist/js-data-localstorage.js' ,
116
85
'karma.start.js' ,
117
86
'test/both/**/*.js' ,
118
87
'test/browser/**/*.js'
0 commit comments