GithubHelp home page GithubHelp logo

manoncarbonnel / js-tools-tutorials Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 305 KB

Markdown tutorials for JavaScript tools (static analysis, tests, and more)

JavaScript 67.05% Shell 1.16% Gherkin 8.43% HTML 3.83% Vue 19.52%
javascript

js-tools-tutorials's Introduction

js-tools-tutorials

Markdown tutorials for JavaScript tools (static analysis, tests, and more)

VueJS Vite ESLint Prettier Pre-commit Jest Cypress

A clean code should follow theses rules:

  • documented (JSDOC)
  • simple (KISS)
  • well structured (SOLID)
  • only what is necessary (YAGNI)
  • no duplicated code (DRY)
  • tested (TU)

To help you achieve this goal, you can use several tools. See:

Summary

Documentation

All reports (tests, coverage, linters, ...) are located in the reports directory.

Prerequisites

Linux

Windows

Cypress

Installing Cypress

Build

Localy

npm run build

Usage

Dependencies install

Download and install dependencies using npm :

npm install

Update dependencies

npm update

Validate installation

Start frontend on localhost using:

npm run dev

Access the web UI on http://127.0.0.1:9000/

Lint

Lint code using Eslint

npm run lint

Format

Format code using Prettier and Eslint

npm run lint:fix

Test

Write and launch tests using Vitest/Jest and Cypress

Unit tests

Tests are located in tests/vitest directory.

npm run test

Functional tests

Tests are located in tests/cypress directory.

To run tests in a shell:

npm run cypress:run

To run tests using Cypress studio:

npm run cypress:open

js-tools-tutorials's People

Contributors

manoncarbonnel avatar

Watchers

Christopher LOUËT avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.