Code Monkey home page Code Monkey logo

angular-seed's Introduction

Angular Seed

Angular application seed using webpack, npm scripts, and bootstrap framework. Along with Karma/Jasmine setup for unit testing and Protractor for e2e testing.

Setup

Installation

  • Install package manager by running the following command in the terminal:
npm i -g yarn
  • Then cd into cloned project directory and run the below command to install required project dependencies:
yarn install

Run Project

  • Development

    Runs a pre-process for generating a vendor dll bundle. The dev build is then run referencing the vendor bundle and served using webpack's dev server in which processed files are located in a virtual folder. Defaults to http://localhost:3000/

yarn start
  • Production

    Runs a pre-process which installs required dependencies. The distribution folder is then cleaned before newly processed files are added.

yarn run build

Application Start-up

On application start-up you should see 'hello angular!'.

Webpack Configurations

Vendor

Contains configuration for creating a Dynamic-link library (DLL) for third-party dependencies. The vendor bundle is referenced by the development configuration through a generated manifest to allow for faster build times.

Common

Contains common configuration setup between development and production configurations.

Development

Contains development specific configuration. This includes the following:

  • Development server
  • Dynamic-link library (DLL)
  • Hot module replacement (HMR)

Production

Contains production specific configuration. This includes the following:

  • Generated typedoc
  • Ahead of time compilation (see To-Do below)

Test

Contains test specific configuration for use by karma test runner.

To-Do's

Development

Production

  • Add AOT plugin
  • Add split chunks plugins

General

  • Add minify, uglify
  • Fix issue with test being run before gloabl environment varaible set

angular-seed's People

Contributors

ianaco70 avatar ianacodev avatar

Watchers

Dheeraj Mummareddy 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.