create-ol-app
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "create-ol-app", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Initialize a new OpenLayers application", | ||
@@ -25,14 +25,11 @@ "main": "src/main.js", | ||
"devDependencies": { | ||
"eslint": "^7.29.0", | ||
"eslint-config-openlayers": "^15.1.0", | ||
"mocha": "^9.0.1" | ||
"eslint": "^7.32.0", | ||
"eslint-config-openlayers": "^16.0.1", | ||
"mocha": "^9.1.2" | ||
}, | ||
"eslintConfig": { | ||
"extends": "openlayers", | ||
"parserOptions": { | ||
"ecmaVersion": 2017 | ||
} | ||
"extends": "openlayers" | ||
}, | ||
"dependencies": { | ||
"commander": "^7.2.0", | ||
"commander": "^8.2.0", | ||
"degit": "^2.8.4", | ||
@@ -39,0 +36,0 @@ "fs-extra": "^10.0.0", |
# create-ol-app | ||
The `create-ol-app` program sets up a project directory with the dependencies required for developing an OpenLayers application. The program requires `npx`, distributed with [Node](https://nodejs.org/) (at least version 12). | ||
The `create-ol-app` program sets up a project directory with the dependencies required for developing an OpenLayers application. The program requires `npx`, distributed with [Node](https://nodejs.org/) (at least version 12), and [`git`](https://github.com/git-guides/install-git). | ||
Using `create-ol-app` saves you from having to set up or configure tools like webpack or Parcel. After setting up a new OpenLayers application, you can proceed with configuring the development environment to your liking – the `create-ol-app` program sets up the required tools, but doesn't lock you in to any specific configuration. | ||
Using `create-ol-app` saves you from having to set up or configure tools like Vite, webpack, or Parcel. After setting up a new OpenLayers application, you can proceed with configuring the development environment to your liking – the `create-ol-app` program sets up the required tools, but doesn't lock you in to any specific configuration. | ||
@@ -13,4 +13,6 @@ ## Creating a new application | ||
This will create a new directory called `my-app` (choose a different name if you like) and install the dependencies for OpenLayers application development. By default, [Parcel](https://www.npmjs.com/package/parcel) is used as a bundler. See below for other options. | ||
*🐛 If you get an error like "could not find commit hash" when running `create-ol-app`, make sure that you have [`git` installed](https://github.com/git-guides/install-git)*. | ||
This will create a new directory called `my-app` (choose a different name if you like) and install the dependencies for OpenLayers application development. By default, [Vite](https://vitejs.dev/) is used for development and bundling. See below for other options. | ||
*💡 Tip – if you run `npx create-ol-app` with no additional arguments, the new application will be set up in the current directory.* | ||
@@ -27,7 +29,7 @@ | ||
The `create-ol-app` program supports a few different module bundlers. By default, an application is set up using [Parcel](https://www.npmjs.com/package/parcel). To use a different bundler, pass the `--template` option to `create-ol-app`. | ||
The `create-ol-app` program supports a few different module bundlers. By default, an application is set up using [Vite](https://vitejs.dev/). To use a different bundler, pass the `--template` option to `create-ol-app`. | ||
The default template uses Parcel. This is equivalent to running the following: | ||
The default template uses Vite. This is equivalent to running the following: | ||
npx create-ol-app my-app --template parcel | ||
npx create-ol-app my-app --template vite | ||
@@ -38,3 +40,3 @@ To see what other templates are available, see the help output for the `create-ol-app` program: | ||
To use webpack instead of Parcel, run the following: | ||
To use webpack instead of Vite, run the following: | ||
@@ -41,0 +43,0 @@ npx create-ol-app my-app --template webpack |
@@ -11,3 +11,3 @@ #!/usr/bin/env node | ||
// must be a corresponding openlayers/ol-<template> project, first is default | ||
const templates = ['parcel', 'esbuild', 'webpack', 'rollup']; | ||
const templates = ['vite', 'esbuild', 'webpack', 'rollup', 'parcel']; | ||
exports.templates = templates; | ||
@@ -14,0 +14,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5783
43
+ Addedcommander@8.3.0(transitive)
- Removedcommander@7.2.0(transitive)
Updatedcommander@^8.2.0