Skip to content

shawndube/mycompany-standard

Repository files navigation

Attempted schematic to create common install with predefined config

schematics .:ng-new

Issues:

  • Is it possible to change folder "context" so things like EsLint's add-new can just work (they seem to need to be IN the new angular app I am creating in the first step) Yes, use applyToSubtree()
  • Find how to switch to Yarn 2. Do we need "pre" step or process to install a bunch of things (ng cli, yarn, etc.)

Original failure point - fixed by using applyToSubtree():

Fails on EsLint

##Steps to make this work from a fresh clone of the repo

  • Part of your problem is that you're trying to run a schematic without an Angular project
  • The idea behind schematics are to have an existing Angular project and make modifications
  • Technically your schematic will work inside an Angular project, but it also creates another Angular project inside the Angular project
  1. ng new some-proj
  2. cd some-proj
  3. npm link ../mycompany-standard NOTE(This is just temporary for quickly being able to run your schematics. You would package your schematic up into an npm package for actual use.)
  4. ng g mycompany-standard:ng-new

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published