Giter Club home page Giter Club logo

volcanic_es6_app_boilerplate's Introduction

Volcanic es6 boilerplate project starter

An opinionated boilerplate to start es6 projects at volcanic

How to setup

Clone this repository

git clone https://github.com/volcanic-uk/volcanic_es6_app_boilerplate.git

Then rename the newly downloaded folder to your project name.

cd to the downloaded folder.

then run:

npm init

Set up your package by answering the questions on your terminal.

Once finished run

npm install

Dev server

to run the dev server on localhost

npm start

Build to production

To build and transpile the project run

npm run build

then to run the production code locally

npm run server

make sure that your build the project before running the server in production.

Run tests

For testing we are using Mocha & Chai and webpack with mocha-loader to run tests in the browser The following will open your browser and run the tests in the application interface directly

npm test

The test command will do 3 things:

  • Run all your unit tests in node environment ( to run only this you can run npm run test:cli).
  • Compile and build a development server and test files to run the tests in the browser ( to run only this you can run npm run test:e2e).
  • Lint your entire application ( to run only this you can run npm run lint).

Linting

you can lint everything you write in the src folder by running the command

npm run  lint

to try and auto fix some linting issues, run

npm run  lint:fix

When you run npm start, npm test or npm build the lint command will run.

Making new commits

Always make sure to run npm run build before you commit changes.

This boilerplate utilizes angular commit style for new commits.

Deploy to now

Always make sure to npm run build before you deploy. To test outside of your localhost run the following command and follow the instructions

now --public

Configs

We are using webpack to build the project with 3 types of configs:

  • Dev
  • Test
  • Production

more to come ... ๐Ÿ‘ป

volcanic_es6_app_boilerplate's People

Contributors

mouhannad-sh avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.