These are chat archives for jescalan/roots

25th
Jan 2016
Steve Babigian
@k00k
Jan 25 2016 15:09
@samccone Hey fellow PVD'r - I like the mojotech roots video, just curious, is the source available for perusal? Would like to see how the router and init, etc. are all wired up.
Martin Berggren
@marthings
Jan 25 2016 15:30
@jenius Do i have to recompile the whole project for a small change in a css file? Is it possible to just compile the css :)?
Seth Krasnianski
@sethkrasnianski
Jan 25 2016 15:34
@k00k it's closed source right now, but I can answer any questions that you may have
Steve Babigian
@k00k
Jan 25 2016 16:10
@sethkrasnianski ok, thanks!
Steve Babigian
@k00k
Jan 25 2016 16:52
@sethkrasnianski why did you guys use pages.js for routes instead of the routes property/option that’s built into roots (via charge)?
Sam Saccone
@samccone
Jan 25 2016 16:53
heh @sethkrasnianski just get nick to OSS a clone of it
ha
Steve Babigian
@k00k
Jan 25 2016 16:53
@samccone yeah, a public version with your top-secret biz logic removed would be great
Seth Krasnianski
@sethkrasnianski
Jan 25 2016 16:54
I’ll chat about it with him during next planning. no promises though
Sam Saccone
@samccone
Jan 25 2016 16:54
heh
Seth Krasnianski
@sethkrasnianski
Jan 25 2016 16:55
@k00k charge is only for development
Steve Babigian
@k00k
Jan 25 2016 16:55
how about a callback instead of a promise? :P
Seth Krasnianski
@sethkrasnianski
Jan 25 2016 16:55
bahhhh
Sam Saccone
@samccone
Jan 25 2016 16:55
stream plz
Steve Babigian
@k00k
Jan 25 2016 16:55
heh, listen away
Sam Saccone
@samccone
Jan 25 2016 16:56
RX plz
Seth Krasnianski
@sethkrasnianski
Jan 25 2016 16:56
but we use netlify for hosting, so it mimics the route handling live
however, for our js routing, page.js seemed like a good choice since it’s lightweight and has a simple middleware-style api
clojurescript atoms?
Steve Babigian
@k00k
Jan 25 2016 16:58
ok, guess I just need to wrap my head around the live template loading in combo with static
is @dberube still at mojotech?
Seth Krasnianski
@sethkrasnianski
Jan 25 2016 17:00
yeah
i can show you some code snippets for how we handle it in a DM @k00k
Steve Babigian
@k00k
Jan 25 2016 17:02
that’d be great
Steve Babigian
@k00k
Jan 25 2016 20:22
is there an ES6 transpiler/pipeline extension for Roots?
Steve Babigian
@k00k
Jan 25 2016 20:29
or should one just use transforms: [‘babelify’] with browserify?
Steve Babigian
@k00k
Jan 25 2016 21:05
@jenius i just searched and read where you mentioned one can just npm install babel and then use .jsx - so i just tried that and I get an accord error: [Error: 'tried to require: babel’. None found. Make sure one has been installed!]
@jenius nvm - I see your comment here: jenius/accord#121 about it being due to babel vs babel-core
Seth Krasnianski
@sethkrasnianski
Jan 25 2016 21:11
the transform should work
with browserify
Steve Babigian
@k00k
Jan 25 2016 21:13
@sethkrasnianski hmmm, didn’t seem to for me. are there any other options that need to be passed to browserify other than transforms: [‘babelify’] ?
i get error: ParseError: 'import' and 'export' may appear only with 'sourceType: module’]
Seth Krasnianski
@sethkrasnianski
Jan 25 2016 21:15
can you paste the entire extension code?
Steve Babigian
@k00k
Jan 25 2016 21:16
      files: 'assets/js/main.js'
      out: 'js/build.js'
      transforms: ['babelify']
    ),
oops, some got cut
    browserify(
      files: 'assets/js/main.js'
      out: 'js/build.js'
      transforms: ['babelify']
    ),
Seth Krasnianski
@sethkrasnianski
Jan 25 2016 21:17
yeah, if that’s not working then it might be a roots-related issue
I know the roots-webpack extension works with es6
however I believe you need to use .jsx extension only :/
Steve Babigian
@k00k
Jan 25 2016 21:18
ah, didn’t realize there was a webpack one. .jsx isn’t preferred, but if that’s all that will work...