Skip to content
This repository was archived by the owner on Jun 11, 2020. It is now read-only.

jitesoft/boilerplate-spa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Boilerplate for SPA:s

Simple boilerplate for single page applications.

Tech 'n stuffs

Check the package.json file a detailed list of packages.

The webpack configurations will build the html index file from the index.tmpl.html file in the src directory.
All images in the img directory will be copied to dist/img. JavaScript and CSS will be compiled and bundled into js files.

Setup

Download and install repo:

curl -sL https://github.com/jitesoft/boilerplate-spa/archive/1.0.0.tar.gz | tar xz; cd -
yarn install

Open package.json file, change the name of the project and update all meta tags that you wish to have injected into the resulting HTML files.

The SCSS main file should be imported into the JS code for it to compile, it will then be included in the compiled JavaScript code on build.

Development

Run yarn watch and webpack-serve will start a hot-swap enabled server with the webpack/webpack.config.dev.js configuration.
To build dev files to dist, run yarn build:dev

Testing

The package comes with jest and semistandard by default. To run them, run yarn test.

Production

To build the production files, run yarn build:prod. Resulting files will be placed in the dist directory.

Docker

Build the docker file for a lighttpd instance running your site!

About

Boilerplate for single page applications using webpack4, babel7, es2017 and scss/sass.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors