Skip to content

Commit 7d441f5

Browse files
added cross-env to allow building the application for production across multiple operating systems
1 parent 23d594f commit 7d441f5

File tree

2 files changed

+45
-4
lines changed

2 files changed

+45
-4
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"babel-loader": "^8.0.6",
7575
"babel-plugin-styled-components": "^1.10.6",
7676
"babel-plugin-tailwind-components": "^0.5.10",
77+
"cross-env": "^7.0.2",
7778
"css-loader": "^3.2.1",
7879
"cssnano": "^4.1.10",
7980
"eslint": "^5.16.0",
@@ -110,10 +111,10 @@
110111
},
111112
"scripts": {
112113
"clean": "rm -rf public/assets/*.{js,css,map}",
113-
"watch": "NODE_ENV=development ./node_modules/.bin/webpack --watch --progress",
114-
"build": "NODE_ENV=development ./node_modules/.bin/webpack --progress",
115-
"build:production": "yarn run clean && NODE_ENV=production ./node_modules/.bin/webpack --mode production",
116-
"serve": "yarn run clean && PUBLIC_PATH=https://pterodactyl.test:8080 NODE_ENV=development webpack-dev-server --host 0.0.0.0 --hot --https --key /etc/ssl/private/pterodactyl.test-key.pem --cert /etc/ssl/private/pterodactyl.test.pem"
114+
"watch": "cross-env NODE_ENV=development ./node_modules/.bin/webpack --watch --progress",
115+
"build": "cross-env NODE_ENV=development ./node_modules/.bin/webpack --progress",
116+
"build:production": "yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode production",
117+
"serve": "yarn run clean && cross-env PUBLIC_PATH=https://pterodactyl.test:8080 NODE_ENV=development webpack-dev-server --host 0.0.0.0 --hot --https --key /etc/ssl/private/pterodactyl.test-key.pem --cert /etc/ssl/private/pterodactyl.test.pem"
117118
},
118119
"browserslist": [
119120
"> 0.5%",

yarn.lock

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,6 +2024,13 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4:
20242024
safe-buffer "^5.0.1"
20252025
sha.js "^2.4.8"
20262026

2027+
cross-env@^7.0.2:
2028+
version "7.0.2"
2029+
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.2.tgz#bd5ed31339a93a3418ac4f3ca9ca3403082ae5f9"
2030+
integrity sha512-KZP/bMEOJEDCkDQAyRhu3RL2ZO/SUVrxQVI0G3YEQ+OLbRA3c6zgixe8Mq8a/z7+HKlNEjo8oiLUs8iRijY2Rw==
2031+
dependencies:
2032+
cross-spawn "^7.0.1"
2033+
20272034
cross-spawn@6.0.5, cross-spawn@^6.0.0, cross-spawn@^6.0.5:
20282035
version "6.0.5"
20292036
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
@@ -2034,6 +2041,15 @@ cross-spawn@6.0.5, cross-spawn@^6.0.0, cross-spawn@^6.0.5:
20342041
shebang-command "^1.2.0"
20352042
which "^1.2.9"
20362043

2044+
cross-spawn@^7.0.1:
2045+
version "7.0.1"
2046+
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.1.tgz#0ab56286e0f7c24e153d04cc2aa027e43a9a5d14"
2047+
integrity sha512-u7v4o84SwFpD32Z8IIcPZ6z1/ie24O6RU3RbtL5Y316l3KuHVPx9ItBgWQ6VlfAFnRnTtMUrsQ9MUUTuEZjogg==
2048+
dependencies:
2049+
path-key "^3.1.0"
2050+
shebang-command "^2.0.0"
2051+
which "^2.0.1"
2052+
20372053
crypto-browserify@^3.11.0:
20382054
version "3.12.0"
20392055
resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec"
@@ -5047,6 +5063,11 @@ path-key@^2.0.0, path-key@^2.0.1:
50475063
version "2.0.1"
50485064
resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40"
50495065

5066+
path-key@^3.1.0:
5067+
version "3.1.1"
5068+
resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
5069+
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
5070+
50505071
path-parse@^1.0.6:
50515072
version "1.0.6"
50525073
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
@@ -6574,10 +6595,22 @@ shebang-command@^1.2.0:
65746595
dependencies:
65756596
shebang-regex "^1.0.0"
65766597

6598+
shebang-command@^2.0.0:
6599+
version "2.0.0"
6600+
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"
6601+
integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==
6602+
dependencies:
6603+
shebang-regex "^3.0.0"
6604+
65776605
shebang-regex@^1.0.0:
65786606
version "1.0.0"
65796607
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
65806608

6609+
shebang-regex@^3.0.0:
6610+
version "3.0.0"
6611+
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
6612+
integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
6613+
65816614
signal-exit@^3.0.0, signal-exit@^3.0.2:
65826615
version "3.0.2"
65836616
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
@@ -7558,6 +7591,13 @@ which@^1.2.14, which@^1.2.9, which@^1.3.1:
75587591
dependencies:
75597592
isexe "^2.0.0"
75607593

7594+
which@^2.0.1:
7595+
version "2.0.2"
7596+
resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"
7597+
integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
7598+
dependencies:
7599+
isexe "^2.0.0"
7600+
75617601
wide-align@^1.1.0:
75627602
version "1.1.3"
75637603
resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457"

0 commit comments

Comments
 (0)