Skip to content

Commit 018c93a

Browse files
committed
Change repo name and add CNAME to build
1 parent 03b9fe5 commit 018c93a

File tree

8 files changed

+16
-12
lines changed

8 files changed

+16
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
**The [react.angular.hamburg](https://angular.hamburg/) website for Hamburg's [Angular](https://angular.io/) [Meetup](https://www.meetup.com/Hamburg-AngularJS-Meetup/), jokingly made with [React](https://github.com/facebook/react).**
55

6-
[![](https://raw.githubusercontent.com/angular-hamburg/angular.hamburg/master/docs/media/preview.png)](https://angular.hamburg/)
6+
[![](https://raw.githubusercontent.com/angular-hamburg/react.angular.hamburg/master/docs/media/preview.png)](https://angular.hamburg/)
77

88
**Heavily inspired by and partially forked from the beautiful website of [HannoverJS](https://github.com/HannoverJS/hannoverjs.de).**
99

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
window.addEventListener('load', () => {
3030
// If we are using Github Pages instead of `https://angular.hamburg`,
3131
// the SW is found under a different path and has a different scope
32-
const GH_PAGES_ENV = location.href.startsWith('https://angular-hamburg.github.io/angular.hamburg/')
32+
const GH_PAGES_ENV = location.href.startsWith('https://angular-hamburg.github.io/react.angular.hamburg/')
3333
const DEV_ENV = location.href.startsWith('http://localhost:3000/')
34-
const relativePath = GH_PAGES_ENV ? '/angular.hamburg' : ''
34+
const relativePath = GH_PAGES_ENV ? '/react.angular.hamburg' : ''
3535
navigator.serviceWorker.register(relativePath + '/service-worker.js', {
3636
scope: relativePath + '/'
3737
})

docs/service-worker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// based on https://github.com/GoogleChrome/samples/blob/gh-pages/service-worker/basic/service-worker.js
55

6-
const GH_PAGES_ENV = location.href.startsWith('https://angular-hamburg.github.io/angular.hamburg/')
6+
const GH_PAGES_ENV = location.href.startsWith('https://angular-hamburg.github.io/react.angular.hamburg/')
77

88
const DEV_ENV = location.href.startsWith('http://localhost:3000/')
99

@@ -16,7 +16,7 @@ let prefetchResources = []
1616
try {
1717
// If we are using Github Pages instead of 'https://angular.hamburg',
1818
// the SW config is located under a different relative path
19-
const relativePath = GH_PAGES_ENV ? '/angular.hamburg' : ''
19+
const relativePath = GH_PAGES_ENV ? '/react.angular.hamburg' : ''
2020
importScripts(relativePath + '/service-worker-config.js')
2121

2222
// If we are using Github Pages, the resources to be prefetched have
@@ -28,7 +28,7 @@ try {
2828
logError('Failed to import:', e)
2929
}
3030

31-
const VERSION = '0.6.2'
31+
const VERSION = '0.6.3'
3232
const PREFETCH_CACHE = `ng-hh-prefetch-cache-v${VERSION}`
3333
const RUNTIME_CACHE = `ng-hh-runtime-cache-v${VERSION}`
3434

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular.hamburg",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"description": "The angular.hamburg website for Hamburg's Angular Meetup, jokingly made with React.",
55
"main": "index.js",
66
"scripts": {

src/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
angular.hamburg

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
window.addEventListener('load', () => {
3030
// If we are using Github Pages instead of `https://angular.hamburg`,
3131
// the SW is found under a different path and has a different scope
32-
const GH_PAGES_ENV = location.href.startsWith('https://angular-hamburg.github.io/angular.hamburg/')
32+
const GH_PAGES_ENV = location.href.startsWith('https://angular-hamburg.github.io/react.angular.hamburg/')
3333
const DEV_ENV = location.href.startsWith('http://localhost:3000/')
34-
const relativePath = GH_PAGES_ENV ? '/angular.hamburg' : ''
34+
const relativePath = GH_PAGES_ENV ? '/react.angular.hamburg' : ''
3535
navigator.serviceWorker.register(relativePath + '/service-worker.js', {
3636
scope: relativePath + '/'
3737
})

src/service-worker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// based on https://github.com/GoogleChrome/samples/blob/gh-pages/service-worker/basic/service-worker.js
55

6-
const GH_PAGES_ENV = location.href.startsWith('https://angular-hamburg.github.io/angular.hamburg/')
6+
const GH_PAGES_ENV = location.href.startsWith('https://angular-hamburg.github.io/react.angular.hamburg/')
77

88
const DEV_ENV = location.href.startsWith('http://localhost:3000/')
99

@@ -16,7 +16,7 @@ let prefetchResources = []
1616
try {
1717
// If we are using Github Pages instead of 'https://angular.hamburg',
1818
// the SW config is located under a different relative path
19-
const relativePath = GH_PAGES_ENV ? '/angular.hamburg' : ''
19+
const relativePath = GH_PAGES_ENV ? '/react.angular.hamburg' : ''
2020
importScripts(relativePath + '/service-worker-config.js')
2121

2222
// If we are using Github Pages, the resources to be prefetched have
@@ -28,7 +28,7 @@ try {
2828
logError('Failed to import:', e)
2929
}
3030

31-
const VERSION = '0.6.2'
31+
const VERSION = '0.6.3'
3232
const PREFETCH_CACHE = `ng-hh-prefetch-cache-v${VERSION}`
3333
const RUNTIME_CACHE = `ng-hh-runtime-cache-v${VERSION}`
3434

webpack-config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ module.exports = {
6262
dry: process.env.NODE_ENV !== 'production'
6363
}),
6464
new CopyPlugin([
65+
{
66+
from: 'CNAME'
67+
},
6568
{
6669
from: 'service-worker.js'
6770
},

0 commit comments

Comments
 (0)