Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 14 20:01
    greenkeeper[bot] labeled #5450
  • Dec 14 20:01
    greenkeeper[bot] opened #5450
  • Dec 14 20:00

    greenkeeper[bot] on semver-7.0.0

    chore(package): update semver t… (compare)

  • Dec 14 16:58
    millette starred canjs/canjs
  • Dec 14 00:14
    greenkeeper[bot] labeled #5449
  • Dec 14 00:14
    greenkeeper[bot] opened #5449
  • Dec 14 00:14

    greenkeeper[bot] on can-super-model-2.0.0

    fix(package): update can-super-… (compare)

  • Dec 14 00:13
    greenkeeper[bot] labeled #5448
  • Dec 14 00:13
    greenkeeper[bot] opened #5448
  • Dec 14 00:13

    greenkeeper[bot] on can-define-rest-model-2.0.0

    fix(package): update can-define… (compare)

  • Dec 14 00:12
    greenkeeper[bot] labeled #5447
  • Dec 14 00:12
    greenkeeper[bot] opened #5447
  • Dec 14 00:12

    greenkeeper[bot] on can-define-realtime-rest-model-2.0.0

    fix(package): update can-define… (compare)

  • Dec 14 00:07
    greenkeeper[bot] labeled #5446
  • Dec 14 00:07
    greenkeeper[bot] opened #5446
  • Dec 14 00:07

    greenkeeper[bot] on can-connect-ndjson-2.0.0

    fix(package): update can-connec… (compare)

  • Dec 13 21:27

    greenkeeper[bot] on @octokit

    (compare)

  • Dec 13 21:25

    greenkeeper[bot] on @octokit

    chore(package): update @octokit… (compare)

  • Dec 13 21:21

    greenkeeper[bot] on @octokit

    (compare)

  • Dec 13 21:20

    greenkeeper[bot] on @octokit

    chore(package): update @octokit… (compare)

Matthew Phillips
@matthewp
@rasjani awesome
Alexis Abril
@alexisabril
@hurgleburgler You could call replaceWith on the inserted event(I’m not sure how to get a handle to the template offhand), however this sounds like something you could use can.view.attr() for. If you have a use case, it would provide more insight
Justin Meyer
@justinbmeyer
@hurgleburgler could you use a partial?
is a component necessary
@rasjani awesome. But if I might ask, why are you using webpack instead of StealJS?
Gerard Finnerty
@halcyonandon
@justinbmeyer I'm using systemjs and traceur (switching to babel) directly. I saw your talk on stealjs at the palo alto meet up. Since then, I inquired about the state of stealjs and was told it wasn't ready for production yet. Is steal ready for primetime? Is there a blog post or something that speaks to the advantages of steal over using systemjs directly?
Justin Meyer
@justinbmeyer
@halcyonandon steal is used by m.samsclub.com
it's primetime
doesn't compare systemjs directly
oh, btw, for steal questions: https://gitter.im/stealjs/steal
opolyo01
@opolyo01
@justinbmeyer I have a project that have React components and Can components, and client side loader like steal would not be able to transform JSX in React
Justin Meyer
@justinbmeyer
but in short, StealJS has a way better build, can export your modules, and load from npm
@opolyo01 why not?
I assume there are JSX transpilers in pure JS
opolyo01
@opolyo01
can steal does JSX transformation?
Justin Meyer
@justinbmeyer
I bet someone has already written one for SystemJS
(which stealjs can use)
opolyo01
@opolyo01
no, it is not pure JS
it is react specific thingy
Matthew Phillips
@matthewp
if you use babel it will transpile jsx as well
Justin Meyer
@justinbmeyer
@opolyo01 yeah, I know
for example, stealjs can load templates, Less, etc
opolyo01
@opolyo01
it would be awesome if steal could load jsx
Justin Meyer
@justinbmeyer
the same technique can be used to do jsx
but it sounds like bable transpiles jsx anyway
Matthew Phillips
@matthewp
@opolyo01 it can, we have some React users who hang out in stealjs/steal on gitter
Gerard Finnerty
@halcyonandon
@justinbmeyer thanks, what do you mean by load from npm? and export modules? I load systemjs from npm and export modules to where/what? bundling?
opolyo01
@opolyo01
@matthewp any link to example of this?
Justin Meyer
@justinbmeyer
@halcyonandon maybe read that article
steal lets you files from npm
w/o configuration
is an example of writing a less translate hook
something very similar would just have to be done for JSX
Gerard Finnerty
@halcyonandon
"StealJS can export your project into commonly used formats and platforms which can be used to create distributables that can be used in almost any situation:" isn't this what systemjs does?
Justin Meyer
@justinbmeyer
how can you use systemjs to export your project?
afaik, you can't use SystemJS to transpile a ES6 app to CJS, AMD, etc
you can use SystemJS just to load those modules
this allows something like: https://github.com/bitovi-components/bit-tabs
to be used by people using Browserify / RequireJS or plain script tags
this is huge in big orgs b/c you'll have a lot of different projects using different module loaders, but still want to share code
And stealjs goes beyond transpiling just JS, it takes care of LESS / CSS / templates too
so even though bit-tabs is using LESS
and ES6
Matthew Phillips
@matthewp
@opolyo01
I think you wanted a react demo app, i can push one, i have one for testing
Justin Meyer
@justinbmeyer
A browserify user can still require the exported CSS
opolyo01
@opolyo01
@matthewp yes please :)
hopefully adding one config setting like in webpack.config.js would simply transform those JSX files --> { test: /.js$/, loader: 'jsx-loader?harmony' }