kulmann / moodle-mod_philosophers Goto Github PK
View Code? Open in Web Editor NEW»Philosophers' Quiz« game for Moodle, made with Vue.js
License: GNU General Public License v3.0
»Philosophers' Quiz« game for Moodle, made with Vue.js
License: GNU General Public License v3.0
Is it possible to apply server side rendering ? What is the best practice if my block has many view and each view will act different so I should render different entry point or use the same entry point and let vue-router do the thing ?
Hello,
I tried to run the commands
npm run buid
and npm run dev
as explained in the readme. Unfortunately this ends with
npm ERR! missing script: build
and
npm ERR! missing script: watch
The corresponding logfiles are
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'watch' ]
2 info using [email protected]
3 info using [email protected]
4 verbose stack Error: missing script: watch
4 verbose stack at run (/usr/share/npm/lib/run-script.js:155:19)
4 verbose stack at /usr/share/npm/lib/run-script.js:63:5
4 verbose stack at /usr/share/nodejs/read-package-json/read-json.js:116:5
4 verbose stack at /usr/share/nodejs/read-package-json/read-json.js:436:5
4 verbose stack at checkBinReferences_ (/usr/share/nodejs/read-package-json/read-json.js:391:45)
4 verbose stack at final (/usr/share/nodejs/read-package-json/read-json.js:434:3)
4 verbose stack at then (/usr/share/nodejs/read-package-json/read-json.js:161:5)
4 verbose stack at /usr/share/nodejs/read-package-json/read-json.js:281:12
4 verbose stack at /usr/share/nodejs/graceful-fs/graceful-fs.js:115:16
4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
5 verbose cwd /var/www/html/moodle39/mod/philosophers/amd/build
6 verbose Linux 5.8.0-50-generic
7 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "watch"
8 verbose node v10.19.0
9 verbose npm v6.14.4
10 error missing script: watch
11 verbose exit [ 1, true ]
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose stack Error: missing script: build
4 verbose stack at run (/usr/share/npm/lib/run-script.js:155:19)
4 verbose stack at /usr/share/npm/lib/run-script.js:63:5
4 verbose stack at /usr/share/nodejs/read-package-json/read-json.js:116:5
4 verbose stack at /usr/share/nodejs/read-package-json/read-json.js:436:5
4 verbose stack at checkBinReferences_ (/usr/share/nodejs/read-package-json/read-json.js:391:45)
4 verbose stack at final (/usr/share/nodejs/read-package-json/read-json.js:434:3)
4 verbose stack at then (/usr/share/nodejs/read-package-json/read-json.js:161:5)
4 verbose stack at /usr/share/nodejs/read-package-json/read-json.js:281:12
4 verbose stack at /usr/share/nodejs/graceful-fs/graceful-fs.js:115:16
4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3)
5 verbose cwd /var/www/html/moodle39/mod/philosophers/amd/build
6 verbose Linux 5.8.0-50-generic
7 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
8 verbose node v10.19.0
9 verbose npm v6.14.4
10 error missing script: build
11 verbose exit [ 1, true ]
Any idea what is going wrong here?
Thank you very much in advance!
Best,
Alex
Hi !
I am interested in this project and would like to implement another simpler vue application than your. Can I ask that this project is mainly develop the vue app in vue folder and use webpack to build to lazy javascript file so moodle can use it. I would like to ask for the webpack describe because I am not export in that. How you communicate with moodle from your VUE application ?
Hi,
I've found out the following strange behaviour:
I've installed the plugin and installed the dependencies (vue, yarn,...). Then I switch the javascript cache off and run "yarn run dev" one time, which finishes without an error. Now, when I switch the javascript cache on again I get the following error
Uncaught SyntaxError: "" string literal contains an unescaped line break: app-lazy.js:97:1667
Remember, that I did not change anything in the code. Replacing the whole "amd" folder does not change anything.
Do you know whats getting wrong here?
Best,
Alex
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.