Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 21:21
    greenkeeper[bot] commented #5392
  • 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)

  • 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)

Christopher Oliphant
@RALifeCoach
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’]
Julian
@pYr0x
are u using npm?
Christopher Oliphant
@RALifeCoach
here is the package.json
{
  "name": "buildit",
  "version": "1.0.0",
  "description": "a built test app",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "build": "node build"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "can-component": "^3.0.0-pre.14",
    "can-define": "^0.7.15",
    "can-map": "^3.0.0-pre.8",
    "can-set": "^0.5.6",
    "can-stache": "^3.0.0-pre.13",
    "can-view-model": "^3.0.0-pre.4",
    "jquery": "^2.2.0",
    "steal": "^0.16.33",
    "steal-tools": "^0.16.6",
    "steal-stache": "^3.0.0-pre.3"
  },
  "devDependencies": {
  },
  "system": {
    "npmIngore": [
      "devDependencies"
    ],
    "npmAlgorithm": "flat",
    "directories": {
      "lib": "src"
    },
    "meta": {
    },
    "envs": {
      "build": {
        "map": {
          "jquery": "http://code.jquery.com/jquery-2.2.0.min",
          "jquery/jquery": "http://code.jquery.com/jquery-2.2.0.min"
        }
      },
      "window-development": {
        "map": {

        }
      },
      "window-production": {
        "map": {
          "jquery": "http://code.jquery.com/jquery-2.2.0.min",
          "jquery/jquery": "http://code.jquery.com/jquery-2.2.0.min"
        }
      }
    }
  }
}
Julian
@pYr0x
ok
so the name of the app is "buildit"
do you bundle steal with the build or not?
Christopher Oliphant
@RALifeCoach
in this case, yes