Skip to content

Commit b4a5462

Browse files
danielgerijvandemo
authored andcommitted
fix(gulp-rollup): update rollup and gulp-rollup options (#190)
1 parent 9a35ea0 commit b4a5462

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

generators/app/templates/_package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"del": "^2.2.2",
4747
"gulp": "^3.9.1",
4848
"gulp-rename": "^1.2.2",
49-
"gulp-rollup": "^2.11.0",
49+
"gulp-rollup": "^2.15.0",
5050
"jasmine-core": "~2.5.2",
5151
"jasmine-spec-reporter": "~3.2.0",
5252
"karma": "~1.4.1",
@@ -60,7 +60,7 @@
6060
"node-sass-tilde-importer": "^1.0.0",
6161
"node-watch": "^0.5.2",
6262
"protractor": "~5.1.0",
63-
"rollup": "^0.41.6",
63+
"rollup": "^0.49.3",
6464
"run-sequence": "^1.2.2",
6565
"rxjs": "^5.1.0",
6666
"systemjs": "^0.20.12",

generators/app/templates/gulpfile.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ gulp.task('rollup:fesm', function () {
7171
.pipe(rollup({
7272

7373
// Bundle's entry point
74-
// See https://github.com/rollup/rollup/wiki/JavaScript-API#entry
75-
entry: `${buildFolder}/index.js`,
74+
// See "input" in https://rollupjs.org/#core-functionality
75+
input: `${buildFolder}/index.js`,
7676

7777
// Allow mixing of hypothetical and actual files. "Actual" files can be files
7878
// accessed by Rollup or produced by plugins further down the chain.
@@ -81,14 +81,14 @@ gulp.task('rollup:fesm', function () {
8181
allowRealFiles: true,
8282

8383
// A list of IDs of modules that should remain external to the bundle
84-
// See https://github.com/rollup/rollup/wiki/JavaScript-API#external
84+
// See "external" in https://rollupjs.org/#core-functionality
8585
external: [
8686
'@angular/core',
8787
'@angular/common'
8888
],
8989

9090
// Format of generated bundle
91-
// See https://github.com/rollup/rollup/wiki/JavaScript-API#format
91+
// See "format" in https://rollupjs.org/#core-functionality
9292
format: 'es'
9393
}))
9494
.pipe(gulp.dest(distFolder));
@@ -104,8 +104,8 @@ gulp.task('rollup:umd', function () {
104104
.pipe(rollup({
105105

106106
// Bundle's entry point
107-
// See https://github.com/rollup/rollup/wiki/JavaScript-API#entry
108-
entry: `${buildFolder}/index.js`,
107+
// See "input" in https://rollupjs.org/#core-functionality
108+
input: `${buildFolder}/index.js`,
109109

110110
// Allow mixing of hypothetical and actual files. "Actual" files can be files
111111
// accessed by Rollup or produced by plugins further down the chain.
@@ -114,26 +114,26 @@ gulp.task('rollup:umd', function () {
114114
allowRealFiles: true,
115115

116116
// A list of IDs of modules that should remain external to the bundle
117-
// See https://github.com/rollup/rollup/wiki/JavaScript-API#external
117+
// See "external" in https://rollupjs.org/#core-functionality
118118
external: [
119119
'@angular/core',
120120
'@angular/common'
121121
],
122122

123123
// Format of generated bundle
124-
// See https://github.com/rollup/rollup/wiki/JavaScript-API#format
124+
// See "format" in https://rollupjs.org/#core-functionality
125125
format: 'umd',
126126

127127
// Export mode to use
128-
// See https://github.com/rollup/rollup/wiki/JavaScript-API#exports
128+
// See "exports" in https://rollupjs.org/#danger-zone
129129
exports: 'named',
130130

131131
// The name to use for the module for UMD/IIFE bundles
132132
// (required for bundles with exports)
133-
// See https://github.com/rollup/rollup/wiki/JavaScript-API#modulename
134-
moduleName: '<%= props.libraryName.original %>',
133+
// See "name" in https://rollupjs.org/#core-functionality
134+
name: '<%= props.libraryName.original %>',
135135

136-
// See https://github.com/rollup/rollup/wiki/JavaScript-API#globals
136+
// See "globals" in https://rollupjs.org/#core-functionality
137137
globals: {
138138
typescript: 'ts'
139139
}

0 commit comments

Comments
 (0)