Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 24 23:05
    greenkeeper[bot] commented #5422
  • Jan 24 23:05

    greenkeeper[bot] on @feathersjs

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

  • Jan 24 23:05
    greenkeeper[bot] commented #5401
  • Jan 24 23:05

    greenkeeper[bot] on @feathersjs

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

  • Jan 24 22:58

    greenkeeper[bot] on @octokit

    (compare)

  • Jan 24 22:57

    greenkeeper[bot] on @octokit

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

  • Jan 24 20:42
    bitsnaps starred canjs/canjs
  • Jan 24 10:50
    chasenlehara opened #5462
  • Jan 24 10:48

    chasenlehara on chasenlehara-patch-1

    Upgrade to can-queues@1.3.2 (compare)

  • Jan 24 10:41

    chasenlehara on can-simple-dom-1.7.1

    (compare)

  • Jan 24 10:41
    chasenlehara closed #5458
  • Jan 24 10:40

    chasenlehara on can-stache-bindings-5.0.4

    (compare)

  • Jan 24 10:40
    chasenlehara closed #5455
  • Jan 24 10:40

    chasenlehara on can-stache-5.1.0

    (compare)

  • Jan 24 10:40
    chasenlehara closed #5453
  • Jan 24 10:40

    chasenlehara on can-map-4.3.12

    (compare)

  • Jan 24 10:40
    chasenlehara closed #5452
  • Jan 24 10:40

    chasenlehara on can-super-model-2.0.0

    (compare)

  • Jan 24 10:40
    chasenlehara closed #5449
  • Jan 24 10:40

    chasenlehara on can-define-rest-model-2.0.0

    (compare)

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' }
Matthew Phillips
@matthewp
that's gross :)
ours is much simpler
opolyo01
@opolyo01
wait, so all you need is just this -- "transpiler": "babel",
Matthew Phillips
@matthewp
you need the babelOptions as well
but in a future release we'll probably remove the need for that
opolyo01
@opolyo01
ok looks promising, thanks
Matthew Phillips
@matthewp
and babel will be default so actually no config at all needed :)
then you also get all of the benefits that steal-tools provides like optimized production builds
see the videos on stealjs.com
Alexis Abril
@alexisabril
Shouldn’t can.List.prototype.filter, etc return the same type of list?(instead of always a new can.List)
var Todo = can.Map.extend();
var todos = new Todo.List();

var filtered = todos.filter(function() { return true; });
console.log(filtered instanceof Todo.List); //false