@armor/create-armor-ui
A CLI tool for generating Armor UI apps.
Last updated 5 months ago by armor_ci .
SEE LICENSE IN LICENSE · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @armor/create-armor-ui -g
SYNC missed versions from official npm registry.

Build Status @armor/api Managed With

Create Armor UI

Features

  • [x] Installs core Armor dependencies
  • [x] Connects to API out of the box, login redirect, and an example call to /me
  • [x] Generates Example components that illustrate how routing and nav should be set up
  • [x] Creates Passing Unit tests for generated components (100% coverage)
  • [ ] Passes lint (angular cli generated e2e test do not pass)
  • [ ] Runs e2e tests

Prerequisites

Install

We need to install Angular CLI & Armor Create UI

npm i -g @angular/cli @armor/create-armor-ui

Create directory

If you have already set up a git repo, just cd into that now.

Otherwise create a new dir and cd in.

mkdir my-app
cd my-app

Generate your new app

You just need to type create-armor-ui and supply a name for your app.

create-armor-ui myApp

Run Your App

# run the app against TDE
npm run dev # prod | cert

Testing / Linting

Lint (scss & ts)

npm run lint

Unit Tests

npm run test

End-toEnd Tests

Credentials

We are running tests on TDE with the ``

  1. Install pass if you do not already have it.
  2. Initialize a new password store
    • pass init <gpg-key-id>
      • gpg --list-keys to list gpg-keys
  3. save tde/portal/test.dev to pass
    • pass insert tde/portal/test.dev

Running Locally

  1. export your password to your environment variables
    • $export tdePass="$(pass tde/portal/test.dev)"
  2. serve up & test the app
    • npm run e2e

Writing tests

When writing tests it may be better to serve up the app with npm start and then in another terminal run npm run e2e:no-serve. This will save the time it takes to rebuild the app. You still need to export the password to env $export tdePass="$(pass tde/portal/test.dev)"

Error Messages and Solutions

Forgot to add tdePass to env

Error Message

Failed: each key must be a number of string; got undefined

Solution

Add tdePass to env

export tdePass="$(pass tde/portal/test.dev)"

Current Tags

  • 1.1.5                                ...           latest (5 months ago)

39 Versions

  • 1.1.5                                ...           5 months ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-beta.31                                ...           2 years ago
  • 1.0.0-beta.30                                ...           2 years ago
  • 1.0.0-beta.29                                ...           2 years ago
  • 1.0.0-beta.28                                ...           2 years ago
  • 1.0.0-beta.27                                ...           2 years ago
  • 1.0.0-beta.26                                ...           2 years ago
  • 1.0.0-beta.25                                ...           2 years ago
  • 1.0.0-beta.24                                ...           2 years ago
  • 1.0.0-beta.23                                ...           2 years ago
  • 1.0.0-beta.22                                ...           2 years ago
  • 1.0.0-beta.21                                ...           2 years ago
  • 1.0.0-beta.20                                ...           2 years ago
  • 1.0.0-beta.19                                ...           2 years ago
  • 1.0.0-beta.18                                ...           2 years ago
  • 1.0.0-beta.17                                ...           2 years ago
  • 1.0.0-beta.16                                ...           2 years ago
  • 1.0.0-beta.15                                ...           2 years ago
  • 1.0.0-beta.14                                ...           2 years ago
  • 1.0.0-beta.13                                ...           2 years ago
  • 1.0.0-beta.12                                ...           2 years ago
  • 1.0.0-beta.11                                ...           2 years ago
  • 1.0.0-beta.10                                ...           2 years ago
  • 1.0.0-beta.9                                ...           2 years ago
  • 1.0.0-beta.8                                ...           2 years ago
  • 1.0.0-beta.7                                ...           2 years ago
  • 1.0.0-beta.6                                ...           2 years ago
  • 1.0.0-beta.4                                ...           2 years ago
  • 1.0.0-beta.3                                ...           2 years ago
  • 1.0.0-beta.2                                ...           2 years ago
  • 1.0.0-beta.1                                ...           2 years ago
  • 1.0.0-beta.0                                ...           2 years ago
Downloads
Today 0
This Week 39
This Month 39
Last Day 0
Last Week 0
Last Month 1
Dependencies (11)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |