Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have the MWDK generate ids for question like object #13

Open
iturgeon opened this issue Oct 4, 2018 · 0 comments
Open

Have the MWDK generate ids for question like object #13

iturgeon opened this issue Oct 4, 2018 · 0 comments

Comments

@iturgeon
Copy link
Member

iturgeon commented Oct 4, 2018

The server creates ids for questions and answers if an object looks like a question, but the MWDK doesn't.

This will cause issues when testing scoring and playing if the player relies on those IDs.

The workaround right now is to add this to the individual widget's webpack config and create a second demo.json

//override the demo with a copy that assigns ids to each question for dev purposes
let configOptions = {}
if (process.env.npm_lifecycle_script == 'webpack-dev-server') {
	configOptions.demoPath = 'devmateria_demo.json'
}
module.exports = require('materia-widget-development-kit/webpack-widget').getLegacyWidgetBuildConfig(configOptions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant