Git Product home page Git Product logo

ember-cli-deploy-manifest's Introduction

Ember CLI Deploy

Build Status Code Climate

Simple, flexible deployment for your Ember CLI app

Installation

ember install ember-cli-deploy

Quick start

After installation, choose plugins matching your deployment environment, configure your deployment script appropriately and you're ready to start deploying.

In-depth documentation

Visit the Docs site

Contributing

Clone the repo and run npm install. To run tests,

npm test

ember-cli-deploy-manifest's People

Contributors

achambers avatar bortevik avatar chrislopresto avatar dependabot[bot] avatar ghedamat avatar jasonkriss avatar jpadilla avatar kagemusha avatar lukemelia avatar stephencattaneo avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

ember-cli-deploy-manifest's Issues

filePattern

The default filePattern for files to be included in the manifest is:

"**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2}"

If I understood correctly, plugins that respect the manifest (such as ember-cli-deploy-s3) will only ever upload files that they find listed in the manifest (if they have different fingerprints that is).

Doesn't that imply that all files not matching the pattern will be completely ignored?

Take what-is-love.webm for example. If (for whatever reason) someone needed to statically embed this webm video in their website, the video would never be uploaded, because it doesn't match the default file pattern. I did not actually test this though, but if I understood the docs correctly, precisely this would happen.

I can understand why a file filtering feature could be useful and don't advocate to remove it as a whole, but I'd set the default pattern to "**/*" so all files are matched.
Or even better yet, set filePattern: false and implement a simple switch that skips the filtering for performance reasons if the filePattern is false-y.
Alternatively we could test for "**/*" and just skip in that case to keep the human interface more intuitive.

If I did not miss any deeper reason for this and the change would be welcome, I'd make a quick PR. ๐Ÿ˜€

Merry X-MAS everybody! ๐ŸŽ„

How to define files that should always be uploaded?

I have a /service-worker.js file I can't fingerprint and should always be uploaded.
I tried to do this but didn't work:

ENV.manifest.filePattern = '**/!(service-worker.js).{json,js,css,png,gif,ico,jpg,xml,txt,svg,swf,eot,ttf,woff,woff2,htm}';

It won't be added to the deploy manifest and won't be uploaded.

Anyway I can make this work?

Confusing usage with DEV environment

Hey, it could be me not fully understanding how ember-cli-deploy works, but the manifest plugin trolled me for a bit when I tried to deploy to a "development" target (because the file names didn't change, and in result no new files were uploaded).

I think it'd be nice to at least warn about this in the readme (and possibly in the console when doing the build?), or disable this plugin for development builds by default. What do you think?

Feature Request -- ability to omit files from manifest based on ignore pattern

My use case is I need to deploy certain files to s3 on every deploy. The files in question are not fingerprinted, but should always be deployed. I can achieve this by not having the file present in the manifest. Adding ignoreFilePattern would allow me to configure my deploy.js to ignore my always needed to deploy files.

Previously opened an issue to solve a different way in ember-cli-deploy-s3 --
ember-cli-deploy/ember-cli-deploy-s3#92

@achambers suggested this fix instead.

Best way to turn off for some deployment targets?

I have some deployment targets like dev and staging that don't compress the assets with a new hash in the name. So when using this plugin, my assets are not deployed because their file names aren't changing. What's the best way to turn this off for targets like these?

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.