@awdware/gah
Generic Angular Host Tooling
Last updated 10 hours ago by loaderb0t .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @awdware/gah 
SYNC missed versions from official npm registry.

Welcome to gah!

npm version Build Status Quality Gate Status

gah provides tooling for working with decentralized, modular angular applications.

Features

✅ Intuitive CLI for configuring modules, hosts, dependencies, plugins and more
✅ Works with angular-CLI but is not strictly dependent on it
✅ Generates a generic host for you
✅ CI Support
✅ Reload on save features fully supported for all dependencies
✅ Pluggable: Write your own plugins to add project-specific functionality
✅ Use from code: Run all the commands from nodeJS scripts or from build tools like grunt

Upcoming

???? Multi-Repository Support

Getting started

gah can be used both as a CLI tool and integrated into your node scripts or JS build systems [WIP].

From CLI

To use the gah-cli install the @awdware/gah package globally.

// For yarn use
$ yarn global add @awdware/gah
// For npm use
$ npm i -g @awdware/gah

To get started you can generate an empty host with:

$ gah init --host

Navigate to your angular library containing the entry module. The entry module it the module that provides the basic structure of your application. Usually containing some sort of toolbar or menu and a <router-outlet> for the other modules. Initialize the entry module with the interactive CLI:

$ gah init --entry

If the entry module has dependencies on other modules, you have to initialize those modules now. THerfor navigate to the project folder containing the dependency. Beware that the entry module should only have dependencies to shared library modules that do not provide any routing or pages themselves, but rather have some common controls and services. You can initialize any module with the interactive init command.

$ gah init

Then in your entry module you can go ahead and add the dependency with the following interactive CLI command:

$ gah dependency add

If your setup is complete you can go back to the folder for the host and install the previously configured dependencies:

$ gah install

If everything is configured correctly, you will now be able to run the angular-cli commands for building or serving your application from the host folder.

From Code

You can also use gah from code. See the example below.

// commonJS import style
const gah = require('@awdware/gah').gah;

// ES6 import style
import { gah } from '@awdware/gah';

await gah.addPlugin('@awdware/gah-translation-merger'); // <- This does only make sense in rare usecases I think.
await gah.install(); // <- Usually you would only call install in here I assume.

Please note that all commands are executed for the current working directory of NodeJS. So for adding dependencies you first have to navigate to that folder and execute the script there. (Not within the script but within your terminal!)

Current Tags

  • 0.0.35                                ...           latest (10 hours ago)

71 Versions

  • 0.0.35                                ...           10 hours ago
  • 0.0.34                                ...           10 hours ago
  • 0.0.33                                ...           10 hours ago
  • 0.0.32                                ...           10 hours ago
  • 0.0.31                                ...           11 hours ago
  • 0.0.30                                ...           11 hours ago
  • 0.0.29                                ...           11 hours ago
  • 0.0.28                                ...           11 hours ago
  • 0.0.27                                ...           14 hours ago
  • 0.0.26                                ...           a day ago
  • 0.0.25                                ...           2 days ago
  • 0.0.24                                ...           6 days ago
  • 0.0.23                                ...           6 days ago
  • 0.0.22                                ...           6 days ago
  • 0.0.21                                ...           6 days ago
  • 0.0.20                                ...           6 days ago
  • 0.0.19                                ...           6 days ago
  • 0.0.18                                ...           a month ago
  • 0.0.17                                ...           a month ago
  • 0.0.16                                ...           a month ago
  • 0.0.15                                ...           a month ago
  • 0.0.14                                ...           a month ago
  • 0.0.13                                ...           a month ago
  • 0.0.12                                ...           a month ago
  • 0.0.11                                ...           a month ago
  • 0.0.10                                ...           a month ago
  • 0.0.9                                ...           a month ago
  • 0.0.8                                ...           a month ago
  • 0.0.7                                ...           a month ago
  • 0.0.6                                ...           a month ago
  • 0.0.5                                ...           a month ago
  • 0.0.4                                ...           a month ago
  • 0.0.3                                ...           a month ago
  • 0.0.2                                ...           a month ago
  • 0.0.1-alpha37 [deprecated]           ...           a month ago
  • 0.0.1-alpha36 [deprecated]           ...           a month ago
  • 0.0.1-alpha35 [deprecated]           ...           a month ago
  • 0.0.1-alpha34 [deprecated]           ...           a month ago
  • 0.0.1-alpha33 [deprecated]           ...           a month ago
  • 0.0.1-alpha32 [deprecated]           ...           a month ago
  • 0.0.1-alpha31 [deprecated]           ...           a month ago
  • 0.0.1-alpha30 [deprecated]           ...           a month ago
  • 0.0.1-alpha29 [deprecated]           ...           a month ago
  • 0.0.1-alpha28 [deprecated]           ...           a month ago
  • 0.0.1-alpha27 [deprecated]           ...           a month ago
  • 0.0.1-alpha26 [deprecated]           ...           a month ago
  • 0.0.1-alpha25 [deprecated]           ...           a month ago
  • 0.0.1-alpha24 [deprecated]           ...           a month ago
  • 0.0.1-alpha23 [deprecated]           ...           a month ago
  • 0.0.1-alpha22 [deprecated]           ...           a month ago
  • 0.0.1-alpha21 [deprecated]           ...           a month ago
  • 0.0.1-alpha20 [deprecated]           ...           a month ago
  • 0.0.1-alpha19 [deprecated]           ...           a month ago
  • 0.0.1-alpha18 [deprecated]           ...           a month ago
  • 0.0.1-alpha17 [deprecated]           ...           a month ago
  • 0.0.1-alpha16 [deprecated]           ...           a month ago
  • 0.0.1-alpha15 [deprecated]           ...           a month ago
  • 0.0.1-alpha14 [deprecated]           ...           a month ago
  • 0.0.1-alpha13 [deprecated]           ...           a month ago
  • 0.0.1-alpha12 [deprecated]           ...           a month ago
  • 0.0.1-alpha11 [deprecated]           ...           a month ago
  • 0.0.1-alpha10 [deprecated]           ...           a month ago
  • 0.0.1-alpha9 [deprecated]           ...           a month ago
  • 0.0.1-alpha8 [deprecated]           ...           a month ago
  • 0.0.1-alpha7 [deprecated]           ...           a month ago
  • 0.0.1-alpha6 [deprecated]           ...           a month ago
  • 0.0.1-alpha5 [deprecated]           ...           a month ago
  • 0.0.1-alpha4 [deprecated]           ...           a month ago
  • 0.0.1-alpha3 [deprecated]           ...           a month ago
  • 0.0.1-alpha2 [deprecated]           ...           a month ago
  • 0.0.1-alpha1 [deprecated]           ...           a month ago
Maintainers (1)
Downloads
Today 66
This Week 134
This Month 134
Last Day 10
Last Week 54
Last Month 402
Dependencies (17)
Dev Dependencies (15)

Copyright 2014 - 2016 © taobao.org |