Skip to content

Commit f5472bf

Browse files
committed
Testing out new gulp task for internal
1 parent e0b677e commit f5472bf

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

packages/firebase/gulpfile.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,15 @@ gulp.task('cdn-type-module-path', function () {
3838
.pipe(gulp.dest('.'))
3939
);
4040
});
41+
42+
//google3 does not allow imports from absolute URLs, so we cannot use the gstatic link
43+
gulp.task('cdn-type-module-path-internal', function () {
44+
return (
45+
gulp
46+
.src(files)
47+
.pipe(sourcemaps.init({ loadMaps: true }))
48+
.pipe(replace(/@firebase\/app/g, "./firebase-app.js"))
49+
.pipe(sourcemaps.write('.'))
50+
.pipe(gulp.dest('.'))
51+
);
52+
});

packages/firebase/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@
367367
},
368368
"scripts": {
369369
"build": "rollup -c && gulp cdn-type-module-path && yarn build:compat",
370+
"build:internal": "rollup -c && gulp cdn-type-module-path-internal && yarn build:compat",
370371
"build:compat": "rollup -c compat/rollup.config.js",
371372
"dev": "rollup -c -w",
372373
"test": "echo 'No test suite for firebase wrapper'",

0 commit comments

Comments
 (0)