Comments (4)
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.
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.
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.
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)
- (dev) Deno crashes with PermissionDenied: Requires sys access to "cpus", run again with the --allow-sys flag HOT 1
- Please replace with a clear and descriptive title
- Code injection during dev mode
- Function file changes ignored by `netlify dev --framework "#static"` while using `vite build --watch` HOT 2
- Netlify cli crashes anytime an error is thrown from an express route HOT 2
- bug: import `execa` not found `bun install` failed for `postinstall` script HOT 3
- Error when running Playwright tests on 17.26.1
- `netlify serve` does not work with an Astro project using SSR and middleware HOT 4
- adsad
- Completions don't work
- Shrinkwrap is forcing insecure dependencies HOT 3
- Error: EISDIR: illegal operation on a directory, readlink
- Misleading error message when an invalid `NETLIFY_AUTH_TOKEN` is provided
- Impossible to update braces to ^3.0.3 HOT 5
- CLI cannot handle non Error-typed thrown errors
- Netlify CLI has terminated unexpectedly HOT 1
- Deployment Production Boolean Flag - New Behavior? 17.33.4 HOT 11
- Continously giving error for 2 hours
- Error: Netlify CLI has terminated unexpectedly
- Cannot read properties of undefined (reading 'mainFile')
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.