Add DEBUG flag when using the bin

This commit is contained in:
Sébastien Chopin 2016-11-10 15:24:22 +01:00
parent 9f370cb97c
commit 2cc88acbe9
3 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#!/usr/bin/env node #!/usr/bin/env node
// Show logs
process.env.DEBUG = 'nuxt:*'
const fs = require('fs') const fs = require('fs')
const Nuxt = require('../') const Nuxt = require('../')
const { resolve } = require('path') const { resolve } = require('path')

View File

@ -1,5 +1,8 @@
#!/usr/bin/env node #!/usr/bin/env node
// Show logs
process.env.DEBUG = 'nuxt:*'
const fs = require('fs') const fs = require('fs')
const Nuxt = require('../') const Nuxt = require('../')
const Server = require('../lib/server') const Server = require('../lib/server')

View File

@ -1,5 +1,8 @@
#!/usr/bin/env node #!/usr/bin/env node
// Show logs
process.env.DEBUG = 'nuxt:*'
const fs = require('fs') const fs = require('fs')
const Nuxt = require('../') const Nuxt = require('../')
const { resolve } = require('path') const { resolve } = require('path')