https://github.com/webbestmaster/preact-mst-empty
preact mst empty
https://github.com/webbestmaster/preact-mst-empty
Last synced: over 1 year ago
JSON representation
preact mst empty
- Host: GitHub
- URL: https://github.com/webbestmaster/preact-mst-empty
- Owner: webbestmaster
- License: mit
- Created: 2019-05-27T08:54:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-23T15:39:39.000Z (about 7 years ago)
- Last Synced: 2025-01-14T23:46:24.885Z (over 1 year ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# preact-mst-empty
preact mst empty
## Installation:
### Install libpng-dev for pngquant (need for webpack):
```bash
$ [sudo] apt-get install --no-install-recommends gcc make libpng-dev
```
### Install other npm modules:
```bash
$ npm i
```
### Build app:
```bash
$ npm run build
```
### Other
### weinre - WEb INspector REmote.
Install
```bash
$ [sudo] npm i [-g] weinre
```
To run
```bash
$ weinre --boundHost 172.21.1.215 --httpPort 8080
```
To bound ip
> --boundHost 172.21.1.215
To bound port
> --httpPort 8080
Add in your index.html
```HTML
```
### Fix IDEA file watching
1. Add the following line to either /etc/sysctl.conf file or a new *.conf file (e.g. idea.conf) under /etc/sysctl.d/ directory:
```
fs.inotify.max_user_watches = 524288
```
2. Then run this command to apply the change:
```bash
$ sudo sysctl -p --system
```
And don't forget to restart your IDE.
Note: the watches limit is per-account setting. If there are other programs running under the same account which also uses Inotify the limit should be raised high enough to suit needs of all of them.
### NPM packages
You can use npm-check-updates
```bash
$ [sudo] npm i -g npm-check-updates
$ ncu [-u]
```
## Setup environment for Ubuntu
At first install nodejs (if needed).
```bash
$ sudo apt-get clean
$ sudo apt-get update
$ sudo apt-get install nasm
$ sudo apt-get install build-essential
$ sudo apt-get install gcc
$ sudo apt-get install --no-install-recommends -y gcc make libpng-dev
```