These are chat archives for mithriljs/mithril.js

2nd
Oct 2015
Rodrigo Álvarez
@Papipo
Oct 02 2015 02:01
Anyone knows what can I use as storage locally in a cordova app? it would be nice to be able to fetch cached records if there is no connectivity, and that kind of stuff
I know that there is WebSQL and IndexedDB, but I don't know if there is some ORM adapter that can leverage objects with prop()
Rodrigo Álvarez
@Papipo
Oct 02 2015 02:09
Arthur Clemens
@ArthurClemens
Oct 02 2015 02:17
sector119
@sector119
Oct 02 2015 09:34
@ArthurClemens now it works fine with jspm + systemjs. but there is a problem: I have to change config.js manualy and add this lines
"polythene": "jspm_packages/npm/polythene@0.1.12/lib",
"polythene-theme": jspm_packages/npm/polythene@0.1.12/lib/theme",
but when I install something with jspm, like "jspm install some_pkg", jspm remove "unused" pkgs - polythene@0.1.12 ))
jspm want config file to be like this "polythene: npm:polythene@0.1.12"
If I change this line jspm remove polythene on any jspm action
sector119
@sector119
Oct 02 2015 09:45
but I can't get how to use imports like "import tabs from polythene/tabs/tabs" if tabs/tabs in polythene/lib and not just in polyhene ((
sector119
@sector119
Oct 02 2015 09:56
and maybe it's better to split polythene and polythene-theme to different pkgs because jspm says that polythene-theme in config.js but not in package.json
Arthur Clemens
@ArthurClemens
Oct 02 2015 10:50
I was thinking about moving it to the base root, and remove lib, see this folder structure https://github.com/ArthurClemens/Polythene/tree/next
Arthur Clemens
@ArthurClemens
Oct 02 2015 11:55
When testing, I’ve got this weird problem with npm that it installs all dependencies in the same node_modules folder alongside polythene, instead of nested in polythene’s node_modules.
This also happens with other node apps, so it must be something in my npm setup
Matt Fetterman
@navx2810
Oct 02 2015 17:24
Is babel jsx transformation supported for mithril? I saw a few issues that asked the same thing. They replied with using "jsxPragma": "m". That worked for a while, but did not support custom components. If it's not supported, has anyone used mithrilify? I would like to use some type of browserify transformation that will allow me to use es6 plus a dev server like budo.
sector119
@sector119
Oct 02 2015 17:25
@ArthurClemens I think that this folder structure is perfect
@ArthurClemens Can I try this branch now?
Arthur Clemens
@ArthurClemens
Oct 02 2015 17:48
@sector119 no, it is not ready
Arthur Clemens
@ArthurClemens
Oct 02 2015 17:55
I am working on restructuring
sector119
@sector119
Oct 02 2015 18:13
@ArthurClemens ok ))
waiting )
Arthur Clemens
@ArthurClemens
Oct 02 2015 19:36
I am having problems with systemjs to use the lib folder as proxy
Arthur Clemens
@ArthurClemens
Oct 02 2015 19:52
It seems I need to write
'map': {
    'polythene': 'polythene/lib',
    'polythene-theme': 'polythene-theme/lib’
}