Skip to content

Commit

Permalink
[UPD] build + doc #1013
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Nov 20, 2023
1 parent 03258d7 commit 6df96ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ Go in the project directory and run the `npm install` that will install the depe
Since v.2 the extensions are provided as ES6 modules.
To be used in a web page you have to create the distribution.

Use the gulp command to create a distribution of the project into the `/dist` directory:
Use the build command to create a distribution of the project into the `/dist` directory:
````
gulp
npm run build
````

### Create individual files

If you don't want to use the whole distribution in a web page, you can create individual js compatible with your browser.
Use the `gulp lib` command to create individual files into the `/lib` directory then link tpo this files:
Use the `build lib` command to create individual files into the `/lib` directory then link tpo this files:
````
gulp lib
npm run build lib
````

## Watch files and live reload
Expand Down
1 change: 1 addition & 0 deletions examples/search/map.control.searchgeoportailparcelle.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ <h1>ol-ext: Search Parcelle control</h1>
// Set the control grid reference
var search = new ol.control.SearchGeoportailParcelle ({
// apiKey: apiKey,
// version: 'gpf',
position: true // Search, with priority to geo position
});
map.addControl (search);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"scripts": {
"test": "npm test npmtest.js",
"start": "node ./node_modules/gulp/bin/gulp.js --gulpfile ./gulpfile.cjs serve",
"build": "node ./node_modules/gulp/bin/gulp.js --gulpfile ./gulpfile.cjs",
"doc": "node ./node_modules/gulp/bin/gulp.js --gulpfile ./gulpfile.cjs doc",
"lint": "eslint --fix src/ || exit 0",
"prepack": "gulp prepublish --gulpfile ./gulpfile.cjs",
Expand Down

0 comments on commit 6df96ad

Please sign in to comment.