Skip to content

dead-beef/ng1-make-starter

Repository files navigation

Angular 1 application starter kit

Overview

A starter kit for standalone Angular 1 application based on NodeJS and Make.

Project structure

  • ./src - application
    • ./src/umd - UMD scripts
    • ./src/components - viewless components
    • ./src/views - view components
    • ./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/img - images
  • ./build - temporary build files
  • ./dist - bundled application
  • ./tests - unit tests
  • ./e2e-tests - end to end tests
  • ./config - configuration
    • ./config/os.mk - shell commands
    • ./config/app.mk - variables
    • ./config/deps.mk - custom targets/dependencies
    • ./config/override.js - override dependency package.json

Requirements

Installation

git clone https://github.com/dead-beef/ng1-make-starter.git
cd ng1-make-starter
make install

Building

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

Testing

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

Code Linting

make lint

Server

make start
make SERVER_IP=192.168.1.10 SERVER_PORT=1080 start
make stop

Licenses