New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

create-vanilla-js-app

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-vanilla-js-app

Vanilla javascript es6 generator with Babel, Webpack and HMR

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status

Create Vanilla JS App 🌴🌴🌴

Installation

yarn

yarn global add create-vanilla-js-app

npm

npm i -g create-vanilla-js-app

Once installed

cva projectname

creates boilerplate in projectname dir.

A very simple vanilla js boilerplate

  • Includes webpack HMR
  • Webpack 4
  • Es6 / Babel
  • Webpack CSS loader / Style loader

I've tried to keep it as clean as possible. Add your own packages to suit your own workflow. The one thing I've ommited is package-lock.json generation. But you can add this back in by removing .npmrc before running npm i

First

Install deps from project root yarn or npm i

Generated app usage

Start development server with:

yarn start:dev or npm run start:dev

It's possible to use a different port by specifying this first like so:

CVA_PORT=7788 yarn start:dev to start with port 7788. Same for npm just include CVA_PORT=7788 at the beginning.

Build for production

yarn build or npm run build

Ways you may add to this

  • Add jsx and react - Or just use create react app instead!
  • Add a .env for project specific environment values

Keywords

FAQs

Package last updated on 17 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc