Comments (7)
Hey @xinaesthete
apologies for the hassle, but the build system has changed, and I've been really bad at updating the docs :(
I changed over to using browserify, and having npm run the necessary build scripts because it massively simplified how things worked.
You should just be able to run
npm install
npm run devbuild
npm run serve
open up a browser, point it to http://localhost:8080 and then things should work. Have a look in package.json
for all the individual build scripts.
I've been concentrating on the v2lang branch and got some of the changes merged into master, but I was lax on this front.
Hopefully that puts you on the right path. I'll update docs tomorrow
from livecodelab.
Aha! Thanks for that.
While you're updating docs, you might add a sudo npm install -g browserify
in there... although that still doesn't get me a working build, I'm afraid:
Peters-iMac:livecodelabOriginal Peter$ npm run devbuild
> [email protected] devbuild /Users/Peter/Documents/code/www/livecodelabOriginal
> npm run buildfirst && npm run compiledev
> [email protected] buildfirst /Users/Peter/Documents/code/www/livecodelabOriginal
> npm run statics && npm run style && npm run html && npm run jison
> [email protected] statics /Users/Peter/Documents/code/www/livecodelabOriginal
> cp -r ./static/* ./dist/
> [email protected] style /Users/Peter/Documents/code/www/livecodelabOriginal
> recess ./style/* --compile > ./dist/style.css
> [email protected] html /Users/Peter/Documents/code/www/livecodelabOriginal
> cp ./html/index.html ./dist/
> [email protected] jison /Users/Peter/Documents/code/www/livecodelabOriginal
> jison ./src/grammar/lcl-grammar.jison -m commonjs -o ./src/generated/parser.js
> [email protected] compiledev /Users/Peter/Documents/code/www/livecodelabOriginal
> browserify --debug -t coffeeify --extension='.coffee' ./src/coffee/lcl-init.coffee -o ./dist/app.js
module.js:339
throw err;
^
Error: Cannot find module 'through'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/Users/Peter/Documents/code/www/livecodelabOriginal/node_modules/coffeeify/index.js:2:15)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at nr (/usr/local/lib/node_modules/browserify/node_modules/module-deps/index.js:282:21)
at onfile (/usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:51:21)
at onex (/usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:93:22)
at /usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:24:18
at FSReqWrap.oncomplete (fs.js:82:15)
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "compiledev"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! [email protected] compiledev: `browserify --debug -t coffeeify --extension='.coffee' ./src/coffee/lcl-init.coffee -o ./dist/app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] compiledev script 'browserify --debug -t coffeeify --extension='.coffee' ./src/coffee/lcl-init.coffee -o ./dist/app.js'.
npm ERR! This is most likely a problem with the livecodelab package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! browserify --debug -t coffeeify --extension='.coffee' ./src/coffee/lcl-init.coffee -o ./dist/app.js
npm ERR! You can get their info via:
npm ERR! npm owner ls livecodelab
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Peter/Documents/code/www/livecodelabOriginal/npm-debug.log
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "devbuild"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! [email protected] devbuild: `npm run buildfirst && npm run compiledev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] devbuild script 'npm run buildfirst && npm run compiledev'.
npm ERR! This is most likely a problem with the livecodelab package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run buildfirst && npm run compiledev
npm ERR! You can get their info via:
npm ERR! npm owner ls livecodelab
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Peter/Documents/code/www/livecodelabOriginal/npm-debug.log
from livecodelab.
Oh yeah, I should mention, I did also try this with v2langupdate and get much the same result.
from livecodelab.
hhmm, are you doing that npm run devbuild
after a git clean to remove anything that may have been in your node_modules folder?
It shouldn't be necessary to install browserify globally as well. It gets pulled down by npm when running npm install
.
I'm making an assumption that you're on OSX/Nix btw. Windows is a bit of an unknown quantity, but should still be fine.
from livecodelab.
I hadn't done git clean
, worth a shot...
I added through
and convert-source-map
which at least let it npm run devbuild
without errors. Doing a fresh npm install
now.
from livecodelab.
Yes, git clean
did help. Got it running now. Will check Windows and let you know if I have any different experience there (I doubt it).
from livecodelab.
ah ha, glad to hear it's all working for you. I'll do a bit more cleanup on master around the build system and get the docs sorted.
Sometimes I forget that this is an open source project and there are actually other people looking at the code :)
from livecodelab.
Related Issues (20)
- backgroundViaCanvas in BackgroundPainter HOT 5
- animation loop, request animation frame and forcing timeouts HOT 6
- Use a monospaced font HOT 2
- axes HOT 2
- Implementing thick lines (and renaming "stroke" to skeleton?) HOT 4
- labels HOT 5
- documentation HOT 14
- Syntax for inlining of function calls HOT 2
- bpm without arguments sends audio system in crazy spin
- comments in live lang V2
- Investigate Electron for building an LCL desktop app HOT 3
- Switch from coffee script to ES2015?
- Stroke Size broken on IE11 HOT 1
- offline version (at least for Chrome)
- Chrome app (for chromebooks)
- Syntax highlighting of trailing comments backtrack to first slash of line HOT 2
- Add audio beat detection
- Novation launchpad integration HOT 5
- Feature request: volume parameter for audio samples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livecodelab.