Skip to content

fraktalize/boilerplate-spa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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

SPA boilerplate

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 84.3%
  • Dockerfile 7.9%
  • HTML 7.8%