Scully: use defined project prefix if set

Created on 16 Dec 2019  路  2Comments  路  Source: scullyio/scully

generating a blog using scully should use the defined app prefix from angular.json file instead of always app.

Running this:

ng g @scullyio/init:blog

... will currently always lead to this blog.component.ts file content:

...
@Component({
  selector: 'app-blog',
  ...
})
...

If a prefix is set in angular.json (path: projects => <project name> => prefix) it should be used by scully for setting it:

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  ...
  "projects": {
    "my-project": {
      ...
      "prefix": "foo",
    }
  }
}  
...
@Component({
  selector: 'app-blog',
  ...
})
...
bug schematics

All 2 comments

thanks for the issue!
WIP in schematics/project-prefix

fixed and merged :) thanks for report

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nishimura-yuji picture nishimura-yuji  路  4Comments

jorgeucano picture jorgeucano  路  4Comments

spencerb02 picture spencerb02  路  3Comments

spencerb02 picture spencerb02  路  5Comments

msprogramando picture msprogramando  路  5Comments