Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 04 22:03
    chasenlehara opened #5440
  • Dec 04 22:03
    chasenlehara labeled #5440
  • Dec 04 19:18
    cherifGsoul review_requested #5432
  • Dec 04 14:09
    m-ahmadi starred canjs/canjs
  • Dec 04 10:52
    ansyeow starred canjs/canjs
  • Dec 03 14:53
    matthewp commented #5439
  • Dec 03 14:30
    frank-dspeed opened #5439
  • Dec 02 18:13
    greenkeeper[bot] commented #5392
  • Dec 02 18:13

    greenkeeper[bot] on core-js-3.4.7

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

  • Dec 02 17:48
    greenkeeper[bot] commented #5392
  • Dec 02 17:48

    greenkeeper[bot] on core-js-3.4.6

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

  • Dec 02 15:38
    phillipskevin commented #5438
  • Dec 02 15:38
    phillipskevin closed #5438
  • Dec 02 15:38
    phillipskevin commented #5438
  • Dec 01 23:28
    justinbmeyer commented #5438
  • Dec 01 23:06
    justinbmeyer commented #5438
  • Dec 01 23:06
    justinbmeyer commented #5438
  • Dec 01 23:04
    justinbmeyer edited #5438
  • Dec 01 23:03
    justinbmeyer opened #5438
  • Nov 29 15:01
    cherifGsoul synchronize #5432
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?
Christopher Oliphant
@RALifeCoach
that’s what is genrated when I build with main: [‘dev1’, ‘dev2’]