convert styles to stylus
This commit is contained in:
parent
1160466cf9
commit
c47ad92f21
11 changed files with 98 additions and 119 deletions
|
@ -13,7 +13,7 @@ class Room {
|
|||
this.teamB = new Set();
|
||||
this.world = new World(this);
|
||||
this.name = (Math.random() * 100000 | 0).toString(36);
|
||||
this.tps = 5;
|
||||
this.tps = wingbase.args.development ? 5 : 60;
|
||||
|
||||
this.idGenerator = (function*() {
|
||||
let i = 0;
|
||||
|
|
|
@ -17,11 +17,10 @@ class WingbaseServer extends ServerInterface {
|
|||
commander
|
||||
.version(packageJson.version)
|
||||
.option('-d, --development', 'run in development mode')
|
||||
.option('-p, --port [port]', 'specify port to use', port)
|
||||
.option('-p, --port <port>', 'specify port to use', parseInt, port)
|
||||
.parse(process.argv);
|
||||
|
||||
this.args = commander;
|
||||
console.log(commander.port);
|
||||
|
||||
process.on('SIGINT', this.stop.bind(this));
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@ class WebServer {
|
|||
app.use(stylus.middleware({
|
||||
src: 'public/stylus',
|
||||
dest: 'public/static/css',
|
||||
force: wingbase.args.development,
|
||||
compile: (str, path) => {
|
||||
return stylus(str)
|
||||
.set('filename', path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue