0.3.4 • Published 4 years ago

vlschematics v0.3.4

Weekly downloads
25
License
MIT
Repository
-
Last release
4 years ago

VLSchematics

This is an Angular schematics repository for building Frontend Applications in te Visual Lease desing system.

Installation

First install the angular cli and schematics projects globally.

$ yarn add global @angular/cli @schematics/angular

Next install the vlschematics projects.

$ yarn add global vlschematics

Generating a new VL Frontend App

Starting a new frontend project from scratch

Use angular's ng new command and pass in vlschematics for project setup.

$ ng new --collection vlschematics --name your-project-name

OR Add our frontend dependencies to an existing angular project

Just add the vlschematics project to an existing angular project.

ng new --name your-project-name
ng add vlschematics

Updating the frontend template and publishing a new version of this schematics library

*Note - You probably came here from "Updating the VLSchematics template" in teh Reference Implementation project. Welcome!

  1. Clone this repo, if you don't already have it
$ git clone https://visuallease.visualstudio.com/Lightmatter/_git/VL-MS-UI-SchematicsTemplate vlschematics
$ cd vlschematics
  1. Initialize submodule link to the Reference Implementation project, if you haven't already
$ git submodule --init
  1. Pull the updated submodule
$ git submodule update --remote
  1. Commit your changes to master
$ git commit -m "Update the template"
  1. Push your changes
$ git push
  1. Bump the version
$ npm version patch
  1. Publish your changes!
$ npm publish

Testing

To test locally, install @angular-devkit/schematics-cli globally and use the schematics command line tool. That tool acts the same as the generate command of the Angular CLI, but also has a debug mode.

Check the documentation with

schematics --help

Unit Testing

npm run test will run the unit tests, using Jasmine as a runner and test framework.

Publishing

To publish, simply do:

npm run build
npm publish

That's it!

0.3.4

4 years ago

0.3.3

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.0.20

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.1.0

4 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.19

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago