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

Add cross-env to ensure examples work on Windows 10 #16694

Merged
merged 1 commit into from
Aug 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/custom-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"scripts": {
"dev": "node server.js",
"build": "next build",
"start": "NODE_ENV=production node server.js"
"start": "cross-env NODE_ENV=production node server.js"
},
"dependencies": {
"cross-env": "^7.0.2",
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1"
Expand Down
3 changes: 2 additions & 1 deletion examples/ssr-caching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"scripts": {
"dev": "node server.js",
"build": "next build",
"start": "NODE_ENV=production node server.js"
"start": "cross-env NODE_ENV=production node server.js"
},
"dependencies": {
"cacheable-response": "^1.1.0",
"cross-env": "^7.0.2",
"express": "^4.14.0",
"next": "latest",
"react": "^16.7.0",
Expand Down
3 changes: 2 additions & 1 deletion examples/with-algolia-react-instantsearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"name": "create-next-example-app",
"scripts": {
"dev": "next",
"build": "NODE_ENV=development next build",
"build": "cross-env NODE_ENV=development next build",
"start": "next start"
},
"dependencies": {
"algoliasearch": "4.3.0",
"cross-env": "^7.0.2",
"css-loader": "1.0.0",
"next": "latest",
"prop-types": "^15.5.10",
Expand Down
3 changes: 2 additions & 1 deletion examples/with-firebase-cloud-messaging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"scripts": {
"dev": "node server.js",
"build": "next build",
"start": "NODE_ENV=production node server.js"
"start": "cross-env NODE_ENV=production node server.js"
},
"dependencies": {
"cross-env": "^7.0.2",
"express": "^4.14.0",
"firebase": "^7.6.2",
"localforage": "^1.7.3",
Expand Down
3 changes: 2 additions & 1 deletion examples/with-http2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"scripts": {
"dev": "node server.js",
"build": "next build",
"start": "NODE_ENV=production node server.js"
"start": "cross-env NODE_ENV=production node server.js"
},
"dependencies": {
"cross-env": "^7.0.2",
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1"
Expand Down
5 changes: 3 additions & 2 deletions examples/with-react-intl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "with-react-intl",
"version": "1.0.0",
"scripts": {
"dev": "NODE_ICU_DATA=node_modules/full-icu ts-node --project tsconfig.server.json server.ts",
"dev": "cross-env NODE_ICU_DATA=node_modules/full-icu ts-node --project tsconfig.server.json server.ts",
"build": "npm run extract:i18n && npm run compile:i18n && next build && tsc -p tsconfig.server.json",
"extract:i18n": "formatjs extract '{pages,components}/*.{js,ts,tsx}' --format simple --out-file lang/en.json",
"compile:i18n": "formatjs compile-folder --ast --format simple lang/ compiled-lang/",
"start": "NODE_ENV=production NODE_ICU_DATA=node_modules/full-icu node dist/server"
"start": "cross-env NODE_ENV=production NODE_ICU_DATA=node_modules/full-icu node dist/server"
},
"dependencies": {
"@formatjs/cli": "^2.7.3",
Expand All @@ -17,6 +17,7 @@
"@formatjs/intl-relativetimeformat": "^7.1.1",
"accepts": "^1.3.7",
"babel-plugin-react-intl": "^8.1.1",
"cross-env": "^7.0.2",
"full-icu": "^1.3.0",
"glob": "^7.1.4",
"next": "latest",
Expand Down