Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/grandemayta/create-vanilla-app

Create Vanilla App allows you to develop vanilla javascript projects from scratch with support to Webcomponents and Typescript
https://github.com/grandemayta/create-vanilla-app

cli typescript vanilla-js webcomponents

Last synced: about 1 month ago
JSON representation

Create Vanilla App allows you to develop vanilla javascript projects from scratch with support to Webcomponents and Typescript

Awesome Lists containing this project

README

        

# Create Vanilla App 🔧📦
[![Open Source Love](https://badges.frapsoft.com/os/mit/mit.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)
[![made-with-javascript-doc](https://img.shields.io/badge/Made%20with-Javascript-1f425f.svg)](https://www.sphinx-doc.org/)

Create Vanilla App allows you to develop vanilla javascript projects from scratch with support to Webcomponents, Sass and Typescript.

## Summary
- [Installation](#install)
- [Create a project](#create-a-project)
- [Getting started](#getting-started)
- [Scripts availables](#scripts)
- [Integration](#integration)
- [Build for modern browsers](#build-for-modern-browsers)
- [Build with support for legacy browsers](#build-with-support-for-legacy-browsers)
- [Html example](#html-example)
- [Polyfills](#polyfills)
- [Browsers support](#browsers-support)
- [Todo](#todo)

## Install

```sh
npm install -g create-vanilla-app
```

## Create a Project

```sh
create-vanilla-app
```

## Getting Started
Launch the following commands to start the application:

```sh
npm start
```

## Scripts:

| Command | Description |
| ------ | ------ |
| npm start | Lift the application in local mode |
| npm run dev | Generate a build in dev mode |
| npm run prod | Generate a build in prod mode |
| npm run dev:legacy | Generate a build in dev mode to support legacy browsers |
| npm run prod:legacy | Generate a build in prod mode to support legacy browsers |

## Integration
Build tasks will create the following output:

#### Build for modern browsers:

├── dist/
├── styles.min.css
├── bundle.min.js

#### Build with support for legacy browsers:

├── dist/
├── styles.min.css
├── bundle.min.js
├── polyfills.min.js
├── webcomponents-loader.js
├── bundles/ # These scripts will load at runtime
├── webcomponents-ce.js
├── webcomponents-sd-ce-pf.js
├── webcomponents-sd-ce.js
├── webcomponents-sd.js

#### Html example:

```html



Create Vanilla App Example Integration


```

## Polyfills
We support the following features:

- Generics
- Symbol
- fetch
- Promise
- Async / Await

- Arrays
- entries
- from
- find
- findIndex
- includes
- keys
- values

- Objects
- assign
- entries
- values

- Strings
- endsWith
- includes
- startsWith

## Browsers support

:white_check_mark: Chrome


:white_check_mark: Firefox


:white_check_mark: Safari


:white_check_mark: Edge


:white_check_mark: IE11

```sh
npm run prod
```

## Todo

- [ ] Setup Unit Testing
- [ ] Setup E2E Testing

Keep calm and code!


[![Open Source Love](https://badges.frapsoft.com/os/v3/open-source.svg?v=102)](https://github.com/ellerbrock/open-source-badge/)