File tree 20 files changed +56
-62
lines changed
20 files changed +56
-62
lines changed Original file line number Diff line number Diff line change 1
1
2
2
# ` webpack ` bundler with TypeScript demonstration
3
3
4
- The project illustrate the usage of TypeScript with ` webpack ` version 5.
4
+ The project illustrates the usage of TypeScript with ` webpack ` version 5.
5
+
6
+ ## Running
7
+
8
+ ``` bash
9
+ npm run build
10
+ npm run start
11
+ ```
5
12
6
13
## Testing
7
14
15
+ ``` bash
16
+ npm run test
17
+ ```
18
+
8
19
The test suite consists in building the code with webpack. We don't check if the code is working.
Original file line number Diff line number Diff line change 1
1
2
- import { generate } from 'csv-generate/browser/esm/index.js ' ;
2
+ import { generate } from 'csv-generate/browser/esm' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import { parse , CsvError } from 'csv-parse/browser/esm/index.js '
2
+ import { parse , CsvError } from 'csv-parse/browser/esm'
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import { stringify } from 'csv-stringify/browser/esm/index.js ' ;
2
+ import { stringify } from 'csv-stringify/browser/esm' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import { transform } from 'stream-transform/browser/esm/index.js ' ;
2
+ import { transform } from 'stream-transform/browser/esm' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import * as csv from 'csv/browser/esm/index.js ' ;
2
+ import * as csv from 'csv/browser/esm' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import * as csv from 'csv/browser/esm/sync.js ' ;
2
+ import * as csv from 'csv/browser/esm/sync' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import { generate } from 'csv-generate/browser/esm/index.js ' ;
2
+ import { generate } from 'csv-generate/browser/esm' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import { generate } from 'csv-generate/browser/esm/sync.js ' ;
2
+ import { generate } from 'csv-generate/browser/esm/sync' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import { parse } from 'csv-parse/browser/esm/index.js ' ;
2
+ import { parse } from 'csv-parse/browser/esm' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import { parse } from 'csv-parse/browser/esm/sync.js ' ;
2
+ import { parse } from 'csv-parse/browser/esm/sync' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import { stringify } from 'csv-stringify/browser/esm/index.js ' ;
2
+ import { stringify } from 'csv-stringify/browser/esm' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import { stringify } from 'csv-stringify/browser/esm/sync.js ' ;
2
+ import { stringify } from 'csv-stringify/browser/esm/sync' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import { transform } from 'stream-transform/browser/esm/index.js ' ;
2
+ import { transform } from 'stream-transform/browser/esm' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 1
1
2
- import { transform } from 'stream-transform/browser/esm/sync.js ' ;
2
+ import { transform } from 'stream-transform/browser/esm/sync' ;
3
3
4
4
window . onload = ( ) => {
5
5
const runEl = document . getElementById ( 'run' ) ;
Original file line number Diff line number Diff line change 36
36
"import" : " ./lib/sync.js" ,
37
37
"require" : " ./dist/cjs/sync.cjs"
38
38
},
39
- "./browser/esm/*" : " ./dist/esm/*"
39
+ "./browser/esm" : " ./dist/esm/index.js" ,
40
+ "./browser/esm/sync" : " ./dist/esm/sync.js"
40
41
},
41
42
"files" : [
42
43
" dist" ,
78
79
"types" : " dist/esm/index.d.ts" ,
79
80
"typesVersions" : {
80
81
"*" : {
81
- "." : [
82
- " dist/esm/index.d.ts"
83
- ],
84
- "sync" : [
85
- " dist/esm/sync.d.ts"
86
- ],
87
- "browser/esm/*" : [
88
- " dist/esm/*"
89
- ]
82
+ "." : [" dist/esm/index.d.ts" ],
83
+ "sync" : [" dist/esm/sync.d.ts" ],
84
+ "browser/esm" : [" dist/esm/index.d.ts" ],
85
+ "browser/esm/sync" : [" dist/esm/sync.d.ts" ]
90
86
}
91
87
}
92
88
}
Original file line number Diff line number Diff line change 38
38
"import" : " ./lib/sync.js" ,
39
39
"require" : " ./dist/cjs/sync.cjs"
40
40
},
41
- "./browser/esm/*" : " ./dist/esm/*"
41
+ "./browser/esm" : " ./dist/esm/index.js" ,
42
+ "./browser/esm/sync" : " ./dist/esm/sync.js"
42
43
},
43
44
"devDependencies" : {
44
45
"@rollup/plugin-eslint" : " ^8.0.1" ,
101
102
"types" : " dist/esm/index.d.ts" ,
102
103
"typesVersions" : {
103
104
"*" : {
104
- "." : [
105
- " dist/esm/index.d.ts"
106
- ],
107
- "sync" : [
108
- " dist/esm/sync.d.ts"
109
- ],
110
- "browser/esm/*" : [
111
- " dist/esm/*"
112
- ]
105
+ "." : [" dist/esm/index.d.ts" ],
106
+ "sync" : [" dist/esm/sync.d.ts" ],
107
+ "browser/esm" : [" dist/esm/index.d.ts" ],
108
+ "browser/esm/sync" : [" dist/esm/sync.d.ts" ]
113
109
}
114
110
}
115
111
}
Original file line number Diff line number Diff line change 36
36
"import" : " ./lib/sync.js" ,
37
37
"require" : " ./dist/cjs/sync.cjs"
38
38
},
39
- "./browser/esm/*" : " ./dist/esm/*"
39
+ "./browser/esm" : " ./dist/esm/index.js" ,
40
+ "./browser/esm/sync" : " ./dist/esm/sync.js"
40
41
},
41
42
"files" : [
42
43
" dist" ,
78
79
"types" : " dist/esm/index.d.ts" ,
79
80
"typesVersions" : {
80
81
"*" : {
81
- "." : [
82
- " dist/esm/index.d.ts"
83
- ],
84
- "sync" : [
85
- " dist/esm/sync.d.ts"
86
- ],
87
- "browser/esm/*" : [
88
- " dist/esm/*"
89
- ]
82
+ "." : [" dist/esm/index.d.ts" ],
83
+ "sync" : [" dist/esm/sync.d.ts" ],
84
+ "browser/esm" : [" dist/esm/index.d.ts" ],
85
+ "browser/esm/sync" : [" dist/esm/sync.d.ts" ]
90
86
}
91
87
}
92
88
}
Original file line number Diff line number Diff line change 54
54
"import" : " ./lib/sync.js" ,
55
55
"require" : " ./dist/cjs/sync.cjs"
56
56
},
57
- "./browser/esm/*" : " ./dist/esm/*"
57
+ "./browser/esm" : " ./dist/esm/index.js" ,
58
+ "./browser/esm/sync" : " ./dist/esm/sync.js"
58
59
},
59
60
"homepage" : " https://csv.js.org/" ,
60
61
"files" : [
96
97
"types" : " dist/esm/index.d.ts" ,
97
98
"typesVersions" : {
98
99
"*" : {
99
- "." : [
100
- " dist/esm/index.d.ts"
101
- ],
102
- "sync" : [
103
- " dist/esm/sync.d.ts"
104
- ]
100
+ "." : [" dist/esm/index.d.ts" ],
101
+ "sync" : [" dist/esm/sync.d.ts" ],
102
+ "browser/esm" : [" dist/esm/index.d.ts" ],
103
+ "browser/esm/sync" : [" dist/esm/sync.d.ts" ]
105
104
}
106
105
}
107
106
}
Original file line number Diff line number Diff line change 36
36
"import" : " ./lib/sync.js" ,
37
37
"require" : " ./dist/cjs/sync.cjs"
38
38
},
39
- "./browser/esm/*" : " ./dist/esm/*"
39
+ "./browser/esm" : " ./dist/esm/index.js" ,
40
+ "./browser/esm/sync" : " ./dist/esm/sync.js"
40
41
},
41
42
"files" : [
42
43
" dist" ,
78
79
"types" : " dist/esm/index.d.ts" ,
79
80
"typesVersions" : {
80
81
"*" : {
81
- "." : [
82
- " dist/esm/index.d.ts"
83
- ],
84
- "sync" : [
85
- " dist/esm/sync.d.ts"
86
- ],
87
- "browser/esm/*" : [
88
- " dist/esm/*"
89
- ]
82
+ "." : [" dist/esm/index.d.ts" ],
83
+ "sync" : [" dist/esm/sync.d.ts" ],
84
+ "browser/esm" : [" dist/esm/index.d.ts" ],
85
+ "browser/esm/sync" : [" dist/esm/sync.d.ts" ]
90
86
}
91
87
}
92
88
}
You can’t perform that action at this time.
0 commit comments