File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"extends": "loopback",
3
- "parserOptions": {
4
- "ecmaVersion": 5
5
- },
6
3
"rules": {
7
4
"max-len": ["error", 100, 4, {
8
5
"ignoreComments": true,
Original file line number Diff line number Diff line change 8
8
* loopback ~ public api
9
9
*/
10
10
11
- var loopback = module . exports = require ( './lib/loopback' ) ;
12
- var datasourceJuggler = require ( 'loopback-datasource-juggler' ) ;
11
+ const loopback = module . exports = require ( './lib/loopback' ) ;
12
+ const datasourceJuggler = require ( 'loopback-datasource-juggler' ) ;
13
13
14
14
/**
15
15
* Connectors
Original file line number Diff line number Diff line change 46
46
"ejs" : " ^2.3.1" ,
47
47
"express" : " ^4.14.0" ,
48
48
"inflection" : " ^1.6.0" ,
49
+ "isemail" : " ^1.2.0" ,
49
50
"loopback-connector-remote" : " ^3.0.0" ,
50
51
"loopback-datasource-juggler" : " ^3.0.0" ,
51
- "isemail" : " ^1.2.0" ,
52
52
"loopback-phase" : " ^1.2.0" ,
53
53
"nodemailer" : " ^2.5.0" ,
54
54
"nodemailer-stub-transport" : " ^1.0.0" ,
60
60
"underscore.string" : " ^3.0.3"
61
61
},
62
62
"devDependencies" : {
63
+ "babel-preset-es2015" : " ^6.22.0" ,
64
+ "babelify" : " ^7.3.0" ,
63
65
"browserify" : " ^13.1.0" ,
64
66
"chai" : " ^3.5.0" ,
65
67
"cookie-parser" : " ^1.3.4" ,
66
68
"dirty-chai" : " ^1.2.2" ,
67
- "es5-shim" : " ^4.1.0" ,
68
69
"eslint-config-loopback" : " ^7.0.1" ,
69
70
"express-session" : " ^1.14.0" ,
70
71
"grunt" : " ^1.0.1" ,
78
79
"karma" : " ^1.1.2" ,
79
80
"karma-browserify" : " ^4.4.2" ,
80
81
"karma-chrome-launcher" : " ^1.0.1" ,
82
+ "karma-es6-shim" : " ^1.0.0" ,
81
83
"karma-firefox-launcher" : " ^1.0.0" ,
82
84
"karma-html2js-preprocessor" : " ^1.0.0" ,
83
85
"karma-junit-reporter" : " ~1.0.0" ,
Original file line number Diff line number Diff line change @@ -16,11 +16,10 @@ module.exports = function(config) {
16
16
basePath : '../' ,
17
17
18
18
// testing framework to use (jasmine/mocha/qunit/...)
19
- frameworks : [ 'mocha ' , 'browserify' ] ,
19
+ frameworks : [ 'es6-shim ' , 'browserify' , 'mocha '] ,
20
20
21
21
// list of files / patterns to load in the browser
22
22
files : [
23
- 'node_modules/es5-shim/es5-shim.js' ,
24
23
'test/loopback.test.js' ,
25
24
'test/model.test.js' ,
26
25
// [rfeng] Browserified common/models/application.js
@@ -63,6 +62,7 @@ module.exports = function(config) {
63
62
// Which plugins to enable
64
63
plugins : [
65
64
'karma-browserify' ,
65
+ 'karma-es6-shim' ,
66
66
'karma-mocha' ,
67
67
'karma-phantomjs-launcher' ,
68
68
'karma-chrome-launcher' ,
@@ -104,7 +104,9 @@ module.exports = function(config) {
104
104
'superagent' ,
105
105
'supertest' ,
106
106
] ,
107
- // transform: ['coffeeify'],
107
+ transform : [
108
+ [ 'babelify' , { presets : 'es2015' } ] ,
109
+ ] ,
108
110
debug : true ,
109
111
// noParse: ['jquery'],
110
112
watch : true ,
You can’t perform that action at this time.
0 commit comments