title: Custom Angular Schematic: Pipe "dasherize" is not defined. when run on angular project
body: <p>I created a simple new schematic using the angular schematics cli.  This schematic takes as input a name, and generates a file in the tree.  My <code>files/</code> directory looks like:</p>
  
  <pre><code>src/
    app/
      __name@dasherize__.ts
  </code></pre>
  
  <p>I've built it, and then created a new angular project:</p>
  
  <pre><code>ng new test-app --routing --style css
  </code></pre>
  
  <p>I then cd into the test-app directory and link to my sample schematic:</p>
  
  <pre><code>npm link ../schematics/sample-schematic
  </code></pre>
  
  <p>I then run my schematic:</p>
  
  <pre><code>ng g sample-schematic:sample
  </code></pre>
  
  <p>however I get the following error when I do so:</p>
  
  <pre><code>Pipe "dasherize" is not defined. 
  </code></pre>
  
  <p>If I change the file name in my <code>files</code> directory to <code>test.ts</code> it works fine, and the file is created.  I am guessing i am missing some import to use the various schematic functions in my test-app project.  My dependancies and dev-dependancies for <code>test-app</code> looks like:</p>
  
  <pre><code>  "dependencies": {
      "@angular/animations": "~7.2.0",
      "@angular/common": "~7.2.0",
      "@angular/compiler": "~7.2.0",
      "@angular/core": "~7.2.0",
      ...
    },
    "devDependencies": {
      "@angular-devkit/build-angular": "~0.13.0",
      "@angular-devkit/core": "^7.3.9",
      "@angular-devkit/schematics": "^7.3.9",
      "@angular-devkit/schematics-cli": "^0.13.9",
      "@angular/cli": "~7.3.9",
      "@angular/compiler-cli": "~7.2.0",
      "@angular/language-service": "~7.2.0",
      "@schematics/angular": "^7.3.9",
      ...
    }
  </code></pre>