Skip to content

Commit 86df405

Browse files
authored
[misc] upgrade packages (#320)
1 parent 57111d3 commit 86df405

File tree

23 files changed

+3415
-5422
lines changed

23 files changed

+3415
-5422
lines changed

.babelrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

dev-server.js

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const fs = require('fs');
21
const path = require('path');
32
const express = require('express');
43
const bodyParser = require('body-parser');
@@ -12,14 +11,16 @@ const opn = require('opn');
1211
const app = express();
1312
const compiler = webpack(config);
1413

15-
app.use(devMiddleware(compiler, {
16-
logLevel: 'warn',
17-
publicPath: config.output.publicPath,
18-
watchOptions: {
19-
aggregateTimeout: 300,
20-
poll: true
21-
}
22-
}));
14+
app.use(
15+
devMiddleware(compiler, {
16+
logLevel: 'warn',
17+
publicPath: config.output.publicPath,
18+
watchOptions: {
19+
aggregateTimeout: 300,
20+
poll: true,
21+
},
22+
})
23+
);
2324
app.use(hotMiddleware(compiler));
2425

2526
app.use(bodyParser.json()); // for parsing application/json
@@ -30,18 +31,23 @@ app.use('/assets', express.static(path.resolve(__dirname, 'assets')));
3031
app.use('/core', express.static(path.resolve(__dirname, 'lib/core')));
3132

3233
app.get('/', (req, res) => {
33-
res.sendFile(path.resolve(__dirname, 'src/index.html'));
34+
res.sendFile(path.resolve(__dirname, 'src/index.html'));
3435
});
3536

3637
app.get('/sample-url', (req, res) => {
37-
res.redirect(`/#d=https://pdftron.s3.amazonaws.com/downloads/pl/demo-annotated.pdf&a=1`);
38+
res.redirect(
39+
`/#d=https://pdftron.s3.amazonaws.com/downloads/pl/demo-annotated.pdf&a=1`
40+
);
3841
});
3942

4043
app.listen(3000, '0.0.0.0', err => {
41-
if (err) {
42-
console.error(err);
43-
} else {
44-
console.info(`Listening at localhost:3000 (http://${ip.address()}:3000)`);
45-
opn('http://localhost:3000/#d=https://pdftron.s3.amazonaws.com/downloads/pl/demo-annotated.pdf&a=1');
46-
}
47-
});
44+
if (err) {
45+
console.error(err);
46+
} else {
47+
// eslint-disable-next-line
48+
console.info(`Listening at localhost:3000 (http://${ip.address()}:3000)`);
49+
opn(
50+
'http://localhost:3000/#d=https://pdftron.s3.amazonaws.com/downloads/pl/demo-annotated.pdf&a=1'
51+
);
52+
}
53+
});

0 commit comments

Comments
 (0)