Code Monkey home page Code Monkey logo

mini-pusher's Introduction

Mini-Pusher | Powershell scripts for minimizing static JS/CSS and Pushing to S3

What?

This is a simple collection of PowerShell scripts which were built with the intention to be fired as part of a continuous integration build routine. It looks to a set a config files for some application wide settings (your AWS keys) and then a list of project settings in an XML file. Then based on the project name argument it grabs static content, minimizes it, renames for versioning, and then pushes the content to S3 automatically to the same directory tree the local site had.

Why PowerShell?

No real good reason other than being a novice PowerShell fan and enjoying scripting. I thought it would be fun.

No, why do this at all?

Yeah, there are a ton of options out there that minimize and/or combine and version really well. However, most seem to only target a single webserver. If you deploy the code to servers behind a balancer some frameworks that operate at runtime create a new version id which would cause the content to be re-cached if the user was bounced to a different machine.

Additionally, while it might be a better practice to set up CloudFront in a Pull scenario to an origin machine instead of an S3 bucket, my situation (already using S3 for redundant storage) it did not make sense. So, like many programming projects: I did this out of personal necessity.

What Do You Need to Run This?

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.