File tree Expand file tree Collapse file tree 5 files changed +41
-26
lines changed
examples/complete/car-models Expand file tree Collapse file tree 5 files changed +41
-26
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "presets" : [[" es2015" , { "modules" : false }]],
3
+ }
Original file line number Diff line number Diff line change 44
44
< app > </ app >
45
45
< script src ="app.js "> </ script >
46
46
</ body >
47
- </ html >
47
+ </ html >
Original file line number Diff line number Diff line change 8
8
},
9
9
"author" : " Qlik" ,
10
10
"license" : " MIT" ,
11
- "dependencies" : {
12
- "enigma.js" : " ^2.0.0-0" ,
13
- "angular" : " ^1.5.8" ,
14
- "d3" : " ^4.2.2" ,
15
- "ws" : " ^1.1.1"
16
- },
11
+ "dependencies" : {},
17
12
"devDependencies" : {
18
- "babel-core" : " ^6.14.0" ,
19
- "babel-loader" : " ^6.2.5" ,
13
+ "angular" : " ^1.6.6" ,
14
+ "babel" : " ^6.23.0" ,
15
+ "babel-core" : " ^6.26.0" ,
16
+ "babel-loader" : " ^7.1.2" ,
20
17
"babel-plugin-transform-exponentiation-operator" : " ^6.24.1" ,
21
- "babel-preset-es2015" : " ^6.14.0" ,
22
- "json-loader" : " ^0.5.4" ,
18
+ "babel-plugin-transform-object-assign" : " ^6.22.0" ,
19
+ "babel-preset-env" : " ^1.6.1" ,
20
+ "babel-preset-es2015" : " ^6.24.1" ,
21
+ "d3" : " ^4.11.0" ,
22
+ "enigma.js" : " ^2.1.1" ,
23
+ "fs" : " 0.0.1-security" ,
24
+ "fs-extra" : " ^4.0.2" ,
25
+ "json-loader" : " ^0.5.7" ,
23
26
"raw-loader" : " ^0.5.1" ,
24
- "webpack" : " ^1.13.2" ,
25
- "webpack-dev-server" : " ^1.15.1"
27
+ "webpack" : " ^3.8.1" ,
28
+ "webpack-dev-server" : " ^2.9.3" ,
29
+ "ws" : " ^3.2.0"
26
30
}
27
31
}
Original file line number Diff line number Diff line change 4
4
import angular from 'angular' ;
5
5
import enigma from 'enigma.js' ;
6
6
7
- import schema from 'json!../node_modules/enigma.js/schemas/12.20.0.json' ;
8
- import template from 'raw!./app.html' ;
9
- import csv from 'raw!../data.csv' ;
7
+ import schema from 'json-loader !../node_modules/enigma.js/schemas/12.20.0.json' ;
8
+ import template from 'raw-loader !./app.html' ;
9
+ import csv from 'raw-loader !../data.csv' ;
10
10
import paintBarchart from './chart' ;
11
+ // import session from '../certificates';
11
12
12
13
const SCRIPT =
13
14
`LOAD * Inline [
Original file line number Diff line number Diff line change 1
1
/* eslint-env node */
2
2
3
+ const webpack = require ( 'webpack' ) ;
3
4
const path = require ( 'path' ) ;
4
5
5
6
module . exports = {
@@ -10,17 +11,23 @@ module.exports = {
10
11
filename : 'app.js' ,
11
12
publicPath : 'http://localhost:8080/' ,
12
13
} ,
13
- debug : true ,
14
- devtool : 'source-map' ,
14
+ plugins : [
15
+ new webpack . LoaderOptionsPlugin ( {
16
+ debug : true ,
17
+ } ) ,
18
+ ] ,
15
19
module : {
16
- loaders : [ {
17
- test : / \. j s $ / ,
18
- loader : 'babel' ,
19
- exclude : [ path . resolve ( __dirname , 'node_modules' ) ] ,
20
- query : {
21
- presets : [ 'es2015' ] ,
22
- plugins : [ 'transform-exponentiation-operator' ] ,
20
+ rules : [
21
+ {
22
+ test : / \. j s $ / ,
23
+ exclude : / ( n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s ) / ,
24
+ use : {
25
+ loader : 'babel-loader' ,
26
+ options : {
27
+ presets : [ 'env' , 'es2015' ] ,
28
+ } ,
29
+ } ,
23
30
} ,
24
- } ] ,
31
+ ] ,
25
32
} ,
26
33
} ;
You can’t perform that action at this time.
0 commit comments