Skip to content

Commit

Permalink
refactor(templates): group xq files in collection
Browse files Browse the repository at this point in the history
  • Loading branch information
duncdrum committed Feb 10, 2021
1 parent 0008fd6 commit ebb96bf
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,14 +551,14 @@ module.exports = class extends Generator {

// XQuery
this.fs.copyTpl(
this.templatePath('controller.xql'),
this.templatePath('xq/controller.xql'),
this.destinationPath('controller.xql'), {
apptype: this.props.apptype[0],
mysec: this.props.mysec
})

this.fs.copyTpl(
this.templatePath('view.xql'),
this.templatePath('xq/view.xql'),
this.destinationPath('modules/view.xql'), {
apptype: this.props.apptype[0],
defcoll: this.props.defcoll,
Expand All @@ -567,7 +567,7 @@ module.exports = class extends Generator {
version: this.props.version
})
this.fs.copyTpl(
this.templatePath('app.xql'),
this.templatePath('xq/app.xql'),
this.destinationPath('modules/app.xql'), {
apptype: this.props.apptype[0],
author: this.props.author,
Expand All @@ -580,7 +580,7 @@ module.exports = class extends Generator {
website: this.props.website
})
this.fs.copyTpl(
this.templatePath('config.xqm'),
this.templatePath('xq/config.xqm'),
this.destinationPath('modules/config.xqm'), {
apptype: this.props.apptype[0],
defcoll: this.props.defcoll,
Expand Down Expand Up @@ -675,7 +675,7 @@ module.exports = class extends Generator {
// Pre-install
if (this.props.pre) {
this.fs.copyTpl(
this.templatePath('pre-install.xql'),
this.templatePath('xq/pre-install.xql'),
this.destinationPath('pre-install.xql'), {
author: this.props.author,
version: this.props.version,
Expand All @@ -686,7 +686,7 @@ module.exports = class extends Generator {
// Post-install
if (this.props.post) {
this.fs.copyTpl(
this.templatePath('post-install.xql'),
this.templatePath('xq/post-install.xql'),
this.destinationPath('post-install.xql'), {
apptype: this.props.apptype[0],
author: this.props.author,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ebb96bf

Please sign in to comment.