-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01c9f77
commit 575454b
Showing
37 changed files
with
2,781 additions
and
1,491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// TODO: This file was created by bulk-decaffeinate. | ||
// Sanity-check the conversion and remove this comment. | ||
import gulp from 'gulp' | ||
import { spawn } from 'child_process' | ||
|
||
const paths = { | ||
serverBin: './bin/server.js', | ||
js: [ | ||
'./**/*.js', | ||
'!./node_modules/**/*' | ||
] | ||
} | ||
|
||
gulp.task('default', 'dev') | ||
|
||
gulp.task('dev', 'watch:dev') | ||
|
||
gulp.task('watch:dev', gulp.series('dev:server', () => gulp.watch(paths.js, ['dev:server'])) | ||
) | ||
|
||
let devServer = null | ||
gulp.task('dev:server', function () { | ||
process.on('exit', () => devServer?.kill()) | ||
devServer && devServer.kill() | ||
devServer = spawn('js', [paths.serverBin], { stdio: 'inherit' }) | ||
return devServer.on('close', function (code) { | ||
if (code === 8) { | ||
return gulp.log('Error detected, waiting for changes') | ||
} | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
export NODE_ENV=production | ||
|
||
./node_modules/coffeescript/bin/coffee ./bin/server.coffee | ||
node ./bin/server.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.