Skip to content

Commit

Permalink
fix(ol): add gulp command to fix openlayers
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Aug 15, 2018
1 parent 9a88f51 commit 34d16fd
Show file tree
Hide file tree
Showing 8 changed files with 160 additions and 136 deletions.
10 changes: 1 addition & 9 deletions demo/src/app/auth/auth-form/auth-form.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@
<mat-card-subtitle>Auth</mat-card-subtitle>
<mat-card-title>Authentification</mat-card-title>
<mat-card-content>
<p>* Dependencies: LanguageService</p>

<pre>
<code>
bla bla
bal
blas
</code>
</pre>
<p>* Dependencies: ConfigService, LanguageService</p>

<p>Authentification form</p>
<igo-auth-form></igo-auth-form>
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/geo/catalog/catalog.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<mat-card-subtitle>Geo</mat-card-subtitle>
<mat-card-title>Catalog</mat-card-title>
<mat-card-content>
<p>* Dependencies: LanguageService</p>
<p>* Dependencies: ConfigService, LanguageService</p>

</mat-card-content>

Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/geo/search/search.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<mat-card-subtitle>Geo</mat-card-subtitle>
<mat-card-title>Search</mat-card-title>
<mat-card-content>
<p>* Dependencies: LanguageService</p>
<p>* Dependencies: ConfigService, LanguageService</p>

</mat-card-content>

Expand Down
11 changes: 11 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const exec = require('gulp-exec');
const merge = require('gulp-merge-json');
const gulpSequence = require('gulp-sequence');
const jeditor = require('gulp-json-editor');
const replace = require('gulp-replace');

const package = require('./package.json');
const version = package.version;
Expand Down Expand Up @@ -313,6 +314,15 @@ gulp.task('bumpVersion', [

// ==========================================================

gulp.task('geo:fixOL', () => {
gulp
.src(['./node_modules/ol/proj.js'])
.pipe(replace('@typedef {module:ol/proj/Projection', '@typedef {'))
.pipe(gulp.dest('./node_modules/ol/'));
});

// ==========================================================

gulp.task(
'core',
gulpSequence(
Expand Down Expand Up @@ -346,6 +356,7 @@ gulp.task(
'geo',
gulpSequence(
'geo:clean',
'geo:fixOL',
['geo:copyAssets', 'geo:copyStyles', 'geo:copyLocale'],
['geo:bundleStyles'],
'core:bundleLocale'
Expand Down
Loading

0 comments on commit 34d16fd

Please sign in to comment.