An open API service indexing awesome lists of open source software.

https://github.com/codelytv/javascript-basic-skeleton


https://github.com/codelytv/javascript-basic-skeleton

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# JavaScript Bootstrap (base / project starter)

This is a repository intended to serve as a starting point if you want to bootstrap a project in modern vanilla JavaScript.

## Features

- [Webpack](https://webpack.js.org/) (v5)
- [Babel](https://babeljs.io/) with [preset-env](https://babeljs.io/docs/en/babel-preset-env)
- [Prettier](https://prettier.io/)
- [ESLint](https://eslint.org/) with:
- [Codely's config](https://github.com/lydell/eslint-plugin-simple-import-sort/) (includes ESLint's recommended rules, Prettier, Import plugin and more)
- [HTML plugin](https://github.com/BenoitZugmeyer/eslint-plugin-html)
- [Jest](https://jestjs.io) with [DOM Testing Library](https://testing-library.com/docs/dom-testing-library/intro)
- [Cypress](https://www.cypress.io/) with [Testing Library](https://testing-library.com/docs/cypress-testing-library/)
- [GitHub Action workflows](https://github.com/features/actions) set up to run tests and linting on push

## Running the app

```
# install dependencies
npm install

# run in dev mode on port 8080
npm run dev

# generate production build
npm run build

# run generated content in dist folder on port 8080
npm run start
```

## Testing

### Jest with Testing Library

```
npm run test
```

### Cypress

```
# run in dev mode on port 8080
npm run dev

# open Cypress to run tests on dev mode
npm run cy:open

# open Cypress on CLI
npm run cy:run
```

## Linting

```
# run linter
npm run lint

# fix lint issues
npm run lint:fix
```