These are chat archives for skatejs/skatejs

7th
Feb 2017
Micah
@micahscopes
Feb 07 2017 00:29
@treshugart this sounds similar to what was happening before. does it maybe have to do with jsnext?
Trey Shugart
@treshugart
Feb 07 2017 00:37
Quite possibly. It could be pulling in src/index.js in to the bundle but not transpiling it because the default is probably to ignore transpilation of node_modules/*.
@micahscopes ^
Micah
@micahscopes
Feb 07 2017 00:44
@treshugart, yeah, I actually had the babel({ exclude: "node_modules/**" }) option turned off, then on, didn't make a difference so far
Trey Shugart
@treshugart
Feb 07 2017 00:45
you might want to set that ti { include: ‘node_modules/skatejs/**’ }. That said, you’re binding yourself to what we decide to use internally, which is currently stage-2 stuff, but could change.
Try removing jsnext:main in node_modules/skatejs/package.json and see what happens.
Micah
@micahscopes
Feb 07 2017 00:46
@treshugart you're saying by using the latest version?
Trey Shugart
@treshugart
Feb 07 2017 00:47
In my first message there, I believe babel() excludes node_modules by default, so your exclude rule is doing the same thing as the default.
In my second message, that should disable rollup looking for the src
or I think you can use jsnext: false or something like that in the rollup config
Micah
@micahscopes
Feb 07 2017 00:55
@treshugart when I include 'node_modules/skate/**' I get unexpected token on an ordinary ternary expression
strange
Trey Shugart
@treshugart
Feb 07 2017 00:55
o_0
Micah
@micahscopes
Feb 07 2017 00:56
yeah, it's a mess right now
Trey Shugart
@treshugart
Feb 07 2017 00:56
what about forcing rollup to not look at jsnext:main?
Micah
@micahscopes
Feb 07 2017 00:57
when I do that, I get .../node_modules/skatejs/dist/index.js does not export Component
(I'm importing Component from skate)
I'm thinking about dropping back down to version 4.5.x and trying to figure out what the issues are there with Firefox
Micah
@micahscopes
Feb 07 2017 01:03
@treshugart what's all this stage-0, stage-1, etc. stuff? It's new to me. Does it have something to do with classes?
Trey Shugart
@treshugart
Feb 07 2017 01:03
classes are es2015
stages are tc39 (es spec) stages
stage-2 are common for libs to use
as they’re likely to make it in
Micah
@micahscopes
Feb 07 2017 01:04
yeah, I added that stage-0 without really knowing what it meant because it fixed an error
specifically it was an error with the class syntax used in the counter example
I'm very new to es2015 classes, so I copied that syntax... but I'm thinking I need to use commas or something
Trey Shugart
@treshugart
Feb 07 2017 01:07
it’d probably be the prop initialiser
static props = {}
instead you can do
static get props () { return {}; }
Micah
@micahscopes
Feb 07 2017 01:07
hm, that's what I've got
Trey Shugart
@treshugart
Feb 07 2017 01:08
You should shouldn’t need any stages, just the es2015 preset for classes
Micah
@micahscopes
Feb 07 2017 01:09
oooh, that semicolon after return{}; is apparently very important
ugh
okay, missing parentheses!!!
Micah
@micahscopes
Feb 07 2017 01:15
I think the line numbers are off in my errors
Micah
@micahscopes
Feb 07 2017 01:42
this is just baffling me.
Matt Steele
@mattdsteele
Feb 07 2017 22:28
Anyone have examples of how you're unit testing components? I see https://github.com/skatejs/bore, but a fleshed out sample would be really helpful as I'm messing with it