Giter VIP home page Giter VIP logo

grunt-metalsmith's People

Contributors

alexwhitman avatar doingweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

grunt-metalsmith's Issues

can't build when `dest` folder doesnt exist

metalsmith: {
      options: {
        "plugins": {
          "metalsmith-markdown": {},
          "metalsmith-permalinks": {
            "pattern": ":title"
          },
          "metalsmith-templates": {
            "engine": "jade",
            "directory": "./templates"
          }
        }
      },
      src: "./contents",
      dest: "./dist"
    },

when ./dist doesnt exist (which is usual for built folder to be gitignored), grunt metalsmith output:

Running "metalsmith:dest" (metalsmith) task
Warning: Arguments to path.resolve must be strings Use --force to continue.

can't use local js file as a metalsmith plugin

Metalsmith supports loading plugins as a local npm modules. see metalsmith cli.
Namely:

{
  "plugins": {
    "./lib/metalsmith/plugin.js": true
  }
}

But when i use such form in grunt-metalsmith i get

Warning: Cannot find module './lib/metalsmith/plugin.js' Use --force to continue.

metalsmith dependency causes Fatal error: Object #<Metalsmith> has no method 'path'

Hello,

With the latest metalsmith, I get his error.

Fatal error: Object #<Metalsmith> has no method 'path'

this was reported here segment-boneyard/metalsmith-templates#29

this has been hence fixed in metalsmith-templates and metalsmith (1.0.1), but since grunt-metalsmith uses an old version

"dependencies": {
    "metalsmith": "^0.11.0"
  }

I get that error.

I am not a node/grunt expert, but deleting the node_modules of grunt-metalsmith solved the issues (so it takes global latest version). not sure how better to solve this.

can't grunt-metalsmith takes the version specified in my package.json ? or can it remove metalsmith from dependency as it always installed?

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.