Giter VIP home page Giter VIP logo

docpad-plugin-hapi's People

Contributors

stongo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docpad-plugin-hapi's Issues

Works out of the box?

I added the hapi plugin to my package.json and did docpad install then docpad run and got the following:

$ docpad run
info: Welcome to DocPad v6.60.3 (local installation: c:\Users\Mikeumus\Desktop\M
DM\Projects\MDM-Projects\bshares.co\Development\Staging\node_modules\docpad)
info: Contribute: http://docpad.org/docs/contribute
info: Plugins: bitcoinsvg, cleanurls, coffeescript, eco, ghpages, hapi, liverelo
ad, marked, partials, text
info: Environment: development
info: DocPad listening to http://0.0.0.0:9778/ on directory c:\Users\Mikeumus\De
sktop\MDM\Projects\MDM-Projects\bshares.co\Development\Staging\out
info: Shutting down default Express server
error: Something went wrong with the action
error: An error occured:
Error: Invalid server options: {
  "maxSockets": null,
  "router": {
    "isCaseSensitive": true
  },
  "state": {
    "cookies": {
      "parse": true,
      "failAction": "error",
      "clearInvalid": false,
      "strictHeader": true
    }
  },
  "location": "",
  "payload": {
    "maxBytes": 1048576,
    "uploads": "C:/Users/Mikeumus/AppData/Local/Temp"
  },
  "validation": null,
  "json": {
    "replacer": null,
    "space": null
  },
  "files": {
    "etagsCacheMaxSize": 10000,
    "relativeTo" [1]: "c:\\Users\\Mikeumus\\Desktop\\MDM\\Projects\\MDM-Projects
\\bshares.co\\Development\\Staging"
  },
  "timeout": {
    "client": 10000,
    "server": false
  },
  "load": {
    "maxHeapUsedBytes": 0,
    "maxRssBytes": 0,
    "maxEventLoopDelay": 0,
    "sampleInterval": 0
  },
  "debug": {
    "request": [
      "implementation"
    ]
  },
  "labels": [],
  "cache": {
    "engine": "memory"
  },
  "cors": false
}

[1] the value of relativeTo must match the regular expression /^[\/\.]/
    at Object.exports.assert (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Project
s\bshares.co\Development\Staging\node_modules\docpad-plugin-hapi\node_modules\ho
ek\lib\index.js:394:11)
    at new module.exports.internals.Server (c:\Users\Mikeumus\Desktop\MDM\Projec
ts\MDM-Projects\bshares.co\Development\Staging\node_modules\docpad-plugin-hapi\n
ode_modules\hapi\lib\server.js:69:11)
    at module.exports (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projects\bshar
es.co\Development\Staging\node_modules\docpad-plugin-hapi\lib\hapi-server.js:42:
18)
    at HapiPlugin.serverAfter (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projec
ts\bshares.co\Development\Staging\node_modules\docpad-plugin-hapi\out\hapi.plugi
n.js:62:48)
    at ambi (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projects\bshares.co\Deve
lopment\Staging\node_modules\docpad\node_modules\ambi\out\lib\ambi.js:23:18)
    at Task.<anonymous> (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projects\bsh
ares.co\Development\Staging\node_modules\docpad\node_modules\event-emitter-group
ed\out\lib\event-emitter-grouped.js:38:23)
    at ambi (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projects\bshares.co\Deve
lopment\Staging\node_modules\docpad\node_modules\ambi\out\lib\ambi.js:23:18)
    at fire (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projects\bshares.co\Deve
lopment\Staging\node_modules\docpad\node_modules\taskgroup\out\lib\taskgroup.js:
159:23)
    at b (domain.js:183:18)
    at Domain.run (domain.js:123:23)
    at Task.fire (c:\Users\Mikeumus\Desktop\MDM\Projects\MDM-Projects\bshares.co
\Development\Staging\node_modules\docpad\node_modules\taskgroup\out\lib\taskgrou
p.js:166:25)
    at processImmediate [as _immediateCallback] (timers.js:330:15)
info: Shutting down... cya next time!

So my question is if this plugin is designed to work out of the box or if setting up it's config as in the ReadMe is a required step? I may also be missing something very apparent but if I am missing something, maybe it should be outlined in the ReadMe #2cents.

Thanks for the plugin! Can't wait to start using it.

p.s.
It may also be a computer error on my end as I'm getting a error simply trying to login to NPM inside git bash. It's a newly recovered Windows 8.1 Surface Pro to note.

Warning on installation with docpad 6.54.6

Hello,
Thx you for this awesome plugin.
When I install docpad-plugin-hapi on a docpad 6.54.6 I have this warning :

warning: Failed to load the plugin: docpad-plugin-hapi at /node_modules/docpad-plugin-hapi 
The error follows:
warning: An error occured: 
TypeError: Object function BasePlugin(opts) {
      this.getConfig = __bind(this.getConfig, this);
      this.setConfig = __bind(this.setConfig, this);
      var config, docpad, me;
      me = this;
      docpad = opts.docpad, config = opts.config;
      this.docpad = docpad;
      this.bindListeners();
      this.config = extendr.deepClone(this.config);
      this.instanceConfig = extendr.deepClone(this.instanceConfig);
      this.initialConfig = this.config;
      this.setConfig(config);
      if (this.isEnabled() === false) {
        return this;
      }
      this.addListeners();
      this;
    } has no method 'extend'
    at module.exports

I have no issue on docpad version 6.64.0. I haven't test with other versions of docpad.
The plugin define his dependency to "docpad": ">=6"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.