Skip to content

Commit 8b76153

Browse files
author
Walker Leite
committed
refactor(package): remove mocha and karma references
1 parent 77c6fcf commit 8b76153

File tree

7 files changed

+3
-151
lines changed

7 files changed

+3
-151
lines changed

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# vue-loopback
22
[![Travis](https://img.shields.io/travis/InCuca/vue-loopback/master.svg)](https://travis-ci.org/InCuca/vue-loopback/branches)
33

4-
A Vue project template with [Loopback](http://loopback.io/) framework featuring ES6, Gulp, and Mocha for unit tests
4+
A Vue project template with [Loopback](http://loopback.io/) framework featuring ES6, Gulp, and Jest for unit tests
55

66
> This template is for Vue 2.x **only** with [vue-cli](https://github.com/vuejs/vue-cli).
77
@@ -56,10 +56,3 @@ A Vue project template with [Loopback](http://loopback.io/) framework featuring
5656
$ cd build
5757
$ npm run start
5858
```
59-
60-
You can run only the server with:
61-
62-
```bash
63-
$ cd build/server
64-
$ node .
65-
```

template/gulp-tasks/build.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@ import {argv} from 'yargs';
1515
import {dirs, extended} from './config';
1616
import {customSass} from './compilers';
1717

18-
gulp.task('build:test', () => gulp.src([
19-
path.resolve(dirs.test, '**/*.test.js'),
20-
path.resolve(dirs.test, 'config.js'),
21-
])
22-
.pipe(sourcemaps.init())
23-
.pipe(babel())
24-
.pipe(sourcemaps.write())
25-
.pipe(gulp.dest(dirs.buildTest)));
26-
2718
gulp.task('build:client', ['copy:client', 'copy:config:server'], () => {
2819
// Node modules to be included in babel transpilation
2920
// Use this with ES6 modules for example
@@ -148,7 +139,6 @@ gulp.task('build:index', () => {
148139
});
149140

150141
gulp.task('build', [
151-
'build:test',
152142
'build:client',
153143
'build:common',
154144
'build:server',

template/gulp-tasks/test.js

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

template/package.json

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@
1010
"dev": "gulp serve",
1111
"build": "gulp build --production && npm run afterbuild",
1212
"afterbuild": "cd build && npm install --production",
13-
"test": "gulp test",
14-
"test:server": "gulp test:server",
15-
"test:client": "gulp test:client",
16-
"start": "(type ./build/index.js && node ./build/index.js) || node ./index.js ",
17-
"vulnerabilities": "nsp check"
13+
"test": "npx jest",
14+
"start": "node ./index.js"
1815
},
1916
"dependencies": {
2017
"compression": "^1.0.3",
@@ -55,10 +52,7 @@
5552
"babelify": "^7.3.0",
5653
"browserify": "^14.4.0",
5754
"browserify-global-shim": "^1.0.3",
58-
"chai": "^4.1.0",
59-
"chai-http": "^3.0.0",
6055
"css-modulesify": "^0.28.0",
61-
"babel-eslint": "^8.2.2",
6256
"eslint": "^4.15.0",
6357
"eslint-config-airbnb-base": "^11.3.0",
6458
"eslint-plugin-import": "^2.9.0",
@@ -68,16 +62,7 @@
6862
"gulp-autoprefixer": "^4.0.0",
6963
"gulp-babel": "^6.1.2",
7064
"gulp-connect": "^5.0.0",
71-
"gulp-mocha": "^4.3.1",
7265
"gulp-sourcemaps": "^2.6.0",
73-
"karma": "^1.7.1",
74-
"karma-browserify": "^5.1.1",
75-
"karma-chai": "^0.1.0",
76-
"karma-mocha": "^1.3.0",
77-
"karma-chrome-launcher": "^2.2.0",
78-
"loopback-chai": "^2.3.0",
79-
"mocha": "^3.4.2",
80-
"sinon": "^2.3.8",
8166
"tfilter": "^1.0.1",
8267
"through2": "^2.0.3",
8368
"tmp": "0.0.33",
@@ -88,7 +73,6 @@
8873
"babel-plugin-root-import": "^5.1.0",
8974
"connect-history-api-fallback": "^1.5.0",
9075
"node-sass": "^4.6.0",
91-
"nsp": "^2.1.0",
9276
"gulp-util": "^3.0.8",
9377
"babel-register": "^6.26.0"
9478
},

template/test/.eslintrc

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

template/test/karma.conf.js

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

template/test/mocha.conf.js

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

0 commit comments

Comments
 (0)