Git Product home page Git Product logo

Comments (6)

zachleat avatar zachleat commented on August 24, 2024 1

I think this looks to me—I’ll want to give it a spin later but the code looks solid to me.

Hmm, that’s a good question. I believe it will ensure that the version of eleventy that’s running fits the plugin’s declared version. I would hope it does at least. So if you have "@11ty/eleventy": "^0.5.2" declared and someone tried to install and use with eleventy 0.4.0, it wouldn’t be valid. I need to check this 😱

from eleventy-respimg.

zachleat avatar zachleat commented on August 24, 2024

Another example: https://github.com/11ty/eleventy-plugin-syntaxhighlight/blob/master/.eleventy.js which note that this repo’s package.json lists "main": ".eleventy.js"

https://github.com/11ty/eleventy-plugin-syntaxhighlight/blob/master/package.json#L5

from eleventy-respimg.

eeeps avatar eeeps commented on August 24, 2024

@zachleat Would appreciate a quick review here... Am I doing it wrong?

from eleventy-respimg.

eeeps avatar eeeps commented on August 24, 2024

(Note to self, should have done a PR)

from eleventy-respimg.

eeeps avatar eeeps commented on August 24, 2024

One specific, possibly very dumb question: what do I get by listing eleventy in the dependencies, other than a duplicate copy of eleventy in my node_modules that will never get run because I already have a npm install -g’d version?

Is this for people who use npx, or?

(hi, I have never published code to npm before)

from eleventy-respimg.

zachleat avatar zachleat commented on August 24, 2024

More info at https://docs.npmjs.com/misc/semver#caret-ranges-123-025-004 (although you can use other types of versions there too if you want, not just the caret one)

from eleventy-respimg.

Related Issues (8)

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.