GithubHelp home page GithubHelp logo

Comments (4)

dimkir avatar dimkir commented on August 22, 2024 1

Was looking around your documentation for this feature (most simple use case is that when I make static website on my dev machine, and want to publish it via netlify deploy, I usually don't want node_modules to be uploaded.

Surge.sh have done it in very simple way: by adding a custom ignore file and some reasonable defaults.

Is something like this possible in today's netlify-cli ?

from cli.

fool avatar fool commented on August 22, 2024

Nothing like that exists, but we'd accept contributions :)

All development going forward is going to be on the Go client: https://github.com/netlify/netlifyctl so if you're hoping for it to get implemented by us - that's the one to file the feature request on.

from cli.

bcomnes avatar bcomnes commented on August 22, 2024

The upcoming 2.0.0 cli ignores node_modules and .dotfiles (except for .well-known) by default. Generally, it's better to copy the files you want hosted into a deploy folder than it is to deploy in folders that have files you want ignored. We may expand this capability in the future though.

from cli.

jimniels avatar jimniels commented on August 22, 2024

Would be nice to have this.

Certain files are already being excluded and the js-client used to have a deploy method which would allow you to specify a filter function for filtering out files you didn't want.

Would be nice to have some kind of glob pattern you could pass in that excludes files matching a certain pattern in your deploy dir, i.e.

netlify deploy --dir ./build --exclude "{**/_nested-name}"

from cli.

Related Issues (20)

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.