Testing To Do list: part 1
- CSS, HTML, ES6
- Webpack
- Technologies use- Git, npm
In this part of the testing project, we will test functions responsible for the status and content updates. we will also test the order re-position of items in the list upon drag/drop actions.
To get a local copy up and running follow these simple example steps.
First let's create a directory, initialize npm, install webpack locally, and install the webpack-cli
- npm init -y
- npm install webpack webpack-cli --save-dev
- npm install --save-dev style-loader css-loader
- npm install --save-dev csv-loader xml-loader
- npm install --save-dev html-webpack-plugin
- npm install --save-dev webpack-dev-server
- npm install --save-dev express webpack-dev-middleware
- create a .github/workflows folder and add a copy of .github/workflows/linters.yml (https://github.com/microverseinc/linters-config/blob/master/html-css/.github/workflows/linters.yml) to that folder.
Set-up linters in your local env
- you need to initialize npm to create package.json file. npm init -y
- Run npm install --save-dev hint@7.x
- Copy .hintrc (https://github.com/microverseinc/linters-config/blob/master/html-css/.hintrc) to the root directory of your project.
A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
- Run npm install --save-dev stylelint@13.x stylelint-scss@3.x stylelint-config-standard@21.x stylelint-csstree-validator@1.x
- Copy .stylelintrc.json (https://github.com/microverseinc/linters-config/blob/master/html-css/.stylelintrc.json) to the root directory of your project.
- Run npm install --save-dev eslint@7.x eslint-config-airbnb-base@14.x eslint-plugin-import@2.x babel-eslint@10.x
- Copy .eslintrc.json(https://github.com/microverseinc/linters-config/blob/master/html-css-js/.eslintrc.json) to the root directory of your project.
- Run npx hint . to Fix Web validation errors.
- Run npx eslint . --fix on the root of your directory of your project to Fix linter errors.
- Run npx stylelint "**/*.{css,scss}" . --fix on the root of your directory of your project to Fix linter errors.
- Run npm test. to run tests.
- Ssekweyama Pius
- GitHub: @githubhandle
- Twitter: @twitterhandle
- LinkedIn: LinkedIn
- Bright Kportiklah
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Big thanks to Microverse and all the student teams that contributed in any form
This project is MIT licensed.