This activity gives you practice with JavaScript, ES2015, Webpack, and OpenLayers
git init
to setup a get repository (this will only be a local repo until you have connected it to a remote).gitignore
file to the root of your project.**/node_modules
eslint
version in devDependencies
in package.json
"eslint": "^6.2.1"
devDependencies
in package.json
"eslint-config-airbnb-base": "^14.0.0"
"eslint-plugin-import": "^2.18.2"
npm install
test
command should be changed to only “lint” main.js
"test": "eslint main.js"
npm start
http://localhost:3000
Follow a serious of instructions in the OpenLayers gitbook. The OpenLayers Workshop has a series of examples. Your task is to get the examples working locally and then make them pass the Airbnb ESLint ruleset.
main.js
and index.html
* You can commit your work in between each example or you can create different branchesnpm test
in terminal or use the visual linting provided by Visual Studio Code.If you don’t complete each of the tasks, turn in as much as you have completed by the end of the day.