Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 22 16:04
    yayan19 starred canjs/canjs
  • Oct 20 02:45
    AkiaCode starred canjs/canjs
  • Oct 19 14:39
    hkutcher opened #5510
  • Oct 19 14:38
  • Oct 17 10:58
    Fatima-Usf starred canjs/canjs
  • Oct 15 21:18
    naskio starred canjs/canjs
  • Oct 12 22:08
    cherifGsoul synchronize #5509
  • Oct 12 22:08

    cherifGsoul on upgrade-can-ajax

    xvfb services (compare)

  • Oct 12 22:07
    cherifGsoul edited #5509
  • Oct 12 22:06
    cherifGsoul opened #5509
  • Oct 12 22:01

    cherifGsoul on upgrade-can-ajax

    Update can-ajax version (compare)

  • Sep 29 13:17
    ko25july starred canjs/canjs
  • Sep 21 17:41
    cherifGsoul assigned #5508
  • Sep 21 17:39
    cherifGsoul opened #5508
  • Sep 18 19:32
  • Sep 11 02:59
    torongu starred canjs/canjs
  • Sep 09 06:57
    tbreuss starred canjs/canjs
  • Sep 04 18:58
    cherifGsoul review_requested #5507
  • Sep 04 18:58
    cherifGsoul opened #5507
  • Sep 04 18:51

    cherifGsoul on post-release-script

    Add GitHub release automation (compare)

Mohamed Cherif Bouchelaghem
@cherifGsoul
not ready for production yet
Christopher Oliphant
@RALifeCoach
When is the estimated date for production readiness? Is it far enough along to start using it?
Mohamed Cherif Bouchelaghem
@cherifGsoul
i dont have a precise date but you can start play with it until that
Christopher Oliphant
@RALifeCoach
What’s the imprecise date? Even a rough estimate?
Mohamed Cherif Bouchelaghem
@cherifGsoul
if it is on pre-release it not so far for the stable release :)
Christopher Oliphant
@RALifeCoach
We have a redesign project with no immediate release date. However, if we use 3.0 it would need to be production ready before we release the redesigned pages.
If I simply use npm install canjs will I get version 3?
Mohamed Cherif Bouchelaghem
@cherifGsoul
now it comes in separate libs http://canjs.github.io/canjs/
Christopher Oliphant
@RALifeCoach
what would be the npm command to install canjs 3.0?
Mohamed Cherif Bouchelaghem
@cherifGsoul
you have all the commands in the docs
Christopher Oliphant
@RALifeCoach
I am getting a 404 on the docs
Mohamed Cherif Bouchelaghem
@cherifGsoul
I can see it
404 with npm install?
Christopher Oliphant
@RALifeCoach
from the download other versions button
Mohamed Cherif Bouchelaghem
@cherifGsoul
you are looking for the can 3.0 why other version?
Christopher Oliphant
@RALifeCoach
I went to the old page looking for the 3.0 version. You have now given me the correct url.
Mohamed Cherif Bouchelaghem
@cherifGsoul
ok :)
Christopher Oliphant
@RALifeCoach
You might want to update the link from the old site.
Mohamed Cherif Bouchelaghem
@cherifGsoul
yes thank you
Christopher Oliphant
@RALifeCoach
As usual, I need a little help getting started.
Here is my html
<!DOCTYPE html>
<html>
<head>
    <title>PGAT</title>
</head>
<body>
<script src="../../../node_modules/steal/steal.js" main="modules/page.players-redesign/player-bio/player-bio"></script>

<section class="clearfix">
    <div class="player-bio">
    </div>
</section>

</body>
</html>
and here is my module
import Component from 'can-component';
import Map from 'can-map';
import $ from 'jquery';
import stache from 'can-stache';
import template from './template-player-bio.stache!';

const PlayerBioViewModel = Map.extend({

});

export default Component.extend({
    tag: 'pgat-player-bio',
    template,
    viewModel: PlayerBioViewModel,
    events: {
        inserted: function () {
            console.log('here and here');
        }
    }
});

$(document.body).append(stache('<pgat-player-bio></pgat-player-bio>'));
I am getting an error trying to load the template. The error is, “404 localhost:8090/stache.js (Not Found)"
Christopher Oliphant
@RALifeCoach
@cherifGsoul any suggestions? Do I need a stealconfig file?
Mohamed Cherif Bouchelaghem
@cherifGsoul
you have can-stache installed?
Christopher Oliphant
@RALifeCoach
yes
If I change import template from './player-bio.stache!’; to import template from './player-bio.stache!can-stache’; I stop getting error, but it stops reading the JS file
Christopher Oliphant
@RALifeCoach
It does read the JS file, but doesn’t execute it
Mohamed Cherif Bouchelaghem
@cherifGsoul
Ok I will look into that this evening
try to use commonJS modules
Christopher Oliphant
@RALifeCoach
okay
I was trying to use steal and ES6
Can I use can 3.0 and not use steal?
Mohamed Cherif Bouchelaghem
@cherifGsoul
maybe for some packages but not all look at the dist folders
Christopher Oliphant
@RALifeCoach
why would I try to use commonJS modules?
Mohamed Cherif Bouchelaghem
@cherifGsoul
canjs 3.0 is written in commonjs
maybe it works well like this for now
Christopher Oliphant
@RALifeCoach
is there someone who can help me now? (I know you all have full time jobs as well as working on CanJS.)
It seems that working with CanJS is now my full time job.
Mohamed Cherif Bouchelaghem
@cherifGsoul
what kind of help? :)
Christopher Oliphant
@RALifeCoach
getting this very simple example to run
I don’t know commonJS and I would prefer not to have to learn it
Mohamed Cherif Bouchelaghem
@cherifGsoul
it's plain javascript
nothing more
just instead of import use require
like in the docs
Christopher Oliphant
@RALifeCoach
I switched my code from es6 using imports to be standard js with require. It is still not executing the code. The load works when I specify "system": { "ext": { "stache": "can-stache" } }, in package.json
But the code doesn’t run.
If I do not have the ext in package then it generates the state.js file not found