Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 21 21:15
    greenkeeper[bot] commented #5237
  • Sep 21 21:15

    greenkeeper[bot] on @feathersjs

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

  • Sep 21 21:12
    greenkeeper[bot] commented #5236
  • Sep 21 21:12

    greenkeeper[bot] on @feathersjs

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

  • Sep 21 03:58

    greenkeeper[bot] on @octokit

    (compare)

  • Sep 21 03:57

    greenkeeper[bot] on @octokit

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

  • Sep 20 21:04
    m-mujica commented #5303
  • Sep 20 20:23
    m-mujica opened #5303
  • Sep 20 20:23

    m-mujica on upgrade-deps

    Update can-type and can-stache-… (compare)

  • Sep 20 20:05
    m-mujica edited #5302
  • Sep 20 20:03
    m-mujica synchronize #5302
  • Sep 20 20:03

    m-mujica on upgrade

    Upgrade routing guide to Can 6 Fix incorrect highlight Use svg images (instead of .png) (compare)

  • Sep 20 19:32
    m-mujica opened #5302
  • Sep 20 19:29

    m-mujica on upgrade

    Upgrade routing guide to Can 6 Fix incorrect highlight (compare)

  • Sep 20 17:42

    m-mujica on upgrade

    WIP: Upgrade (compare)

  • Sep 20 17:06
    do-adams starred canjs/canjs
  • Sep 20 13:34

    chasenlehara on 5119-testing-guide

    Update the Testing guide for Ca… (compare)

  • Sep 20 13:21
    cherifGsoul commented #5295
  • Sep 20 13:18
    cherifGsoul synchronize #5295
  • Sep 20 13:18

    cherifGsoul on update-theme-new-buttons

    Theme pre-release 2 (compare)

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')));
Gira Minus
@gKreator
ohh I see
Thomas Sieverding
@Bajix
I like to have the url /assets where I put everything using a modlet scheme; mixed assets within each modlet
Keeping those separate makes it easier to resolve the url patterns
The default setup has the unintended consequence of serving the app in liee of static assets whenever there’s a 404
I’ll probably follow up w/ this feedback w/ the DoneJS contrib or on github
Gira Minus
@gKreator
Is the meeting online?
Thomas Sieverding
@Bajix
They do a weekly hangouts
Gira Minus
@gKreator
ENOENT: no such file or directory, open '/usr/share/nginx/drivetrain/public/undefined#main.js'
whenver I set the lib:
it just passes it as undefined
Thomas Sieverding
@Bajix
You may have other issues
Considering all of your paths were already broken
Gira Minus
@gKreator
lol :D
Thomas Sieverding
@Bajix
You’d need to go through and update anything using improper path conventions
Basically require everything relatively
Gira Minus
@gKreator
yeah that I already figured
blob
Anytime I set that and try to build...
blob
Thomas Sieverding
@Bajix
I think it actually needs to be public/scripts
Gira Minus
@gKreator
my build.js is in the /public/ folder
and it I tried that
and it seems like the pass is fine up until the /scripts
path*
actually this might be a misconfigured steal-tools build.js
Thomas Sieverding
@Bajix
I think you need to do system.main=“{package.name}/main.js"
Gira Minus
@gKreator
Where would I do that?
Thomas Sieverding
@Bajix
What’s your package name?
Gira Minus
@gKreator
{
"name": "drivetrain",
"main": "main",
"dependencies": {
"can": "^3.2.1",
"can-component": "^3.0.3",
"can-compute": "",
"can-connect": "^1.0.14",
"can-define": "^1.0.4",
"can-event": "
",
"can-route": "^3.0.5",
"can-set": "^1.0.2",
"can-stache": "^3.0.13",
"can-util": "*",
"flatpickr": "^2.2.4",
"jquery": "^3.1.1",
"jquery.scrollto": "^2.1.2",
"lightbox2": "^2.9.0",
"moment": "^2.17.1",
"parsleyjs": "^2.6.0",
"steal": "^0.16.43",
"steal-cache-bust": "^0.2.1",
"steal-stache": "^3.0.3",
"sweetalert2": "^6.2.0"
},
"devDependencies": {
"steal-tools": "^0.16.8"
},
"system": {
"npmAlgorithm": "flat",
"npmIgnore": [
"devDependencies"
],
"directories": {
"lib": "scripts"
}
}
}
Frank Lemanschik
@frank-dspeed
wow
can you plz post files to external jsbin or other posting services
Thomas Sieverding
@Bajix
The main property of your system object within package.json should be your main dependency, relative to your lib.directories folder, substituting your package.name for whatever lib.directories is
Frank Lemanschik
@frank-dspeed
gists or else
Gira Minus
@gKreator
kk
Thomas Sieverding
@Bajix
So system.main should be “drivetrain/main.js"
Frank Lemanschik
@frank-dspeed
when package.json is in / yes
if package.json is in drivetain also it would be only main.js
but listen to me i saw in your package json that you have a bad combo