Skip to content

Using string templates for server/config/express.js #2239

@nstuyvesant

Description

@nstuyvesant
  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 4.0.5
Node 6.6.0
npm 3.10.8
Operating System MacOS 10.11.6
Item Answer
Transpiler Babel
Markup Pug
CSS SCSS
Router ui-router
Client Tests Mocha
DB MongoDB
Auth N

Would it make sense to use ES6 string templates for server/config/express.js
change line 45 from

app.set('views', config.root + '/server/views');<% if(filters.html) { %>

to

app.set('views', `${config.root}/server/views`);<% if(filters.html) { %>

and line 105

proxy: 'localhost:' + config.port,

to

proxy: `localhost:${config.port}`,

This would remove the ESLint errors.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions