Skip to content

Commit

Permalink
Fix server script
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri Sulyma committed Apr 29, 2022
1 parent 7a9d5b7 commit 1e22ef6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ To start server:

```
npm install
node server.js
liqvid serve
```

Then go to http://localhost:8080 in your browser.
Your browser should then open to http://localhost:3000. To run on a different port, you can use e.g. `liqvid serve -p 8080`.

To compile TSX to JS:
To make production build:
```
liqvid build
```

`webpack --watch`
To preview production build:
```
NODE_ENV=production liqvid serve
```

To compile Stylus to CSS:
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "lv-tutorial",
"version": "2.0.0",
"description": "Tutorial for Liqvid",
"main": "server.js",
"scripts": {
"start": "liqvid serve",
"stylus": "stylus --compress --include-css --include ./node_modules --out static --watch styl/style.styl",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down

0 comments on commit 1e22ef6

Please sign in to comment.