Skip to content

Commit

Permalink
Add -watch option to dev task (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
olafkrueger authored and Eomm committed Jan 11, 2020
1 parent e3ae290 commit e34cb04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generate.js
Expand Up @@ -42,7 +42,7 @@ function generate (dir, cb) {
pkg.scripts = Object.assign(pkg.scripts || {}, {
test: 'tap test/**/*.test.js',
start: 'fastify start -l info app.js',
dev: 'fastify start -l info -P app.js'
dev: 'fastify start -w -l info -P app.js'
})

pkg.dependencies = Object.assign(pkg.dependencies || {}, {
Expand Down
2 changes: 1 addition & 1 deletion test/generate.test.js
Expand Up @@ -125,7 +125,7 @@ function define (t) {
t.ok(pkg.license === 'ISC' || pkg.license === 'MIT')
t.equal(pkg.scripts.test, 'tap test/**/*.test.js')
t.equal(pkg.scripts.start, 'fastify start -l info app.js')
t.equal(pkg.scripts.dev, 'fastify start -l info -P app.js')
t.equal(pkg.scripts.dev, 'fastify start -w -l info -P app.js')
t.equal(pkg.dependencies['fastify-cli'], '^' + cliPkg.version)
t.equal(pkg.dependencies.fastify, cliPkg.dependencies.fastify)
t.equal(pkg.dependencies['fastify-plugin'], cliPkg.devDependencies['fastify-plugin'] || cliPkg.dependencies['fastify-plugin'])
Expand Down

0 comments on commit e34cb04

Please sign in to comment.