Open pantoninho opened 6 years ago
@pantoninho are you having troubles using node js and blockly? I've been trying to use both of them and hit the same wall with the google-closure-library
. I'm using the uncompressed files and, to get it working, you need to install both of them via the npm
command (or you can copy&paste the folders to the node_modules folder, but be sure to let them named "blockly" and "google-closure-library")
PS: I recommend cloning blockly and adding it manually, because the project workers don't actually manage the npm dependencies to check if it's up to date.
@eryckpedro Yes, it has been very hard to get Blockly working with commonjs/npm... It has already crossed my mind to create some code-mod to replace every goog
reference...
I'm going to try your solution tomorrow, looks promising!
Thank you
@eryckpedro I think it's pretty much a dead end.. I'm going to try something else: use an offline version of google-closure-compiler..
@pantoninho TBH that's what I'm using in my project. It seems that when you finish using and creating your files using the uncompressed library, you run a build.py
in Blockly's
root directory that compresses the modified files you created.
I wrapped the compressed version of
Blockly
in my own project, but I can't figure how to use the uncompressed version instead.I've hit a wall with the
google-closure-library
dependency, and while I was searching the web for answers, I've found your project.Looking at your code, I've noticed you are also using the compressed files... have you tried using the uncompressed version?
Thank you