Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 23 20:45

    greenkeeper[bot] on @octokit

    (compare)

  • Oct 23 20:43

    greenkeeper[bot] on @octokit

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

  • Oct 23 19:54

    m-mujica on master

    Update dist for release (compare)

  • Oct 23 19:54

    m-mujica on v6.2.1

    Update dist for release 6.2.1 (compare)

  • Oct 23 19:43
    greenkeeper[bot] closed #5396
  • Oct 23 19:43

    greenkeeper[bot] on can-observable-mixin-1.0.4

    (compare)

  • Oct 23 19:43
    greenkeeper[bot] closed #5395
  • Oct 23 19:43

    greenkeeper[bot] on can-observable-array-1.0.3

    (compare)

  • Oct 23 19:43

    m-mujica on update

    (compare)

  • Oct 23 19:43

    m-mujica on master

    Update packages to the latest v… Fix bundlesize Merge pull request #5398 from c… (compare)

  • Oct 23 19:43
    m-mujica closed #5398
  • Oct 23 18:57
    m-mujica synchronize #5398
  • Oct 23 18:57

    m-mujica on update

    Fix bundlesize (compare)

  • Oct 23 18:43
    cherifGsoul commented #5397
  • Oct 23 18:39
    matthewp commented #5397
  • Oct 23 18:26
    m-mujica opened #5398
  • Oct 23 18:25

    m-mujica on update

    Update packages to the latest v… (compare)

  • Oct 23 18:19
    cherifGsoul assigned #5397
  • Oct 23 18:19
    cherifGsoul opened #5397
  • Oct 23 18:13
    greenkeeper[bot] labeled #5396
Thomas Sieverding
@Bajix
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
of module versions
i think your mixing up a lot of stuff that will not 100% work
Thomas Sieverding
@Bajix
What’s he using that won’t work?
Gira Minus
@gKreator
yeah at this point i think my package.json is messed up beyond lol
Frank Lemanschik
@frank-dspeed
right my frind now listen
Thomas Sieverding
@Bajix
No it’s not?
Frank Lemanschik
@frank-dspeed
we make it easy