Giter Site home page Giter Site logo

bash-apex's Introduction

bash-apex

Simple Bash (OSX) scripts for compiling code against an org

Usage:

  • build.properties: put your credentials, pod, login server, etc. info here.
  • compile.sh: compile.sh filename propertiesfile
  • compilegist.sh: compilegist.sh gistid propertiesfile
  • keychain.sh: utility shell script if you have "usekeychainaccess" set to enabled
  • oauth.sh: Alternate to using username and password. Requires node to be installed.
  • rungist.sh: rungist.sh gistid propertiesfile
  • files2static.sh: run in the project directory
  • static2files.sh: run in the project directory

Added: Static Resource Management. files2static will create static resources from a files directory in the same project folder. Any directories within /files will be zipped into one Static Resource. static2files will do the reverse, and inflate any zipped resources.

BOTH operations are auto-destructive on a client level. They'll delete the target directory before processing. This won't delete anything when using the Migration tool.

The difference between "compilegist" and "rungist" is that rungist just runs the Apex anonymously. The oauth.sh script will spin up a small node server and open a browser to go through the OAuth flow. Requires you to have "consumerkey" and "privatekey" set in build.properties.

Example of compiling from a project folder with the scripts in the root might be:

compile.sh classes/Classname.cls build.properties

Currently the gist compiler only supports Apex. Will be fixed shortly.

Questions? On twitter @joshbirk.

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.