-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
How do you handle build of widgets when creating new widget ? #52
Comments
You'll have to tell browserify to transpile your module, https://github.com/plouc/mozaik-ext-github/blob/master/package.json#L49 |
I'm using |
Maybe you can document your workflow when creating a new widget or forking an existing one ? |
You're right, I could :) Unfortunately, I were not able to make the link npm command works because of peer dependencies, I put the git repo directly into the node_modules directory |
And what command are you doing to compile the files in |
Don't have have my laptop right now, but I think it's:
BTW, the actual workflow is annoying, I'm planning to move to webpack soon |
@tlenclos, I'm closing this issue, feel free to create one if it doesn't work |
Any update on webpack? I'm looking into using mozaik for our dashboard, as it looks really shiny, but the process of creating a new widget seems a bit complicated, lots of react boilerplate, rebuilding between each code/style change. Is there a recommended workflow that perhaps looks more like the simplicity of dashing, e.g. https://gist.github.com/YuriKazakov/c85f8cbde7235105dd16 ? |
@torarnv, unfortunately, I don't have the time for now to work on my side projects |
You should have a look at the time widgets |
@plouc Sorry to hear that, but thanks for being honest! 👍 |
but the time widget is light enough (with some react boilerplate) :) |
Hi and thanks for your work on Mozaik !
Quick question, how do you handle the build of new widgets using ES6 syntax ?
For example I forked your github widget and used
npm link
, then I got an error when starting the app as the ES6 syntax if not valid:The text was updated successfully, but these errors were encountered: