Last active
March 8, 2019 11:50
-
-
Save esova-ana/2faa2a1578195cb7cfda326d24eda19a to your computer and use it in GitHub Desktop.
Create new project
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
/*----------------------------------------------------------------- | |
START NEW PROJECT (in the terminal) | |
------------------------------------------------------------------*/ | |
$ mkdir myProject // creates a folder myProject | |
$ cd myProject // change directory to myProject | |
$ npm init | |
// install all the modules | |
$ atom index.js # copy & paste regl.party/exapmples content, save & close | |
$ npm install regl --save | |
$ echo "<body><script src="bundle.js"></script></bundle>" > index.html | |
$ npm install browserify-livereload watchify --save-dev | |
// add to `package.json` `..."scripts": {}...` section and save file | |
// "start": "watchify index.js -p [ browserify-livereload --host 127.0.0.1 --port 1337 ] -o bundle.js -dv", | |
$ npm start | |
// open "index.html" in browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Izmenite ovo:
echo "<script src="bundle.js"></script>" > index.html
u ovo
echo "<script src="bundle.js"></script>" > index.html