diff options
author | eric <thul.eric@gmail.com> | 2016-11-12 08:08:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-12 08:08:35 -0500 |
commit | c3a7c4d64f4fbffc66297f29296583c3b00a462f (patch) | |
tree | f580ceba1b6b307a37e8f09d1f722d955dbb5de3 /src/Psc.js | |
parent | 1d024ae24fb6d25cc82d24a584cba3df8e4f9874 (diff) | |
parent | 91046f11bc9c847a76128593acfc16b285fe4fe1 (diff) | |
download | purs-loader-c3a7c4d64f4fbffc66297f29296583c3b00a462f.tar.gz purs-loader-c3a7c4d64f4fbffc66297f29296583c3b00a462f.tar.zst purs-loader-c3a7c4d64f4fbffc66297f29296583c3b00a462f.zip |
Merge pull request #75 from javcasas/master
Don't console.log unless it is needed
Diffstat (limited to 'src/Psc.js')
-rw-r--r-- | src/Psc.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -29,7 +29,7 @@ function compile(psModule) { | |||
29 | debug('spawning compiler %s %o', options.psc, args) | 29 | debug('spawning compiler %s %o', options.psc, args) |
30 | 30 | ||
31 | return (new Promise((resolve, reject) => { | 31 | return (new Promise((resolve, reject) => { |
32 | console.log('\nCompiling PureScript...') | 32 | debug('\nCompiling PureScript...') |
33 | 33 | ||
34 | const compilation = spawn(options.psc, args) | 34 | const compilation = spawn(options.psc, args) |
35 | 35 | ||
@@ -37,7 +37,7 @@ function compile(psModule) { | |||
37 | compilation.stderr.on('data', data => stderr.push(data.toString())) | 37 | compilation.stderr.on('data', data => stderr.push(data.toString())) |
38 | 38 | ||
39 | compilation.on('close', code => { | 39 | compilation.on('close', code => { |
40 | console.log('Finished compiling PureScript.') | 40 | debug('Finished compiling PureScript.') |
41 | cache.compilationFinished = true | 41 | cache.compilationFinished = true |
42 | if (code !== 0) { | 42 | if (code !== 0) { |
43 | cache.errors = stderr.join('') | 43 | cache.errors = stderr.join('') |
@@ -74,7 +74,7 @@ function bundle(options, cache) { | |||
74 | debug('spawning bundler %s %o', options.pscBundle, args.join(' ')) | 74 | debug('spawning bundler %s %o', options.pscBundle, args.join(' ')) |
75 | 75 | ||
76 | return (new Promise((resolve, reject) => { | 76 | return (new Promise((resolve, reject) => { |
77 | console.log('Bundling PureScript...') | 77 | debug('Bundling PureScript...') |
78 | 78 | ||
79 | const compilation = spawn(options.pscBundle, args) | 79 | const compilation = spawn(options.pscBundle, args) |
80 | 80 | ||