File tree Expand file tree Collapse file tree 7 files changed +13
-48
lines changed Expand file tree Collapse file tree 7 files changed +13
-48
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -30,14 +30,6 @@ module.exports = {
3030 test : / \. v u e $ / ,
3131 loader : 'vue' ,
3232 } ,
33- {
34- test : / \. j s $ / ,
35- loader : 'babel' ,
36- include : [
37- path . join ( projectRoot , 'example' ) ,
38- ] ,
39- exclude : / n o d e _ m o d u l e s / ,
40- } ,
4133 {
4234 test : / \. j s o n $ / ,
4335 loader : 'json' ,
Original file line number Diff line number Diff line change 33</template >
44
55<script >
6- import Clock from ' ../Clock' ;
6+ const Clock = require ( ' ../Clock' ) ;
77
8- export default {
8+ module . exports = {
99 name: ' app' ,
1010 components: {
1111 Clock,
Original file line number Diff line number Diff line change 11// The Vue build version to load with the `import` command
22// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
3- import Vue from 'vue' ;
4- import App from './App' ;
3+ const Vue = require ( 'vue' ) ;
4+ const App = require ( './App' ) ;
55
66/* eslint-disable no-new */
77new Vue ( {
Original file line number Diff line number Diff line change 77 "scripts" : {
88 "dev" : " node build/dev-server.js" ,
99 "build" : " node build/build.js" ,
10- "unit" : " cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run" ,
10+ "unit" : " karma start test/unit/karma.conf.js --single-run" ,
1111 "test" : " npm run unit" ,
1212 "lint:fix" : " eslint --ext .js,.vue Clock.vue test/unit/specs --fix"
1313 },
3838 },
3939 "devDependencies" : {
4040 "avoriaz" : " ^1.8.2" ,
41- "babel-core" : " ^6.0.0" ,
42- "babel-eslint" : " ^7.0.0" ,
43- "babel-loader" : " ^6.0.0" ,
44- "babel-plugin-istanbul" : " ^3.0.0" ,
45- "babel-preset-es2015" : " ^6.0.0" ,
46- "babel-preset-stage-2" : " ^6.0.0" ,
47- "babel-register" : " ^6.0.0" ,
4841 "chai" : " ^3.5.0" ,
4942 "chalk" : " ^1.1.3" ,
50- "connect-history-api-fallback " : " ^1.1.0" ,
43+ "connect-history-api-fallba§ck " : " ^1.1.0" ,
5144 "cross-env" : " ^3.1.4" ,
5245 "css-loader" : " ^0.25.0" ,
5346 "eslint" : " ^3.7.1" ,
Original file line number Diff line number Diff line change @@ -13,11 +13,6 @@ const config = require('../../config');
1313
1414const webpackConfig = merge ( baseConfig , {
1515 devtool : '#inline-source-map' ,
16- vue : {
17- loaders : {
18- js : 'babel-loader'
19- }
20- } ,
2116 plugins : [
2217 new webpack . DefinePlugin ( {
2318 'process.env' : config . test . env
@@ -42,9 +37,9 @@ module.exports = function (config) {
4237 // 1. install corresponding karma launcher
4338 // http://karma-runner.github.io/0.13/config/browsers.html
4439 // 2. add it to the `browsers` array below.
45- browsers : [ 'Chrome' , 'PhantomJS' ] ,
40+ browsers : [ 'Chrome' ] ,
4641 frameworks : [ 'mocha' , 'sinon-chai' ] ,
47- reporters : [ 'spec' , 'coverage' ] ,
42+ reporters : [ 'spec' ] ,
4843 files : [ './index.js' ] ,
4944 preprocessors : {
5045 './index.js' : [ 'webpack' , 'sourcemap' ]
@@ -53,12 +48,5 @@ module.exports = function (config) {
5348 webpackMiddleware : {
5449 noInfo : true ,
5550 } ,
56- coverageReporter : {
57- dir : './coverage' ,
58- reporters : [
59- { type : 'lcov' , subdir : '.' } ,
60- { type : 'text-summary' } ,
61- ]
62- } ,
6351 } ) ;
6452} ;
Original file line number Diff line number Diff line change 1- import { mount } from 'avoriaz' ;
2- import { expect } from 'chai' ;
3- import sinon from 'sinon' ;
4- import Clock from '../../../Clock' ;
1+ const mount = require ( 'avoriaz' ) . mount ;
2+ const expect = require ( 'chai' ) . expect ;
3+ const sinon = require ( 'sinon' ) ;
4+ const Clock = require ( '../../../Clock' ) ;
5+
56
67const seconds = ( 1000 ) ;
78const minutes = ( 60 * seconds ) ;
You can’t perform that action at this time.
0 commit comments