yarn link in docs

This commit is contained in:
Revant Nandgaonkar
2018-03-21 15:18:01 +05:30
parent ebb2618d30
commit d8e749cecf
2 changed files with 23 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
server: nodemon server.js
watch: rollup -c --watch
+21
View File
@@ -42,10 +42,31 @@ Sample index.html
<link href="/dist/css/style.css" rel="stylesheet">
</head>
<body>
<script src="/dist/js/socket.io.js"></script>
<script src="js/bundle.js"></script>
</body>
</html>
```
## For development setup
Clone frappejs in the same folder as your app, since you will be developing frappejs on the side.
### Link frappejs
```sh
# make frappejs linkable
cd frappejs
yarn link
yarn link frappejs
# link frappejs in all
cd ../myapp
yarn link frappejs
# install libs
yarn
```
### server.js