Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 03:34
    GraceFatima commented on 695c6da
  • Mar 31 06:37
    hrnkoji starred canjs/canjs
  • Mar 26 22:02
    greenkeeper[bot] commented #5469
  • Mar 26 22:02

    greenkeeper[bot] on @octokit

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

  • Mar 25 21:18
    sdillen starred canjs/canjs
  • Mar 25 20:34
    Aliens-dev starred canjs/canjs
  • Mar 25 19:43
    greenkeeper[bot] commented #5469
  • Mar 25 19:43

    greenkeeper[bot] on @octokit

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

  • Mar 25 08:06
    leepeterson starred canjs/canjs
  • Mar 24 21:23
    greenkeeper[bot] commented #5469
  • Mar 24 21:23

    greenkeeper[bot] on @octokit

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

  • Mar 24 07:00

    greenkeeper[bot] on webpack-4.42.1

    (compare)

  • Mar 24 06:58

    greenkeeper[bot] on webpack-4.42.1

    chore(package): update webpack … (compare)

  • Mar 21 01:00
    greenkeeper[bot] commented #5469
  • Mar 21 01:00

    greenkeeper[bot] on @octokit

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

  • Mar 20 06:52
    christianfelicite starred canjs/canjs
  • Mar 18 10:30
    dinko starred canjs/canjs
  • Mar 17 19:33

    cherifGsoul on master

    Update dist for release (compare)

  • Mar 17 19:33

    cherifGsoul on v6.4.0

    Update dist for release 6.4.0 (compare)

  • Mar 17 19:07

    phillipskevin on prep-can-632

    (compare)

Gira Minus
@gKreator
blob
blob
This worked with steal-tools, I am assuming this is bad lol
I am trying to pass a template to another component. I know I can pass it as a string, but I want for steal-tools to bundle it with the parent.
Gira Minus
@gKreator
Found out it was my child component... I wansn't using the define { value: }
Thomas Sieverding
@Bajix
@gKreator I think I found that error earlier. The tests pass in the browser, but the one fails when done from the cli - upon further inspection, I think this line is breaking StealJS
Gira Minus
@gKreator
Nice, for me it was just my miss use of DefineMap
I just ran into a bug with <can-import>
<can-import from="scripts/components/datatable/">
<component-datatable {(options)}="datatable"></component-datatable>
</can-import>
I have to manually import the component somewhere... otherwise I get an error
Gira Minus
@gKreator
import "scripts/components/datatable/";
GET /traceur.js 404 (Not Found)
It seems to only do this if can-import is nested
this error only shows up in steal-tools
Thomas Sieverding
@Bajix
@phillipskevin I’ve got a fix for the done-autorender test
canjs/can-stache#127
It was breaking because of a bundle override on can-stache
Gira Minus
@gKreator
What was breaking?
Thomas Sieverding
@Bajix
can-stache had a path override that was breaking steal’s ability to load can-stache, but only during npm test
Gira Minus
@gKreator
Ohh
Nice find!
Thomas Sieverding
@Bajix
this was because done-autorender no longer has can as a dependency, and the path override in can-stache tries to map to can
Gira Minus
@gKreator
Got any clue on my can-import issue?
:D
Thomas Sieverding
@Bajix
Hmmm
Gira Minus
@gKreator
Seems to be an issue with nested <can-import>
Thomas Sieverding
@Bajix
Why’re you loading it from scripts?
I think your path setup isn’t right
Gira Minus
@gKreator
the folder? Is all my js files and stache files in there
Thomas Sieverding
@Bajix
I mean to say that you’re importing it from scripts, whereas the import statement shouldn’t need ‘scripts'
Gira Minus
@gKreator
It only breaks when you use steal-tools to build
hmm
ohh this screenshot might explain it
Thomas Sieverding
@Bajix
The paths configuration of your project wouldn’t make sense, not necessarily a comment on your file structure
Gira Minus
@gKreator
blob
Thomas Sieverding
@Bajix
Yea so then your package.json isn’t setup right
Gira Minus
@gKreator
blob
Anything stick out?
Thomas Sieverding
@Bajix
Yea, under system you should have "directories": { "lib": “public/scripts" },
Gira Minus
@gKreator
package.json is in public/
so "scripts"
Thomas Sieverding
@Bajix
Yea sure
Gira Minus
@gKreator
Ok thx
Thomas Sieverding
@Bajix
I have mine setup differently such that my package.json isn’t in my assets folder
I then do some more custom static serving
Such that my assets folder goes to /assets, node_modules to /node_modules, and package.json
W/ a redacted node_modules to protect private modules
Gira Minus
@gKreator
Very interesting
I'd like to see this somehow
Thomas Sieverding
@Bajix
app.use('/node_modules', function( req, res, next ) {
  var pathname = req.originalUrl;

  for (var i = 0; i < protectedDirs.length; i++) {
    if (~pathname.indexOf(protectedDirs[i])) {
      return next(new handler.NotAuthorizedError());
    }
  }

  next();
});

app.use('/css', express.static(path.join(__dirname, '../css')));
app.use('/dist', express.static(path.join(__dirname, '../dist')));
app.use('/assets', express.static(path.join(__dirname, '../assets')));
app.use('/package.json', express.static(path.join(__dirname, '../package.json')));
app.use('/node_modules', express.static(path.join(__dirname, '../node_modules')));