Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This task publishes an existing tag to the npm registry. To publish a new release, create a commit that updates the version number in package.json (e.g. to
"3.1.0"
). Then create a tag, push to GitHub, and run the publish task. Assumingopenlayers
is the remote for the canonical repo, this would look like the following:The task creates a build for each of the
PROFILES
inpublish.sh
(these correspond to.json
files in theconfig
directory). Builds are generated in thedist
directory. Ourpackage.json
specifiesdist/ol.js
as the "main" build. So when people use a module loader torequire('openlayers')
, they get the full build. It is also possible to load a debug build (e.g.require('openlayers/dist/ol-debug')
), and we can publish additional builds by addingconfig
files and updatingPROFILES
inpublish.sh
.The
.npmignore
file determines what is not included in the package (note thatnode_modules
are always ignored). So if additional items are added to.gitignore
that should not be included in the npm package, they need to go in.npmignore
as well (ideally, we don't need to generate anything else outside of thebuild
directory that doesn't belong in the package).