Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ad9012a

Browse files
cleaned up startup flow for devs
1 parent a050b9d commit ad9012a

File tree

4 files changed

+58
-8
lines changed

4 files changed

+58
-8
lines changed

‎README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,16 @@
1818

1919
## How To Install Locally
2020
```bash
21-
npm i -g pnpm # if you don't have pnpm yet
22-
pnpm i -g firebase-tools # if you don't have firebase-tools yet
23-
pnpm i -g gulp gulp-cli # if you don't have gulp yet
2421
git clone https://github.com/PracticeJavaScript/practicejavascript.com.git
2522
cd practicejavascript.com
26-
pnpm i
27-
gulp # watch is default gulp task
23+
npm i
24+
npm start # start gulp watch
2825
# Another tab
29-
firebase serve
26+
npm run serve# serves content out of /public dir
3027
```
3128

3229
- That will build it all and watch the css, img, and js assets.
33-
- Then you can load up `http://localhost:5000` or `public/index.html` in a browser. narf!
30+
- Then you can load up `http://localhost:8080` in a browser. narf!
3431
`/src/index.js`, `/src/css/style.scss`, and `/src/html/index.html` are the main files you'll want to edit for functionality.
3532
- If you have the [LiveReload Chrome extension](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei) installed, it should do live css updates in your browser while gulp watch is running
3633
- CSS is auto-prefixed for the supported browserslist, so don't manually add any browser prefixes to CSS src.

‎gulpfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function compile(watch) {
8282
bundler.on('update', () => {
8383
console.log('-> bundling...');
8484
rebundle();
85+
livereload();
8586
console.log('done bundling.');
8687
});
8788
}

‎package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
},
99
"scripts": {
1010
"test": "",
11+
"start": "./node_modules/.bin/gulp watch",
12+
"serve": "./node_modules/.bin/http-server",
1113
"build": "./node_modules/.bin/gulp build",
12-
"watch": "./node_modules/.bin/gulp watch",
1314
"precommit": "npm test",
1415
"prepush": "npm test"
1516
},
@@ -68,6 +69,7 @@
6869
"gulp-svgo": "^1.0.3",
6970
"gulp-uglify": "^3.0.0",
7071
"gulp-util": "^3.0.8",
72+
"http-server": "^0.10.0",
7173
"husky": "^0.13.3",
7274
"lint-staged": "^3.4.0",
7375
"localforage": "^1.5.0",

‎shrinkwrap.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ dependencies:
2323
gulp-uglify@^3.0.0: 3.0.0
2424
gulp-util@^3.0.8: 3.0.8
2525
gulp@^3.9.1: 3.9.1
26+
http-server@^0.10.0: 0.10.0
2627
husky@^0.13.3: 0.13.4
2728
lint-staged@^3.4.0: 3.6.0
2829
localforage@^1.5.0: 1.5.0
@@ -1129,6 +1130,7 @@ packages:
11291130
css-color-names: 0.0.4
11301131
has: 1.0.1
11311132
resolution: ea2f7420a72b96881a38aae59ec124a6f7298133
1133+
/colors/1.0.3: 0433f44d809680fdeb60ed260f1b0c262e82a40b
11321134
/colors/1.1.2: 168a4701756b6a7f51a12ce0c97bfa28c084ed63
11331135
/combine-source-map/0.7.2:
11341136
dependencies:
@@ -1204,6 +1206,7 @@ packages:
12041206
resolution: f85e2cf9bfed28f773cc8b3fa5c5b69bdc02fe3f
12051207
/core-js/2.4.1: 4de911e667b0eae9124e34254b53aea6fc618d3e
12061208
/core-util-is/1.0.2: b5fd54220aa2bc5ab57aab7140c940754503c1a7
1209+
/corser/2.0.1: 8eda252ecaab5840dcd975ceb90d9370c819ff87
12071210
/cosmiconfig/1.1.0:
12081211
dependencies:
12091212
graceful-fs: 4.1.11
@@ -1558,6 +1561,13 @@ packages:
15581561
dependencies:
15591562
jsbn: 0.1.1
15601563
resolution: 0fc73a9ed5f0d53c38193398523ef7e543777505
1564+
/ecstatic/2.1.0:
1565+
dependencies:
1566+
he: 0.5.0
1567+
mime: 1.3.6
1568+
minimist: 1.2.0
1569+
url-join: 1.1.0
1570+
resolution: 477a4a6b25cecb112f697dbd2c7fa354154ea6be
15611571
/ee-first/1.1.1: 590c61156b0ae2f4f0255732a158b266bc56b21d
15621572
/electron-to-chromium/1.3.13: 1b3a5eace6e087bb5e257a100b0cbfe81b2891fc
15631573
/elegant-spinner/1.0.1: db043521c95d7e303fd8f345bedc3349cfb0729e
@@ -1798,6 +1808,7 @@ packages:
17981808
stream-combiner: 0.0.4
17991809
through: 2.3.8
18001810
resolution: 4ab4c9a0f5a54db9338b4c34d86bfce8f4b35571
1811+
/eventemitter3/1.2.0: 1c86991d816ad1e504750e73874224ecf3bec508
18011812
/events/1.1.1: 9ebdb7635ad099c70dcc4c2a1f5004288e8bd924
18021813
/evp_bytestokey/1.0.0:
18031814
dependencies:
@@ -2412,6 +2423,7 @@ packages:
24122423
hoek: 2.16.3
24132424
sntp: 1.0.9
24142425
resolution: 078444bd7c1640b0fe540d2c9b73d59678e8e1c4
2426+
/he/0.5.0: 2c05ffaef90b68e860f3fd2b54ef580989277ee2
24152427
/he/1.1.1: 93410fd21b009735151f8868c2f271f3427e23fd
24162428
/hmac-drbg/1.0.1:
24172429
dependencies:
@@ -2448,6 +2460,22 @@ packages:
24482460
inherits: 2.0.3
24492461
statuses: 1.3.1
24502462
resolution: 197e22cdebd4198585e8694ef6786197b91ed942
2463+
/http-proxy/1.16.2:
2464+
dependencies:
2465+
eventemitter3: 1.2.0
2466+
requires-port: 1.0.0
2467+
resolution: 06dff292952bf64dbe8471fa9df73066d4f37742
2468+
/http-server/0.10.0:
2469+
dependencies:
2470+
colors: 1.0.3
2471+
corser: 2.0.1
2472+
ecstatic: 2.1.0
2473+
http-proxy: 1.16.2
2474+
opener: 1.4.3
2475+
optimist: 0.6.1
2476+
portfinder: 1.0.13
2477+
union: 0.4.6
2478+
resolution: b2a446b16a9db87ed3c622ba9beb1b085b1234a7
24512479
/http-signature/1.1.1:
24522480
dependencies:
24532481
assert-plus: 0.2.0
@@ -3107,6 +3135,7 @@ packages:
31073135
dependencies:
31083136
mime-db: 1.27.0
31093137
resolution: a4ebf5064094569237b8cf70046776d09fc92aed
3138+
/mime/1.3.6: 591d84d3653a6b0b4a3b9df8de5aa8108e72e5e0
31103139
/mimic-fn/1.1.0: e667783d92e89dbd342818b5230b9d62a672ad18
31113140
/mini-lr/0.1.9:
31123141
dependencies:
@@ -3132,6 +3161,7 @@ packages:
31323161
dependencies:
31333162
brace-expansion: 1.1.7
31343163
resolution: 5166e286457f03306064be5497e8dbb0c3d32083
3164+
/minimist/0.0.10: de3f98543dbf96082be48ad1a0c7cda836301dcf
31353165
/minimist/0.0.8: 857fcabfc3397d2625b8228262e86aa7a011b05d
31363166
/minimist/1.2.0: a35008b20f41383eec1fb914f4cd5df79a264284
31373167
/mkdirp/0.5.1:
@@ -3311,6 +3341,12 @@ packages:
33113341
dependencies:
33123342
mimic-fn: 1.1.0
33133343
resolution: 067428230fd67443b2794b22bba528b6867962d4
3344+
/opener/1.4.3: 5c6da2c5d7e5831e8ffa3964950f8d6674ac90b8
3345+
/optimist/0.6.1:
3346+
dependencies:
3347+
minimist: 0.0.10
3348+
wordwrap: 0.0.3
3349+
resolution: da3ea74686fa21a19a111c326e90eb15a0196686
33143350
/option-chain/0.1.1:
33153351
dependencies:
33163352
object-assign: 4.1.1
@@ -3512,6 +3548,12 @@ packages:
35123548
bin-wrapper: 3.0.2
35133549
logalot: 2.1.0
35143550
resolution: d124d98a75a9487f40c1640b4dbfcbb2bd5a1fd1
3551+
/portfinder/1.0.13:
3552+
dependencies:
3553+
async: 1.5.2
3554+
debug: 2.6.8
3555+
mkdirp: 0.5.1
3556+
resolution: bb32ecd87c27104ae6ee44b5a3ccbf0ebb1aede9
35153557
/postcss-calc/5.3.1:
35163558
dependencies:
35173559
postcss: 5.2.17
@@ -3722,6 +3764,7 @@ packages:
37223764
/punycode/1.4.1: c0d5a63b2718800ad8e1eb0fa5269c84dd41845e
37233765
/q/1.5.0: dd01bac9d06d30e6f219aecb8253ee9ebdc308f1
37243766
/qs/2.2.5: 1088abaf9dcc0ae5ae45b709e6c6b5888b23923c
3767+
/qs/2.3.3: e9e85adbe75da0bbe4c8e0476a086290f863b404
37253768
/qs/5.2.0: a9f31142af468cb72b25b30136ba2456834916be
37263769
/qs/6.4.0: 13e26d28ad6b0ffaa91312cd3bf708ed351e7233
37273770
/query-string/4.3.4:
@@ -3933,6 +3976,7 @@ packages:
39333976
caller-path: 0.1.0
39343977
resolve-from: 1.0.1
39353978
resolution: 4e0d56d6c9662fd31e43011c4b95aa49955421d3
3979+
/requires-port/1.0.0: 925d2601d39ac485e091cf0da5c6e694dc3dcaff
39363980
/resolve-cwd/1.0.0:
39373981
dependencies:
39383982
resolve-from: 2.0.0
@@ -4415,6 +4459,10 @@ packages:
44154459
/uid2/0.0.3: 483126e11774df2f71b8b639dcd799c376162b82
44164460
/umd/3.0.1: 8ae556e11011f63c2596708a8837259f01b3d60e
44174461
/unc-path-regex/0.1.2: e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa
4462+
/union/0.4.6:
4463+
dependencies:
4464+
qs: 2.3.3
4465+
resolution: 198fbdaeba254e788b0efcb630bc11f24a2959e0
44184466
/uniq/1.0.1: b31c5ae8254844a3a8281541ce2b04b865a734ff
44194467
/uniqid/4.1.1:
44204468
dependencies:
@@ -4471,6 +4519,7 @@ packages:
44714519
/upper-case/1.1.3: f6b4501c2ec4cdd26ba78be7222961de77621598
44724520
/urijs/1.18.10: b94463eaba59a1a796036a467bb633c667f221ab
44734521
/urix/0.1.0: da937f7a62e21fec1fd18d49b35c2935067a6c72
4522+
/url-join/1.1.0: 741c6c2f4596c4830d6718460920d0c92202dc78
44744523
/url-parse-lax/1.0.0:
44754524
dependencies:
44764525
prepend-http: 1.0.4
@@ -4617,6 +4666,7 @@ packages:
46174666
resolution: 0c09c85c2a94683d0d7eaf8ee097d564bf0e105c
46184667
/window-size/0.1.0: 5438cd2ea93b202efa3a19fe8887aee7c94f9c9d
46194668
/wordwrap/0.0.2: b79669bb42ecb409f83d583cad52ca17eaa1643f
4669+
/wordwrap/0.0.3: a3d5da6cd5c0bc0008d37234bbaf1bed63059107
46204670
/wordwrap/1.0.0: 27584810891456a4171c8d0226441ade90cbcaeb
46214671
/wrap-ansi/2.1.0:
46224672
dependencies:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /