-
Notifications
You must be signed in to change notification settings - Fork 532
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
7 changed files
with
216 additions
and
213 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
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
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
// require all test files (files that ends with .spec.js) | ||
var testsContext = require.context('./specs', true, /\.spec$/); | ||
var testsContext = require.context("./specs", true, /\.spec$/); | ||
testsContext.keys().forEach(testsContext); | ||
|
||
|
||
// require all src files except main.js for coverage. | ||
// you can also change this to match only the subset of files that | ||
// you want coverage for. | ||
var srcContext = require.context('src', true, /\.(js|vue)$/); | ||
var srcContext = require.context("src", true, /\.(js|vue)$/); | ||
srcContext.keys().forEach(srcContext); |
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
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 |
---|---|---|
@@ -1,74 +1,75 @@ | ||
var path = require("path"); | ||
var webpack = require('webpack'); | ||
var sourceDir = path.resolve(__dirname, '../../src'); | ||
|
||
module.exports = { | ||
devtool: '#inline-source-map', | ||
module: { | ||
preLoaders: [ | ||
{ | ||
test: /\.js$/, | ||
loader: 'isparta', | ||
include: sourceDir, | ||
exclude: /node_modules/ | ||
} | ||
], | ||
devtool: '#inline-source-map', | ||
module: { | ||
preLoaders: [ | ||
{ | ||
test: /\.js$/, | ||
loader: 'isparta', | ||
include: sourceDir, | ||
exclude: /node_modules/ | ||
} | ||
], | ||
|
||
loaders: [ | ||
{ | ||
"test": /\.vue$/, | ||
"loader": "vue" | ||
}, | ||
{ | ||
"test": /\.js$/, | ||
//"include": /test\/unit/, | ||
"exclude": /node_modules/, | ||
"loader": "babel" | ||
}, | ||
{ | ||
"test": /\.css?$/, | ||
"loader": "style!css" | ||
}, | ||
{ | ||
"test": /\.scss?$/, | ||
"loader": "style!css!sass" | ||
}, | ||
{ | ||
"test": /\.jade?$/, | ||
"loader": "jade" | ||
}, | ||
{ | ||
test: /\.(woff2?|svg)$/, | ||
loader: 'url' | ||
//loader: 'url?limit=10000' | ||
}, | ||
{ | ||
test: /\.(ttf|eot)$/, | ||
loader: 'url' | ||
} | ||
], | ||
noParse: [ | ||
/node_modules\/sinon\//, | ||
] | ||
}, | ||
loaders: [ | ||
{ | ||
"test": /\.vue$/, | ||
"loader": "vue" | ||
}, | ||
{ | ||
"test": /\.js$/, | ||
//"include": /test\/unit/, | ||
"exclude": /node_modules/, | ||
"loader": "babel" | ||
}, | ||
{ | ||
"test": /\.css?$/, | ||
"loader": "style!css" | ||
}, | ||
{ | ||
"test": /\.scss?$/, | ||
"loader": "style!css!sass" | ||
}, | ||
{ | ||
"test": /\.jade?$/, | ||
"loader": "jade" | ||
}, | ||
{ | ||
test: /\.(woff2?|svg)$/, | ||
loader: 'url' | ||
//loader: 'url?limit=10000' | ||
}, | ||
{ | ||
test: /\.(ttf|eot)$/, | ||
loader: 'url' | ||
} | ||
], | ||
noParse: [ | ||
/node_modules\/sinon\//, | ||
] | ||
}, | ||
|
||
resolve: { | ||
packageAlias: 'browser', | ||
alias: { | ||
'src': sourceDir, | ||
'sinon': 'sinon/pkg/sinon' | ||
} | ||
}, | ||
plugins: [ | ||
], | ||
resolve: { | ||
packageAlias: 'browser', | ||
alias: { | ||
'src': sourceDir, | ||
'sinon': 'sinon/pkg/sinon' | ||
} | ||
}, | ||
plugins: [ | ||
], | ||
|
||
vue: { | ||
autoprefixer: { | ||
browsers: ['last 2 versions'] | ||
}, | ||
loaders: { | ||
js: 'isparta' | ||
} | ||
} | ||
vue: { | ||
autoprefixer: { | ||
browsers: ['last 2 versions'] | ||
}, | ||
loaders: { | ||
js: 'isparta' | ||
} | ||
} | ||
|
||
}; |
Oops, something went wrong.