Skip to content

beku8/multi-ngbp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multi-ngbp

This is an ngbp wrapper which makes it easy to develop multiple projects by:

  • Share common/library codes between builds & compiles.
  • Run them similtaneously without port overlaps.
  • grunt-contrib-connect plugin to develop from localhost rather than file system.

Structure

-- app1/
  |-- src/
  |-- vendor/
  |-- node_modules/
  |-- build/
  |-- bin/
  |-- Gruntfile.js
  |-- package.json ...
-- app2/ 
-- common1/
-- common2/
-- grunt_conf/
  • app1 & app2 : your regular ngbp application
  • common1 & common2: you can include .js, .spec, .tpl.html, .less files and it will be treated as if it was in the src folder
  • grunt_conf: grunt related tasks & other configruation.

Quick start

After cloning the repo you should enter each app folders & install dependencies like regular ngbp.

$ sudo npm -g install grunt-cli karma bower
$ cd app1
$ npm install
$ bower install
$ grunt watch

To compile it for production

$ grunt

To add another app folder you just need same directory structure & configure build.conf.js file to have different port numbers than others.

About

Little tweak around Angular boilerplate to develop multiple projects and share codes between

Resources

Stars

Watchers

Forks

Packages

No packages published