This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added general README and updated Browserify README.
- Loading branch information
1 parent
ae29f91
commit 5aaeb56
Showing
2 changed files
with
40 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,63 @@ | ||
**Install Browserify** | ||
``` | ||
|
||
```shell | ||
npm install -g browserify | ||
``` | ||
|
||
**Fetch dependencies** | ||
``` | ||
|
||
```shell | ||
npm install | ||
``` | ||
|
||
**Compile .ts files** | ||
``` | ||
|
||
Either enter the following command | ||
|
||
```shell | ||
node node_modules/typescript/bin/tsc.js | ||
``` | ||
shortcut for this command | ||
``` | ||
|
||
or use the `tsc` script from our `package.json` with | ||
|
||
```shell | ||
npm run tsc | ||
``` | ||
|
||
**Run Browserify** | ||
``` | ||
|
||
Either enter the following command | ||
|
||
```shell | ||
browserify src/app.js -o bundle.js -s app | ||
``` | ||
shortcut for this command | ||
``` | ||
|
||
or use the `browserify` script from our `package.json` with | ||
|
||
```shell | ||
npm run browserify | ||
|
||
``` | ||
|
||
**Start http-server** | ||
``` | ||
|
||
Either enter the following command | ||
|
||
```shell | ||
node node_modules/http-server/bin/http-server -o | ||
``` | ||
shortcut for this command | ||
|
||
or use the `listen` script from our `package.json` with | ||
|
||
``` | ||
npm run listen | ||
``` | ||
|
||
By default http-server listens on port 8080. If this port is taken use '-p' to specify free port. | ||
|
||
By default http-server listens on port `8080`. | ||
If this port is taken, use '-p ####' to specify a free port, where `####` is the available port. | ||
|
||
**Shortcut for running all steps in a batch** | ||
|
||
``` | ||
npm run all | ||
``` |