Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split GP and JSD #666

Merged
merged 177 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
16c8378
Split GP and JSD
MartinKolarik Aug 15, 2024
cf95c83
Merge branch 'master' into globalping.io
MartinKolarik Aug 15, 2024
7e3c22b
Uppercase ENV
MartinKolarik Aug 15, 2024
417adf0
Improve email input
MartinKolarik Aug 16, 2024
cce8791
Rename
MartinKolarik Aug 16, 2024
a7e3145
Fix header styles
MartinKolarik Aug 17, 2024
71d82ef
Add transitions
MartinKolarik Aug 17, 2024
1c09bdc
Fix links
MartinKolarik Aug 17, 2024
86c2352
Add redirects from /globalping
MartinKolarik Aug 17, 2024
09ae2bf
GpRawOutput: fix status bars colors logic (#674)
xbpcb Aug 21, 2024
6dd4a1e
GP: homepage update (#677)
xbpcb Aug 21, 2024
78dc56d
Add cookie auth support
MartinKolarik Aug 21, 2024
e164b76
Fix icon paths
MartinKolarik Aug 21, 2024
c6b4221
Update sign in link
MartinKolarik Aug 21, 2024
ce6a538
Use margin instead of gap
MartinKolarik Aug 22, 2024
2c6ba0e
Add sign out option
MartinKolarik Aug 22, 2024
765149c
Globalping: About us page (#681)
xbpcb Sep 3, 2024
6b66843
Add stylelint exception
MartinKolarik Sep 3, 2024
45aa8cb
Gp: scaffold credits page
xbpcb Sep 9, 2024
7e28c6e
GpCredits: mod haeder styles
xbpcb Sep 9, 2024
4388add
GpCredits: scaffold html and content
xbpcb Sep 9, 2024
4cabd54
GpCredits: scaffold sponsors content
xbpcb Sep 9, 2024
edf6fd7
GpCredits: scaffold FAQ content
xbpcb Sep 9, 2024
2636686
GpCredits: mod faq logic
xbpcb Sep 10, 2024
f9677b8
GpCredits: mod buttons
xbpcb Sep 10, 2024
8fde608
GpCredits: add svg icon
xbpcb Sep 10, 2024
e598404
GpCredits: mod user benefits styles
xbpcb Sep 10, 2024
7167f92
GpCredits: add new grid type
xbpcb Sep 10, 2024
ea61ac3
GpJumbotron: add new grid type
xbpcb Sep 10, 2024
9f67cab
GpCredits: use new grid, fix info descr
xbpcb Sep 10, 2024
6b0f06d
GpCredits: mod info-block styles
xbpcb Sep 10, 2024
2715a85
GpCredits: add sponsors block polygons svg
xbpcb Sep 10, 2024
d1d323d
GpCredits: add sponsors polygons, mod styles
xbpcb Sep 10, 2024
3aa9a37
GpCredits: small fixes
xbpcb Sep 10, 2024
2f82480
GpCredits: fix desktop paddings
xbpcb Sep 10, 2024
c6b8f96
GpJumbotron: fix desktop styles
xbpcb Sep 10, 2024
db0d1a0
GpCredits: mod user benefits styles
xbpcb Sep 10, 2024
25de691
RangeSlider: setup new component
xbpcb Sep 11, 2024
1c0f535
GpCredits: rm redundant style rule
xbpcb Sep 11, 2024
b58bfe6
RangeSlider: scaffold component logic
xbpcb Sep 11, 2024
d7281b5
GpCredits: add rangeSlider component
xbpcb Sep 11, 2024
781fbee
RangeSlider: fix styles
xbpcb Sep 12, 2024
dd8c924
RangeSlider: fix linter issues
xbpcb Sep 12, 2024
25bf135
RangeSlider: rename props, mv some vars to props, fix styles
xbpcb Sep 12, 2024
eb40de5
RangeSlider: mod styles, rm redundant html els
xbpcb Sep 12, 2024
ccc135b
RangeSlider: scaffold parts labels
xbpcb Sep 12, 2024
ac2227e
RangeSlider: rename classes, fix styles
xbpcb Sep 12, 2024
415ca9c
RangeSlider: scaffold header logic
xbpcb Sep 12, 2024
b92c204
RangeSlider: mod styles
xbpcb Sep 12, 2024
d049c81
RangeSlider: mod vars, styles
xbpcb Sep 12, 2024
f67ae98
RangeSlider: mod logic code
xbpcb Sep 12, 2024
a35b0f4
Small fixes
xbpcb Sep 12, 2024
9e8fa10
RangeSlider: mod donation-credits logic
xbpcb Sep 12, 2024
67abcfd
GpCredits: add an icon with a tooltip as a hint
xbpcb Sep 13, 2024
7ae5b9d
GpJumbotron: fix gp-credits usage
xbpcb Sep 13, 2024
6601032
GpCredits: fix overflow styles, hide polygons for mobile
xbpcb Sep 13, 2024
72e4a18
RangeSlider: improve logic
xbpcb Sep 13, 2024
2762e7a
RangeSlider: rm redundant prop
xbpcb Sep 13, 2024
e466a67
Small fix
xbpcb Sep 13, 2024
485b60e
GpCredits: small fix, add todo comment
xbpcb Sep 16, 2024
6ae43ba
GpSponsors: scaffold a new page
xbpcb Sep 16, 2024
01d5d98
GpSponsors: add new mail icon svg
xbpcb Sep 17, 2024
f1667cc
GpSponsors: add main info content, styles
xbpcb Sep 17, 2024
29d12cb
GpSponsors: scaffold sponsors list, titles
xbpcb Sep 17, 2024
e45e812
Small fix
xbpcb Sep 17, 2024
ec2cf2e
GpSponsors: scaffold sponsors list
xbpcb Sep 17, 2024
4ab7252
GpSponsors: add become-a-sponsor block to a bronze list
xbpcb Sep 17, 2024
f1513e3
GpSponsors: add new icon heart svg
xbpcb Sep 17, 2024
708ea8b
GpSponsors: add help-us content and styles
xbpcb Sep 17, 2024
46a206f
GpSponsors: mod desktop styles
xbpcb Sep 17, 2024
b813816
GpSponsors: mod desktop styles further
xbpcb Sep 17, 2024
5d23eb3
GpSponsors: fix become-a-sponsor styles
xbpcb Sep 18, 2024
e8e040c
GpSponsors: upd comments
xbpcb Sep 18, 2024
30c3f6f
RangeSlider: improve slider position handling
xbpcb Sep 18, 2024
aec279f
RangeSlider: mod slider logic
xbpcb Sep 18, 2024
ffe7d82
RangeSlider: improve slider moving by mouse
xbpcb Sep 18, 2024
353e7f3
RangeSlider: mod moving slider by keyboard
xbpcb Sep 18, 2024
740ffeb
RangeSlider: mod default header logic
xbpcb Sep 18, 2024
95f973e
RangeSlider: fix left edge case on mouse mv
xbpcb Sep 18, 2024
b151cec
GpHeader: add new bg grid svg
xbpcb Sep 19, 2024
fcaab92
GpHeader: add new header styles
xbpcb Sep 19, 2024
476fc41
GpCredits: use new page header class
xbpcb Sep 19, 2024
4cd797b
GpHeader: optimize styles a bit
xbpcb Sep 19, 2024
c4a9ce9
GpSponsors: add TODO
xbpcb Sep 19, 2024
748457c
GpHeader: fix styles
xbpcb Sep 19, 2024
6db7567
GpHeader: show credits link
xbpcb Sep 19, 2024
01c22b0
GpHeader: fix bg styles
xbpcb Sep 19, 2024
dfde98f
GpHeader: show sponsors link
xbpcb Sep 19, 2024
41d27e9
GpCredits: fix styles
xbpcb Sep 19, 2024
a761baa
Common GP styles: small btn fix
xbpcb Sep 19, 2024
322410e
GpCredits: mod btns
xbpcb Sep 19, 2024
9a3d1f2
RangeSlider: test value for a custom donation
xbpcb Sep 19, 2024
51f2564
FAQ
jimaek Sep 19, 2024
faf3b92
RangeSlider: fix dragging
xbpcb Sep 19, 2024
fefcba7
RangeSlider: rename vars, add TODO
xbpcb Sep 19, 2024
4fb95be
Move API link
MartinKolarik Sep 20, 2024
223e8d6
Merge branch 'globalping.io' into gh-673
xbpcb Sep 20, 2024
8dab7c8
GpCredits: small styles fix
xbpcb Sep 20, 2024
05049e4
FAQ credits
jimaek Sep 20, 2024
78ce87a
Merge branch 'gh-673' of https://github.com/jsdelivr/www.jsdelivr.com…
xbpcb Sep 20, 2024
17f9dfa
GpCredits: allow to use html elements in faq answers, fix gp-dash link
xbpcb Sep 20, 2024
35d9b6b
Fixes
MartinKolarik Sep 22, 2024
e16eedd
Merge branch 'master' into globalping.io
MartinKolarik Sep 22, 2024
569d790
RangeSlider: rm redundant vars, mod logic
xbpcb Sep 23, 2024
bbb181a
RangeSlider: rm redundant var
xbpcb Sep 23, 2024
beb28e0
RAngeSlider: mod code, add comments
xbpcb Sep 23, 2024
93ba30a
RangeSlider: fix slider behavior on mouse mv
xbpcb Sep 23, 2024
83588e9
RangeSlider: add free case
xbpcb Sep 23, 2024
c5df9df
Merge branch 'gh-673' of https://github.com/jsdelivr/www.jsdelivr.com…
xbpcb Sep 23, 2024
63516dc
RangeSlider: change values on mouse mv
xbpcb Sep 23, 2024
b4be2b6
RangeSlider: rm redundant code
xbpcb Sep 23, 2024
ae82268
RangeSlider: linter fix, rm unused code
xbpcb Sep 23, 2024
b4748dc
Small fix
xbpcb Sep 23, 2024
8c99199
Gp: add an id to the join-the-network el
xbpcb Sep 23, 2024
6707d57
GpCredits: onclick host-a-probe open main page join-the-net el
xbpcb Sep 23, 2024
83dd18c
RAngeSlider: handle screen width changes
xbpcb Sep 24, 2024
3021e70
RangeSlider: handle touchscreen interactions
xbpcb Sep 24, 2024
a121934
GpCredits: mod text styles to be more like the main page
xbpcb Sep 24, 2024
7117c07
GpCredits: fix info descr styles
xbpcb Sep 24, 2024
aa82235
Linter fix
xbpcb Sep 24, 2024
5907fc2
RangeSlider: add animation to header
xbpcb Sep 24, 2024
24b46d0
Merge branch 'globalping.io' into gh-673
xbpcb Sep 24, 2024
f398bbc
Merge branch 'globalping.io' into gh-671
xbpcb Sep 24, 2024
2d29fa5
GpSponsors: tab title/descr content
xbpcb Sep 24, 2024
1eec4be
GpSponsors: update sponsors list
xbpcb Sep 24, 2024
836fc2f
GpSponsors: create bronze sponsors list, mod rendering code
xbpcb Sep 25, 2024
ec2b456
GpSponsors: mod platinum rendering
xbpcb Sep 25, 2024
076432f
GpSponsors: mod gold rendering
xbpcb Sep 25, 2024
422e0d3
GpSponsors: improve img displaying for gold, platinum sps
xbpcb Sep 25, 2024
e11efaf
Gp: add new link icon svg
xbpcb Sep 25, 2024
d768634
GpSponsors: upd link icon img
xbpcb Sep 25, 2024
4cf2e3a
GpSponsors: upd img dimensions
xbpcb Sep 25, 2024
aeb1eaf
GpSponsors: mod styles
xbpcb Sep 25, 2024
c019aca
GpSponsors: fix bronze sponsors styles
xbpcb Sep 25, 2024
c9b920b
RangeSlider: mv slider creation to separate funcs
xbpcb Sep 25, 2024
08a9073
RangeSlider: mod logic for small screens
xbpcb Sep 26, 2024
2c6b142
RangeSlider: mod labels positioning
xbpcb Sep 27, 2024
5a591e2
RangeSlider: fix screen resize handling
xbpcb Sep 27, 2024
0ab31d1
Resolve TODOs
MartinKolarik Sep 27, 2024
1f4c88f
New blog
MartinKolarik Sep 27, 2024
c91a39c
Fix GP redirects
MartinKolarik Sep 27, 2024
2b1af1a
Update http.js
MartinKolarik Sep 27, 2024
3306f70
Fix fonts
MartinKolarik Sep 27, 2024
7d73e4f
Update about-us.less
MartinKolarik Sep 27, 2024
7ba3026
Update about-us.less
MartinKolarik Sep 27, 2024
4f19ff9
Update about-us.html
MartinKolarik Sep 27, 2024
18b1fa1
Merge branch 'master' into globalping.io
MartinKolarik Sep 27, 2024
727e1c8
Update about-us.html
MartinKolarik Sep 27, 2024
cdb3477
Fix alignment
MartinKolarik Sep 27, 2024
b254969
Merge branch 'globalping.io' of github.com:jsdelivr/www.jsdelivr.com …
MartinKolarik Sep 27, 2024
45aece2
Update vcs.xml
MartinKolarik Sep 28, 2024
f98d020
update slider
MartinKolarik Sep 28, 2024
916f84c
Merge branch 'globalping.io' into gh-673
MartinKolarik Sep 28, 2024
241b7af
update texts
MartinKolarik Sep 28, 2024
6ffb927
Merge pull request #683 from jsdelivr/gh-673
MartinKolarik Sep 28, 2024
70e5250
Move menu entries
MartinKolarik Sep 28, 2024
f609eb0
Update gp-credits.html
MartinKolarik Sep 28, 2024
d16c4e7
Update credits.html
MartinKolarik Sep 29, 2024
b54a188
meta
MartinKolarik Sep 29, 2024
8eaa5de
Update api.globalping.io.html
MartinKolarik Sep 29, 2024
2808e69
Update http.js
MartinKolarik Sep 29, 2024
2ef32ee
Update api.globalping.io.html
MartinKolarik Sep 29, 2024
b5bcfa3
Update app-docs.js
MartinKolarik Sep 29, 2024
e281175
Merge branch 'globalping.io' into gh-671
MartinKolarik Sep 30, 2024
15e9e16
Merge branch 'globalping.io' into gh-671
xbpcb Sep 30, 2024
fcd3375
GpSponsors: resolve todos
xbpcb Sep 30, 2024
e5cbc5e
GpSponsors: resolve header todo
xbpcb Sep 30, 2024
94adaa7
GpJumbotron: add GpSponsors styles
xbpcb Sep 30, 2024
eec6fe7
GpJumbotron: mod GpSponsors styles
xbpcb Sep 30, 2024
82b02c8
GpSponsors: mod become-a-sp padding
xbpcb Sep 30, 2024
986e62a
Merge branch 'gh-671' of https://github.com/jsdelivr/www.jsdelivr.com…
xbpcb Sep 30, 2024
43780f1
GpSponsors: mod become-a-sp banner's text
xbpcb Sep 30, 2024
48880c8
GpSponsors: upd Become-our-sp href
xbpcb Sep 30, 2024
1233cbb
Merge pull request #684 from jsdelivr/gh-671
MartinKolarik Oct 1, 2024
27f8d5c
Update sponsors.html
MartinKolarik Oct 1, 2024
24b4530
Update terrahost.png
MartinKolarik Oct 1, 2024
07a2cee
optimize images
MartinKolarik Oct 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .idea/runConfigurations/node_js_Globalping_development.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions .idea/vcs.xml

This file was deleted.

11 changes: 8 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# www.jsdelivr.com Contributing Guide
# www.jsdelivr.com & globalping.io Contributing Guide

Hi! We're really excited that you're interested in contributing to www.jsdelivr.com! Before submitting your contribution, please read through the following guide.
Hi! We're really excited that you're interested in contributing! Before submitting your contribution, please read through the following guide.

## Overview

Expand All @@ -18,7 +18,12 @@ To get started, you need to have Node.js with NPM installed. Then run the follow

```bash
npm install

# to start the jsDelivr site
npm start

# to start the Globalping site
npm run start:gp
```

Configuration for IntelliJ based IDEs is also available in this repository. If you use one, it is a good idea to add https://github.com/MartinKolarik/idea-config as a [read-only settings repository](https://www.jetbrains.com/help/idea/sharing-your-ide-settings.html#share-more-settings-through-read-only-repo). It contains code style and inspection profiles used by this project.
Expand Down Expand Up @@ -52,4 +57,4 @@ module.exports = {
};
```

Additionally, `ELASTIC_APM_SERVER_URL`, `ELASTIC_APM_SECRET_TOKEN`, `ELASTIC_SEARCH_URL` (including user + pass), and `NODE_ENV=production` should be set.
Additionally, `ELASTIC_APM_SERVER_URL`, `ELASTIC_APM_SECRET_TOKEN`, `ELASTIC_SEARCH_URL` (including user + pass), and `NODE_ENV=production` should be set.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# www.jsdelivr.com

This repository is used to host the source code for the [jsDelivr website](https://www.jsdelivr.com).
This repository is used to host the source code for the [jsDelivr website](https://www.jsdelivr.com)
and the [Globalping website](https://globalping.io).

Related projects:
- [jsDelivr CDN](https://github.com/jsdelivr/jsdelivr)
- [jsDelivr API](https://github.com/jsdelivr/data.jsdelivr.com)
- [Globalping](https://github.com/jsdelivr/globalping)

## Web performance

Expand Down
17 changes: 17 additions & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,21 @@ module.exports = {
'/2013/01/nginx-load-balancing-basics.html': '/blog/nginx-load-balancing-basics/',
},
},
globalping: {
server: {
port: 13000,
host: 'https://globalping.io',
blogHost: 'https://jsdelivr-blog.ghost.io',
assetsHost: `/assets/${assetsVersion}`,
apiDocsHost: 'https://data.jsdelivr.com',
globalpingApiDocsHost: 'https://api.globalping.io',
userAgent: `globalping.io/${version} (https://github.com/jsdelivr/www.jsdelivr.com)`,
headers: {
'Cache-Control': 'no-cache, no-store, must-revalidate',
'Vary': 'Accept-Encoding',
'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload',
},
blogRewrite: {},
},
},
};
2 changes: 1 addition & 1 deletion elastic-apm-node.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
active: process.env.NODE_ENV === 'production',
serviceName: 'jsdelivr-website',
serviceName: process.env.SITE === 'globalping' ? 'globalping-website' : 'jsdelivr-website',
serviceVersion: require('./package.json').version,
logLevel: 'fatal',
centralConfig: false,
Expand Down
69 changes: 33 additions & 36 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const gulp = require('gulp');
const less = require('gulp-less');
const rename = require('gulp-rename');
const livereload = require('gulp-livereload');
const sourcemaps = require('gulp-sourcemaps');
const autoprefixer = require('gulp-autoprefixer');
Expand All @@ -17,11 +18,14 @@ const rollupJson = require('rollup-plugin-json');
const buffer = require('vinyl-buffer');
const source = require('vinyl-source-stream');

const site = process.env.SITE === 'globalping' ? 'globalping' : 'jsdelivr';
const liveReloadOptions = { port: site === 'globalping' ? 35730 : 35729 };

const srcDir = './src';
const srcAssetsDir = `${srcDir}/assets`;
const srcPublicDir = `${srcDir}/public`;
const dstAssetsDir = './dist/assets';
const dstPublicDir = './dist';
const srcPublicDir = `${srcDir}/public${site === 'globalping' ? '/globalping' : ''}`;
const dstAssetsDir = `./dist${site === 'globalping' ? '/globalping' : '/jsdelivr'}/assets`;
const dstPublicDir = `./dist${site === 'globalping' ? '/globalping' : '/jsdelivr'}`;
let cache;

const getRollupStream = file => rollupStream({
Expand Down Expand Up @@ -64,68 +68,68 @@ gulp.task('clean', () => {
gulp.task('copy', gulp.parallel(
() => gulp.src(`${srcAssetsDir}/**/*.!(js|less)`, { base: srcAssetsDir, since: gulp.lastRun('copy') })
.pipe(gulp.dest(dstAssetsDir))
.pipe(livereload()),
.pipe(livereload(liveReloadOptions)),
() => gulp.src(`${srcPublicDir}/**/*`, { base: srcPublicDir, since: gulp.lastRun('copy') })
.pipe(gulp.dest(dstPublicDir))
.pipe(livereload()),
.pipe(livereload(liveReloadOptions)),
));

gulp.task('less', () => {
return gulp.src([
`${srcAssetsDir}/less/app.less`,
`${srcAssetsDir}/less/app-globalping.less`,
])
return gulp.src(site === 'globalping'
? [
`${srcAssetsDir}/less/app-globalping.less`,
]
: [
`${srcAssetsDir}/less/app.less`,
])
.pipe(plumber())
.pipe(sourcemaps.init())
.pipe(less({ relativeUrls: true, strictMath: true }))
.pipe(rename('app.css'))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(`${dstAssetsDir}/css`))
.pipe(livereload());
.pipe(livereload(liveReloadOptions));
});

gulp.task('less:prod', () => {
return gulp.src([
`${srcAssetsDir}/less/app.less`,
`${srcAssetsDir}/less/app-globalping.less`,
])
return gulp.src(site === 'globalping'
? [
`${srcAssetsDir}/less/app-globalping.less`,
]
: [
`${srcAssetsDir}/less/app.less`,
])
.pipe(sourcemaps.init())
.pipe(less({ relativeUrls: true, strictMath: true }))
.pipe(autoprefixer())
.pipe(minifyCss())
.pipe(rename('app.css'))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(`${dstAssetsDir}/css`));
});

gulp.task('js', gulp.parallel(
() => getRollupStream('app.js')
() => getRollupStream(site === 'globalping' ? 'app-globalping.js' : 'app.js')
.pipe(plumber())
.pipe(source(`app.js`, srcAssetsDir))
.pipe(source(site === 'globalping' ? 'app-globalping.js' : 'app.js', srcAssetsDir))
.pipe(buffer())
.pipe(sourcemaps.init({ loadMaps: true }))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(`${dstAssetsDir}/js`))
.pipe(livereload()),
.pipe(livereload(liveReloadOptions)),
() => getRollupStream('app-docs.js')
.pipe(plumber())
.pipe(source(`app-docs.js`, srcAssetsDir))
.pipe(buffer())
.pipe(sourcemaps.init({ loadMaps: true }))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(`${dstAssetsDir}/js`))
.pipe(livereload()),
() => getRollupStream('app-globalping.js')
.pipe(plumber())
.pipe(source(`app-globalping.js`, srcAssetsDir))
.pipe(buffer())
.pipe(sourcemaps.init({ loadMaps: true }))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(`${dstAssetsDir}/js`))
.pipe(livereload()),
.pipe(livereload(liveReloadOptions)),
));

gulp.task('js:prod', gulp.parallel(
() => getRollupStream('app.js')
.pipe(source(`app.js`, srcAssetsDir))
() => getRollupStream(site === 'globalping' ? 'app-globalping.js' : 'app.js')
.pipe(source(site === 'globalping' ? 'app-globalping.js' : 'app.js', srcAssetsDir))
.pipe(buffer())
.pipe(sourcemaps.init({ loadMaps: true }))
.pipe(terser({ sourceMap: { includeSources: true } }))
Expand All @@ -138,13 +142,6 @@ gulp.task('js:prod', gulp.parallel(
.pipe(terser({ sourceMap: { includeSources: true } }))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(`${dstAssetsDir}/js`)),
() => getRollupStream('app-globalping.js')
.pipe(source(`app-globalping.js`, srcAssetsDir))
.pipe(buffer())
.pipe(sourcemaps.init({ loadMaps: true }))
.pipe(terser({ sourceMap: { includeSources: true } }))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(`${dstAssetsDir}/js`)),
));

gulp.task('build', gulp.series('clean', 'copy', 'less:prod', 'js:prod'));
Expand All @@ -156,7 +153,7 @@ gulp.task('serve', () => {
});

gulp.task('watch', () => {
livereload.listen();
livereload.listen(liveReloadOptions);

gulp.watch([
`${srcAssetsDir}/**/*.!(html|js|less)`,
Expand Down
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"gulp-less": "^5.0.0",
"gulp-livereload": "^4.0.2",
"gulp-plumber": "^1.2.1",
"gulp-rename": "^2.0.0",
"gulp-sourcemaps": "^3.0.0",
"gulp-terser": "^2.1.0",
"koa-livereload": "^0.2.0",
Expand All @@ -138,6 +139,7 @@
},
"scripts": {
"build": "gulp build",
"build:gp": "cross-env SITE=globalping gulp build",
"heroku-postbuild": "echo \"$SOURCE_VERSION\" > sha.txt",
"lint": "npm run lint:css && npm run lint:html && npm run lint:js",
"lint:fix": "npm run lint:css:fix && npm run lint:html:fix && npm run lint:js:fix",
Expand All @@ -150,6 +152,7 @@
"mocha": "mocha --exit test/tests.js",
"prepare": "husky install",
"start": "cross-env NODE_ENV=development gulp",
"start:gp": "cross-env NODE_ENV=development SITE=globalping gulp",
"test": "npm run lint && npm run mocha"
},
"lint-staged": {
Expand Down
4 changes: 2 additions & 2 deletions src/assets/img/about/algolia.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/assets/img/about/banner-jsdelivr-map.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading