Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
ce994365
Unverified
Commit
ce994365
authored
Aug 30, 2020
by
Jesse Jafa
Committed by
GitHub
Aug 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cross-env to ensure examples work on Windows 10 (#16694)
Closes
https://github.com/vercel/next.js/issues/16693
parent
ba2fbc2b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
7 deletions
+13
-7
package.json
examples/custom-server/package.json
+2
-1
package.json
examples/ssr-caching/package.json
+2
-1
package.json
examples/with-algolia-react-instantsearch/package.json
+2
-1
package.json
examples/with-firebase-cloud-messaging/package.json
+2
-1
package.json
examples/with-http2/package.json
+2
-1
package.json
examples/with-react-intl/package.json
+3
-2
No files found.
examples/custom-server/package.json
View file @
ce994365
...
@@ -4,9 +4,10 @@
...
@@ -4,9 +4,10 @@
"scripts"
:
{
"scripts"
:
{
"dev"
:
"node server.js"
,
"dev"
:
"node server.js"
,
"build"
:
"next build"
,
"build"
:
"next build"
,
"start"
:
"NODE_ENV=production node server.js"
"start"
:
"
cross-env
NODE_ENV=production node server.js"
},
},
"dependencies"
:
{
"dependencies"
:
{
"cross-env"
:
"^7.0.2"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"react"
:
"^16.13.1"
,
"react"
:
"^16.13.1"
,
"react-dom"
:
"^16.13.1"
"react-dom"
:
"^16.13.1"
...
...
examples/ssr-caching/package.json
View file @
ce994365
...
@@ -4,10 +4,11 @@
...
@@ -4,10 +4,11 @@
"scripts"
:
{
"scripts"
:
{
"dev"
:
"node server.js"
,
"dev"
:
"node server.js"
,
"build"
:
"next build"
,
"build"
:
"next build"
,
"start"
:
"NODE_ENV=production node server.js"
"start"
:
"
cross-env
NODE_ENV=production node server.js"
},
},
"dependencies"
:
{
"dependencies"
:
{
"cacheable-response"
:
"^1.1.0"
,
"cacheable-response"
:
"^1.1.0"
,
"cross-env"
:
"^7.0.2"
,
"express"
:
"^4.14.0"
,
"express"
:
"^4.14.0"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"react"
:
"^16.7.0"
,
"react"
:
"^16.7.0"
,
...
...
examples/with-algolia-react-instantsearch/package.json
View file @
ce994365
...
@@ -2,11 +2,12 @@
...
@@ -2,11 +2,12 @@
"name"
:
"create-next-example-app"
,
"name"
:
"create-next-example-app"
,
"scripts"
:
{
"scripts"
:
{
"dev"
:
"next"
,
"dev"
:
"next"
,
"build"
:
"NODE_ENV=development next build"
,
"build"
:
"
cross-env
NODE_ENV=development next build"
,
"start"
:
"next start"
"start"
:
"next start"
},
},
"dependencies"
:
{
"dependencies"
:
{
"algoliasearch"
:
"4.3.0"
,
"algoliasearch"
:
"4.3.0"
,
"cross-env"
:
"^7.0.2"
,
"css-loader"
:
"1.0.0"
,
"css-loader"
:
"1.0.0"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"prop-types"
:
"^15.5.10"
,
"prop-types"
:
"^15.5.10"
,
...
...
examples/with-firebase-cloud-messaging/package.json
View file @
ce994365
...
@@ -4,9 +4,10 @@
...
@@ -4,9 +4,10 @@
"scripts"
:
{
"scripts"
:
{
"dev"
:
"node server.js"
,
"dev"
:
"node server.js"
,
"build"
:
"next build"
,
"build"
:
"next build"
,
"start"
:
"NODE_ENV=production node server.js"
"start"
:
"
cross-env
NODE_ENV=production node server.js"
},
},
"dependencies"
:
{
"dependencies"
:
{
"cross-env"
:
"^7.0.2"
,
"express"
:
"^4.14.0"
,
"express"
:
"^4.14.0"
,
"firebase"
:
"^7.6.2"
,
"firebase"
:
"^7.6.2"
,
"localforage"
:
"^1.7.3"
,
"localforage"
:
"^1.7.3"
,
...
...
examples/with-http2/package.json
View file @
ce994365
...
@@ -4,9 +4,10 @@
...
@@ -4,9 +4,10 @@
"scripts"
:
{
"scripts"
:
{
"dev"
:
"node server.js"
,
"dev"
:
"node server.js"
,
"build"
:
"next build"
,
"build"
:
"next build"
,
"start"
:
"NODE_ENV=production node server.js"
"start"
:
"
cross-env
NODE_ENV=production node server.js"
},
},
"dependencies"
:
{
"dependencies"
:
{
"cross-env"
:
"^7.0.2"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"react"
:
"^16.13.1"
,
"react"
:
"^16.13.1"
,
"react-dom"
:
"^16.13.1"
"react-dom"
:
"^16.13.1"
...
...
examples/with-react-intl/package.json
View file @
ce994365
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
"name"
:
"with-react-intl"
,
"name"
:
"with-react-intl"
,
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"scripts"
:
{
"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"
,
"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"
,
"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/"
,
"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"
:
{
"dependencies"
:
{
"@formatjs/cli"
:
"^2.7.3"
,
"@formatjs/cli"
:
"^2.7.3"
,
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
"@formatjs/intl-relativetimeformat"
:
"^7.1.1"
,
"@formatjs/intl-relativetimeformat"
:
"^7.1.1"
,
"accepts"
:
"^1.3.7"
,
"accepts"
:
"^1.3.7"
,
"babel-plugin-react-intl"
:
"^8.1.1"
,
"babel-plugin-react-intl"
:
"^8.1.1"
,
"cross-env"
:
"^7.0.2"
,
"full-icu"
:
"^1.3.0"
,
"full-icu"
:
"^1.3.0"
,
"glob"
:
"^7.1.4"
,
"glob"
:
"^7.1.4"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment