dead-beef / node-make-starter

Front-end starter kit based on NodeJS and Make

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Node Make Starter

license

Overview

Front-end starter kit based on NodeJS and Make.

Project structure

  • ./src - application
    • ./src/js - scripts
    • ./src/umd - UMD scripts
    • ./src/css - stylesheets (scss files are compiled to application css bundle)
      • ./src/css/main.scss - main application stylesheet
      • ./src/css/vendor.scss - main vendor stylesheet
      • ./src/css/_materialize.scss - MaterializeCSS variables
    • ./src/img - images
  • ./build - temporary build files
  • ./dist - bundled application
  • ./tests - unit tests
  • ./config - configuration
  • ./make - makefiles

Requirements

Installation

git clone --recursive https://github.com/dead-beef/node-make-starter.git
cd node-make-starter
make

Building

# single run
make
# continuous
make watch
# single run, minify
make min
# continuous, minify
make min-watch
# rebuild
make rebuild
# rebuild, minify
make rebuild-min

Testing

# unit, single run
make test
# unit, continuous
make test-watch
# test application bundle
TEST_BUNDLE=1 make test
# select browsers (default: Chromium)
TEST_BROWSERS="Firefox Chrome" make test

Code Linting

make lint

Server

# start/restart
make start
# set ip and port
make SERVER_IP=127.0.0.1 SERVER_PORT=1080 start
# stop
make stop

Licenses

About

Front-end starter kit based on NodeJS and Make

License:MIT License


Languages

Language:Makefile 37.1%Language:JavaScript 32.9%Language:CSS 28.1%Language:Shell 1.9%