Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit 37ab09c

Browse files
committed
Bugfixes
Remove gh-pages Reset hash prefix to empty
1 parent 2fa6918 commit 37ab09c

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ ghdist:
1313
cd dist && git checkout gh-pages
1414

1515
publish:
16-
./node_modules/gulp/bin/gulp.js publish
17-
echo -n "Please open http://localhost:8000/dist/index.html and check if everything works fine." && read -e
18-
./node_modules/gulp/bin/gulp.js deploy
16+
./node_modules/gulp/bin/gulp.js clean
17+
cd dist && git pull origin gh-pages
18+
./node_modules/gulp/bin/gulp.js publish
19+
echo -n "Please open http://localhost:8000/dist/index.html and check if everything works fine." && read -e
20+
cd dist && git add --all . && git commit -am "merged with master" && git push origin gh-pages
1921

2022
bump:
2123
./node_modules/gulp/bin/gulp.js bump

app/js/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ angular.module('myApp', [
3232
'myApp.directives',
3333
'myApp.controllers'
3434
].concat(extraModules)).config(['$locationProvider', '$routeProvider', '$compileProvider', 'StorageProvider', function ($locationProvider, $routeProvider, $compileProvider, StorageProvider) {
35+
$locationProvider.hashPrefix('');
3536
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|blob|filesystem|chrome-extension|app):|data:image\//)
3637
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|file|tg|mailto|blob|filesystem|chrome-extension|app):|data:/)
3738

gulpfile.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,4 @@ gulp.task('package', gulp.series('cleanup-dist'))
349349

350350
gulp.task('publish', gulp.series('add-appcache-manifest', 'generate-service-worker'))
351351

352-
gulp.task('deploy', function () {
353-
return gulp.src('./dist/**/*')
354-
.pipe($.ghPages())
355-
})
356-
357352
gulp.task('default', gulp.series('build'))

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"gulp": "^4.0.2",
4949
"gulp-angular-templatecache": "^3.0.0",
5050
"gulp-concat": "^2.1.7",
51-
"gulp-gh-pages": "^0.5.4",
5251
"gulp-grep-stream": "0.0.2",
5352
"gulp-imagemin": "^5.0.3",
5453
"gulp-less": "^4.0.1",

0 commit comments

Comments
 (0)