Skip to content

Commit

Permalink
updated all packages and adjusted nollup files for the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
vzaidman committed Aug 22, 2021
1 parent b3ffce9 commit fe6b410
Show file tree
Hide file tree
Showing 3 changed files with 1,071 additions and 1,456 deletions.
9 changes: 5 additions & 4 deletions demo/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const fallback = require('express-history-api-fallback');
const config = require('./nollup.config.js');
const nollupDevServer = require('nollup/lib/dev-middleware');
const DemoComponent = require('./src/ssr/DemoComponent');
const http = require('http');

const port = process.env.PORT;
if (!port) {
Expand All @@ -21,18 +22,18 @@ app.get('/ssrComponent', (req, res) => {
stream.on('end', () => res.end());
});

const server = http.createServer(app);

app.use(nollupDevServer(app, config, {
watch: ['demo/src', 'src'],
hot: true,
}));
}, server));

app.use(express.static('demo/public'));

app.use(fallback('index.html', { root: 'demo/public' }));

app.listen(port, () => {
server.listen(port, () => {
// eslint-disable-next-line no-console
console.log(`Listening on http://localhost:${port}`);
});


49 changes: 24 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
"_cypress:run:ci": "yarn cypress:run --record --parallel --group main",
"_cypress:run:ci:classic": "yarn cypress:run --record --parallel --group classic",
"cypress:ci": "start-server-and-test start http://localhost:3003 _cypress:run:ci",
"cypress:ci:classic": "start-server-and-test start:classic http://localhost:3003 _cypress:run:ci:classic",
"prepare": "npx husky-init && husky install"
"cypress:ci:classic": "start-server-and-test start:classic http://localhost:3003 _cypress:run:ci:classic"
},
"dependencies": {
"lodash": "^4"
Expand All @@ -58,39 +57,39 @@
"react": "^16 || ^17"
},
"devDependencies": {
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.5",
"@babel/eslint-parser": "^7.14.5",
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
"@babel/eslint-parser": "^7.15.0",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/preset-env": "^7.14.5",
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-replace": "^2.4.2",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-replace": "^3.0.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@types/react-redux": "^7.1.16",
"@testing-library/react": "^12.0.0",
"@types/react-redux": "^7.1.18",
"@welldone-software/jest-console-handler": "^1.0.0",
"acorn-walk": "^8.1.0",
"acorn-walk": "^8.1.1",
"astring": "^1.7.5",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^27.0.2",
"concurrently": "^6.2.0",
"coveralls": "^3.1.0",
"babel-jest": "^27.0.6",
"concurrently": "^6.2.1",
"coveralls": "^3.1.1",
"create-react-class": "^15.7.0",
"cross-env": "^7.0.3",
"cypress": "^7.5.0",
"eslint": "^7.28.0",
"cypress": "^8.3.0",
"eslint": "^7.32.0",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-react": "^7.24.0",
"express": "^4.17.1",
"express-history-api-fallback": "^2.2.1",
"husky": "^6.0.0",
"jest": "^27.0.4",
"jest-cli": "^27.0.4",
"husky": "^7.0.0",
"jest": "^27.0.6",
"jest-cli": "^27.0.6",
"magic-string": "^0.25.7",
"nollup": "^0.16.5",
"nollup": "^0.18.2",
"react": "^17.0.2",
"react-16": "npm:react@^16.14.0",
"react-dom": "npm:@hot-loader/react-dom@^17.0.1",
Expand All @@ -100,15 +99,15 @@
"react-is-16": "npm:react-is@^16.13.1",
"react-redux": "^7.2.4",
"react-router-dom": "^5.2.0",
"redux": "^4.1.0",
"redux": "^4.1.1",
"rimraf": "^3.0.2",
"rollup": "^2.51.2",
"rollup": "^2.56.2",
"rollup-plugin-alias": "^2.2.0",
"rollup-plugin-commonjs-alternate": "^0.8.0",
"rollup-plugin-license": "^2.5.0",
"rollup-plugin-node-resolve": "^5.2.0",
"start-server-and-test": "^1.12.5",
"start-server-and-test": "^1.13.1",
"styled-components": "^5.3.0",
"typescript": "^4.3.2"
"typescript": "^4.3.5"
}
}
Loading

0 comments on commit fe6b410

Please sign in to comment.