Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 10 17:40
    cherifGsoul review_requested #5443
  • Dec 10 16:47
    cherifGsoul review_requested #5441
  • Dec 10 16:35
    cherifGsoul synchronize #5441
  • Dec 10 16:35

    cherifGsoul on update-infrastructure-page

    Fix typos (compare)

  • Dec 10 10:01
    jkeruzec starred canjs/canjs
  • Dec 09 18:59
    cherifGsoul review_requested #5443
  • Dec 09 18:59
    cherifGsoul opened #5443
  • Dec 09 18:51

    cherifGsoul on document-inserted-removed-can6

    Add inserted/removed events to … (compare)

  • Dec 09 15:38
    greenkeeper[bot] labeled #5442
  • Dec 09 15:38
    greenkeeper[bot] opened #5442
  • Dec 09 15:38

    greenkeeper[bot] on can-view-live-5.0.1

    fix(package): update can-view-l… (compare)

  • Dec 08 21:21
    greenkeeper[bot] commented #5392
  • Dec 08 21:21

    greenkeeper[bot] on core-js-3.4.8

    chore(package): update core-js … (compare)

  • Dec 06 18:40
    cherifGsoul review_requested #5441
  • Dec 06 18:39
    cherifGsoul opened #5441
  • Dec 06 18:22

    cherifGsoul on update-infrastructure-page

    Update infrastructure page with… (compare)

  • Dec 06 18:14
    greenkeeper[bot] commented #5422
  • Dec 06 18:14

    greenkeeper[bot] on @feathersjs

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

  • Dec 06 18:11
    greenkeeper[bot] commented #5401
  • Dec 06 18:11

    greenkeeper[bot] on @feathersjs

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

Justin Meyer
@justinbmeyer
just pushed out some more docs updates: http://canjs.github.io/canjs/ ... lots of little fixes in can-connect, can-stache-bindings updates, can-set updates
Christopher Oliphant
@RALifeCoach
@justinbmeyer I am trying to build 3.0 can app
Christopher Oliphant
@RALifeCoach
I am able to get the build to work! New question. I want the build to separate out can files amd non-can files
@justinbmeyer ^^
Matthew Phillips
@matthewp
@RALifeCoach why?
I don't think we have a way to allow you to customize the build in that way
Christopher Oliphant
@RALifeCoach
because these modules fit into a larger infrastructure
They become components in a CMS
We don’t want to bundle all of canjs in with each component
in 2.3, not using steals, we were okay because we could include the canjs libraries separately
Julian
@pYr0x
you can use multi main
Christopher Oliphant
@RALifeCoach
@pYr0x sounds great - can you point me to the documentation on that?
Christopher Oliphant
@RALifeCoach
Please point me to the documentation
Christopher Oliphant
@RALifeCoach
@pYr0x @justinbmeyer Can someone point me to the documentation?
here is a test repo i created, it is not up-to-date. i can make a PR later this day
Christopher Oliphant
@RALifeCoach
thanks
Julian
@pYr0x
with new build and working build
see also
Christopher Oliphant
@RALifeCoach
I had found the many-problems item - that’s how I managed to get build to work
Christopher Oliphant
@RALifeCoach
but neither example have main: [‘xxx’, ‘yyy’]
Julian
@pYr0x
?
Christopher Oliphant
@RALifeCoach

Multi-page use
The following uses steal-tool's build method to programatically build out the "login" and "homepage" modules as bundles.

var stealTools = require("steal-tools");

var promise = stealTools.build({
main: ["login","homepage"],
config: __dirname+"/config.js"
},{
bundleSteal: true,
// the following are the default values, so you don't need
// to write them.
minify: true,
debug: false,
quiet: false,
bundleDepth: 3,
mainDepth: 3
});

Julian
@pYr0x
which examples?
Christopher Oliphant
@RALifeCoach
builtit and many problems - in both cases the build.js only has a single main
Julian
@pYr0x
you have to define a main entry point
in my repo?
Christopher Oliphant
@RALifeCoach
The documentation you pointed me to says to do a multiBuild you specify main: [‘xxx’, ‘yyy’]. You then sent me two examples neither one had this multiple mains in their build.js.
Julian
@pYr0x
as i said ;)
it is not up-to-date. i can make a PR later this day
Christopher Oliphant
@RALifeCoach
okay - I will wait until then
Julian
@pYr0x
k
i will inform you
Christopher Oliphant
@RALifeCoach
That is still using can 2.3. I need can 3.0
Julian
@pYr0x
oh
but there is not difference
because the build is provided by steal
Christopher Oliphant
@RALifeCoach
I tried converting your code to 3.0, building and running - no success
the build runs, but the page does not work
Julian
@pYr0x
waht do you mean with "not success"?
what is the error?
how does the productive code look like (html)
Christopher Oliphant
@RALifeCoach
Here is the prod html when built with steal included:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Production Site 1</title>
</head>
<body>

<h2>Production Site 1</h2>
<div id="output"></div>

<script src="dist/bundles/main-main.js"></script>
</body>
</html>
Julian
@pYr0x
??
main-main.js?
do you have a package.json?