Skip to content

Commit

Permalink
Merge pull request #452 from kethinov/fixes
Browse files Browse the repository at this point in the history
0.21.3
  • Loading branch information
kethinov authored Mar 16, 2023
2 parents 68785b0 + cb54eac commit 242047f
Show file tree
Hide file tree
Showing 7 changed files with 1,379 additions and 853 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

- Put your changes here...

## 0.21.3

- Enabled source-maps on webpack by default.
- Pinned deps.
- Various dependencies bumped.

## 0.21.2

- Improvements to the SPA variant of the generator.
Expand Down
27 changes: 15 additions & 12 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const helper = require('./promptingHelpers')
const defaults = require('./templates/defaults.json')
const beautify = require('gulp-beautify')
const filter = require('gulp-filter')
const terminalLink = require('terminal-link')
const selfsigned = require('selfsigned')

const cache = {}
Expand Down Expand Up @@ -796,16 +795,20 @@ module.exports = class extends Generator {
}

end () {
if (!this.options['skip-closing-message']) {
this.log(`\nYour app ${this.appName} has been generated.\n`)
this.log('To run the app:')
this.log('- Change to your app directory: cd ' + this.dirname)
this.log('- Install dependencies: npm i')
this.log('- To run in development mode: npm run d')
this.log('- To run in production mode: npm run p')
const url = 'https://localhost:' + this.httpsPort
this.log('- Once running, visit: ' + terminalLink(url, url) + '\n')
this.log('To make further changes to the config, edit package.json. See https://github.com/rooseveltframework/roosevelt#configure-your-app-with-parameters for information on the configuration options.')
}
;(async () => {
const terminalLink = await import('terminal-link')

if (!this.options['skip-closing-message']) {
this.log(`\nYour app ${this.appName} has been generated.\n`)
this.log('To run the app:')
this.log('- Change to your app directory: cd ' + this.dirname)
this.log('- Install dependencies: npm i')
this.log('- To run in development mode: npm run d')
this.log('- To run in production mode: npm run p')
const url = 'https://localhost:' + this.httpsPort
this.log('- Once running, visit: ' + terminalLink(url, url) + '\n')
this.log('To make further changes to the config, edit package.json. See https://github.com/rooseveltframework/roosevelt#configure-your-app-with-parameters for information on the configuration options.')
}
})()
}
}
1 change: 1 addition & 0 deletions generators/app/templates/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
{
"config": {
"entry": "${js.sourcePath}/main.js",
"devtool": "source-map",
"output": {
"path": "${publicFolder}/js"
},
Expand Down
Loading

0 comments on commit 242047f

Please sign in to comment.