Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade packages to latest version #74

Merged
merged 9 commits into from
Jan 2, 2021
Merged
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language: node_js
node_js:
- node
- 12
- 10
- 8
before_script:
- yarn build
script:
- yarn test:coverage
- yarn test
- yarn codecov
22 changes: 3 additions & 19 deletions examples/express-http-server-ts/backpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ const path = require('path');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

module.exports = {
webpack: config => {
config.context = path.resolve(__dirname, 'src');
webpack: (config) => {
config.entry = {
main: './index.ts'
main: './src/index.ts'
};
config.output.path = path.resolve(__dirname, 'dist');
config.resolve.extensions = ['.ts', '.json'];
Expand All @@ -28,22 +27,7 @@ module.exports = {
}
];

// Setup polling on MacOS for hot-reloads
if (process.env.OS === 'darwin') {
config.watch = true;

config.watchOptions = {
poll: 1000,
aggregateTimeout: 300,
ignored: /node_modules/
};
}

config.plugins.push(
new ForkTsCheckerWebpackPlugin({
tsconfig: path.resolve(__dirname, 'tsconfig.json')
})
);
config.plugins.push(new ForkTsCheckerWebpackPlugin({}));

return config;
}
Expand Down
14 changes: 7 additions & 7 deletions examples/express-http-server-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
"build": "backpack build"
},
"dependencies": {
"@leapfrogtechnology/async-store": "^1.1.0",
"@leapfrogtechnology/async-store": "^1.2.0",
"express": "^4.17.1"
},
"devDependencies": {
"@types/express": "^4.17.1",
"@types/node": "^12.7.8",
"@types/express": "^4.17.9",
"@types/node": "^14.14.17",
"backpack-core": "^0.8.4",
"fork-ts-checker-webpack-plugin": "^1.5.0",
"ts-loader": "^6.1.2",
"tslint": "^5.20.0",
"fork-ts-checker-webpack-plugin": "^6.0.8",
"ts-loader": "^8.0.13",
"tslint": "^6.1.3",
"tslint-config-leapfrog": "^1.0.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.7.2"
"typescript": "^4.1.3"
}
}
2 changes: 1 addition & 1 deletion examples/express-http-server-ts/src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function doSomethingAsync() {
setTimeout(() => {
const data = store.getAll();
logger.info('Store contents: ' + JSON.stringify(data));
resolve();
resolve(null);
}, 2000);
});
}
3,119 changes: 1,701 additions & 1,418 deletions examples/express-http-server-ts/yarn.lock

Large diffs are not rendered by default.

22 changes: 3 additions & 19 deletions examples/koa-http-server-ts/backpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ const path = require('path');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

module.exports = {
webpack: config => {
config.context = path.resolve(__dirname, 'src');
webpack: (config) => {
config.entry = {
main: './index.ts'
main: './src/index.ts'
};
config.output.path = path.resolve(__dirname, 'dist');
config.resolve.extensions = ['.ts', '.json'];
Expand All @@ -28,22 +27,7 @@ module.exports = {
}
];

// Setup polling on MacOS for hot-reloads
if (process.env.OS === 'darwin') {
config.watch = true;

config.watchOptions = {
poll: 1000,
aggregateTimeout: 300,
ignored: /node_modules/
};
}

config.plugins.push(
new ForkTsCheckerWebpackPlugin({
tsconfig: path.resolve(__dirname, 'tsconfig.json')
})
);
config.plugins.push(new ForkTsCheckerWebpackPlugin({}));

return config;
}
Expand Down
18 changes: 9 additions & 9 deletions examples/koa-http-server-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@
},
"dependencies": {
"@leapfrogtechnology/async-store": "^1.2.0",
"koa": "^2.11.0",
"koa": "^2.13.0",
"koa-request": "^1.0.0",
"qs": "^6.9.1"
"qs": "^6.9.4"
},
"devDependencies": {
"@types/koa": "^2.11.0",
"@types/node": "^12.12.14",
"@types/qs": "^6.9.0",
"@types/koa": "^2.11.6",
"@types/node": "^14.14.17",
"@types/qs": "^6.9.5",
"backpack-core": "^0.8.4",
"fork-ts-checker-webpack-plugin": "^3.1.1",
"ts-loader": "^6.2.1",
"tslint": "^5.20.1",
"fork-ts-checker-webpack-plugin": "^6.0.8",
"ts-loader": "^8.0.13",
"tslint": "^6.1.3",
"tslint-config-leapfrog": "^1.0.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.7.2"
"typescript": "^4.1.3"
}
}
2 changes: 1 addition & 1 deletion examples/koa-http-server-ts/src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function doSomethingAsync(): Promise<void> {
// Do something with the request with a delay.
logger.debug('Simulating delayed access');

return new Promise(resolve => {
return new Promise((resolve) => {
setTimeout(() => {
const data = store.getAll();
logger.info('Store contents: ' + JSON.stringify(data));
Expand Down
Loading