Skip to content

Commit eca25e4

Browse files
author
Hardik Kaji
committed
Fix build
1 parent 7167f56 commit eca25e4

File tree

3 files changed

+15
-69
lines changed

3 files changed

+15
-69
lines changed

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const express = require('express');
2+
const path = require('path');
3+
const PORT = process.env.PORT || 5000;
4+
5+
express()
6+
.use(express.static(path.join(__dirname, 'build')))
7+
.listen(PORT, () => console.log(`Listening on ${ PORT }`));

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "webpack-dev-server --progress --open",
88
"build": "NODE_ENV=production webpack -p",
99
"test": "echo \"Error: no test specified\" && exit 1",
10-
"serve-build": "yarn build && http-server ./build"
10+
"serve-build": "yarn build && node ./index.js"
1111
},
1212
"repository": {
1313
"url": "https://github.com/hardikkaji/angularjs-es6-starter-kit.git"
@@ -23,10 +23,10 @@
2323
"babel-preset-es2015": "6.24.1",
2424
"clean-webpack-plugin": "0.1.16",
2525
"css-loader": "0.28.4",
26+
"express": "^4.16.4",
2627
"file-loader": "3.0.1",
2728
"html-loader": "0.5.0",
2829
"html-webpack-plugin": "3.2.0",
29-
"http-server": "^0.11.1",
3030
"mini-css-extract-plugin": "^0.5.0",
3131
"ng-annotate-loader": "0.6.1",
3232
"node-sass": "4.5.3",

yarn.lock

Lines changed: 6 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,11 +1427,6 @@ colormin@^1.0.5:
14271427
css-color-names "0.0.4"
14281428
has "^1.0.1"
14291429

1430-
colors@1.0.3:
1431-
version "1.0.3"
1432-
resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b"
1433-
integrity sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=
1434-
14351430
colors@~1.1.2:
14361431
version "1.1.2"
14371432
resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"
@@ -1580,11 +1575,6 @@ core-util-is@1.0.2, core-util-is@~1.0.0:
15801575
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
15811576
integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=
15821577

1583-
corser@~2.0.0:
1584-
version "2.0.1"
1585-
resolved "https://registry.yarnpkg.com/corser/-/corser-2.0.1.tgz#8eda252ecaab5840dcd975ceb90d9370c819ff87"
1586-
integrity sha1-jtolLsqrWEDc2XXOuQ2TcMgZ/4c=
1587-
15881578
create-ecdh@^4.0.0:
15891579
version "4.0.3"
15901580
resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.3.tgz#c9111b6f33045c4697f144787f9254cdc77c45ff"
@@ -2023,16 +2013,6 @@ ecc-jsbn@~0.1.1:
20232013
jsbn "~0.1.0"
20242014
safer-buffer "^2.1.0"
20252015

2026-
ecstatic@^3.0.0:
2027-
version "3.3.1"
2028-
resolved "https://registry.yarnpkg.com/ecstatic/-/ecstatic-3.3.1.tgz#b15b5b036c2233defc78d7bacbd8765226c95577"
2029-
integrity sha512-/rrctvxZ78HMI/tPIsqdvFKHHscxR3IJuKrZI2ZoUgkt2SiufyLFBmcco+aqQBIu6P1qBsUNG3drAAGLx80vTQ==
2030-
dependencies:
2031-
he "^1.1.1"
2032-
mime "^1.6.0"
2033-
minimist "^1.1.0"
2034-
url-join "^2.0.5"
2035-
20362016
ee-first@1.1.1:
20372017
version "1.1.1"
20382018
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
@@ -2238,7 +2218,7 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2:
22382218
dependencies:
22392219
homedir-polyfill "^1.0.1"
22402220

2241-
express@^4.16.2:
2221+
express@^4.16.2, express@^4.16.4:
22422222
version "4.16.4"
22432223
resolved "https://registry.yarnpkg.com/express/-/express-4.16.4.tgz#fddef61926109e24c515ea97fd2f1bdbf62df12e"
22442224
integrity sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==
@@ -2778,7 +2758,7 @@ hash.js@^1.0.0, hash.js@^1.0.3:
27782758
inherits "^2.0.3"
27792759
minimalistic-assert "^1.0.1"
27802760

2781-
he@1.2.x, he@^1.1.1:
2761+
he@1.2.x:
27822762
version "1.2.0"
27832763
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
27842764
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
@@ -2911,7 +2891,7 @@ http-proxy-middleware@^0.19.1:
29112891
lodash "^4.17.11"
29122892
micromatch "^3.1.10"
29132893

2914-
http-proxy@^1.17.0, http-proxy@^1.8.1:
2894+
http-proxy@^1.17.0:
29152895
version "1.17.0"
29162896
resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.17.0.tgz#7ad38494658f84605e2f6db4436df410f4e5be9a"
29172897
integrity sha512-Taqn+3nNvYRfJ3bGvKfBSRwy1v6eePlm3oc/aWVxZp57DQr5Eq3xhKJi7Z4hZpS8PC3H4qI+Yly5EmFacGuA/g==
@@ -2920,20 +2900,6 @@ http-proxy@^1.17.0, http-proxy@^1.8.1:
29202900
follow-redirects "^1.0.0"
29212901
requires-port "^1.0.0"
29222902

2923-
http-server@^0.11.1:
2924-
version "0.11.1"
2925-
resolved "https://registry.yarnpkg.com/http-server/-/http-server-0.11.1.tgz#2302a56a6ffef7f9abea0147d838a5e9b6b6a79b"
2926-
integrity sha512-6JeGDGoujJLmhjiRGlt8yK8Z9Kl0vnl/dQoQZlc4oeqaUoAKQg94NILLfrY3oWzSyFaQCVNTcKE5PZ3cH8VP9w==
2927-
dependencies:
2928-
colors "1.0.3"
2929-
corser "~2.0.0"
2930-
ecstatic "^3.0.0"
2931-
http-proxy "^1.8.1"
2932-
opener "~1.4.0"
2933-
optimist "0.6.x"
2934-
portfinder "^1.0.13"
2935-
union "~0.4.3"
2936-
29372903
http-signature@~1.2.0:
29382904
version "1.2.0"
29392905
resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1"
@@ -3786,11 +3752,6 @@ mime@1.4.1:
37863752
resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6"
37873753
integrity sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==
37883754

3789-
mime@^1.6.0:
3790-
version "1.6.0"
3791-
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
3792-
integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==
3793-
37943755
mime@^2.3.1:
37953756
version "2.4.0"
37963757
resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.0.tgz#e051fd881358585f3279df333fe694da0bcffdd6"
@@ -3832,7 +3793,7 @@ minimist@0.0.8:
38323793
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
38333794
integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=
38343795

3835-
minimist@^1.1.0, minimist@^1.1.3, minimist@^1.2.0:
3796+
minimist@^1.1.3, minimist@^1.2.0:
38363797
version "1.2.0"
38373798
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
38383799
integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=
@@ -4279,19 +4240,14 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0:
42794240
dependencies:
42804241
wrappy "1"
42814242

4282-
opener@~1.4.0:
4283-
version "1.4.3"
4284-
resolved "https://registry.yarnpkg.com/opener/-/opener-1.4.3.tgz#5c6da2c5d7e5831e8ffa3964950f8d6674ac90b8"
4285-
integrity sha1-XG2ixdflgx6P+jlklQ+NZnSskLg=
4286-
42874243
opn@^5.1.0:
42884244
version "5.5.0"
42894245
resolved "https://registry.yarnpkg.com/opn/-/opn-5.5.0.tgz#fc7164fab56d235904c51c3b27da6758ca3b9bfc"
42904246
integrity sha512-PqHpggC9bLV0VeWcdKhkpxY+3JTzetLSqTCWL/z/tFIbI6G8JCjondXklT1JinczLz2Xib62sSp0T/gKT4KksA==
42914247
dependencies:
42924248
is-wsl "^1.1.0"
42934249

4294-
optimist@0.6.x, optimist@~0.6.1:
4250+
optimist@~0.6.1:
42954251
version "0.6.1"
42964252
resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
42974253
integrity sha1-2j6nRob6IaGaERwybpDrFaAZZoY=
@@ -4596,7 +4552,7 @@ popper.js@1.14.7:
45964552
resolved "https://registry.yarnpkg.com/popper.js/-/popper.js-1.14.7.tgz#e31ec06cfac6a97a53280c3e55e4e0c860e7738e"
45974553
integrity sha512-4q1hNvoUre/8srWsH7hnoSJ5xVmIL4qgz+s4qf2TnJIMyZFUFMGH+9vE7mXynAlHSZ/NdTmmow86muD0myUkVQ==
45984554

4599-
portfinder@^1.0.13, portfinder@^1.0.9:
4555+
portfinder@^1.0.9:
46004556
version "1.0.20"
46014557
resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.20.tgz#bea68632e54b2e13ab7b0c4775e9b41bf270e44a"
46024558
integrity sha512-Yxe4mTyDzTd59PZJY4ojZR8F+E5e97iq2ZOHPz3HDgSvYC5siNad2tLooQ5y5QHyQhc3xVqvyk/eNA3wuoa7Sw==
@@ -5007,11 +4963,6 @@ qs@6.5.2, qs@~6.5.2:
50074963
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"
50084964
integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==
50094965

5010-
qs@~2.3.3:
5011-
version "2.3.3"
5012-
resolved "https://registry.yarnpkg.com/qs/-/qs-2.3.3.tgz#e9e85adbe75da0bbe4c8e0476a086290f863b404"
5013-
integrity sha1-6eha2+ddoLvkyOBHaghikPhjtAQ=
5014-
50154966
query-string@^4.1.0:
50164967
version "4.3.4"
50174968
resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb"
@@ -6174,13 +6125,6 @@ union-value@^1.0.0:
61746125
is-extendable "^0.1.1"
61756126
set-value "^0.4.3"
61766127

6177-
union@~0.4.3:
6178-
version "0.4.6"
6179-
resolved "https://registry.yarnpkg.com/union/-/union-0.4.6.tgz#198fbdaeba254e788b0efcb630bc11f24a2959e0"
6180-
integrity sha1-GY+9rrolTniLDvy2MLwR8kopWeA=
6181-
dependencies:
6182-
qs "~2.3.3"
6183-
61846128
uniq@^1.0.1:
61856129
version "1.0.1"
61866130
resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff"
@@ -6240,11 +6184,6 @@ urix@^0.1.0:
62406184
resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
62416185
integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=
62426186

6243-
url-join@^2.0.5:
6244-
version "2.0.5"
6245-
resolved "https://registry.yarnpkg.com/url-join/-/url-join-2.0.5.tgz#5af22f18c052a000a48d7b82c5e9c2e2feeda728"
6246-
integrity sha1-WvIvGMBSoACkjXuCxenC4v7tpyg=
6247-
62486187
url-loader@0.5.9:
62496188
version "0.5.9"
62506189
resolved "https://registry.yarnpkg.com/url-loader/-/url-loader-0.5.9.tgz#cc8fea82c7b906e7777019250869e569e995c295"

0 commit comments

Comments
 (0)