doingweb / grunt-metalsmith Goto Github PK
View Code? Open in Web Editor NEWLaunch a Metalsmith build from Grunt!
License: MIT License
Launch a Metalsmith build from Grunt!
License: MIT License
npm WARN deprecated [email protected]: This package was split into two simpler plugins: metalsmith-layouts and metalsmith-in-place
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.
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.