npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

zen-compiler

v1.0.9-43

Published

A lightweight CLI based harness for the Force.com Tooling API

Downloads

5

Readme

zen screen shot

#Zen Compiler

On Github: https://github.com/joshbirk/zen-compiler

Zen is a simple node.js CLI based harness for the Force.com Tooling API. When started, it recursively watches the directory where it was run for file changes. If it detects a file type it knows, it will attempt to save it to the Tooling API to compile. This allows a developer to use any editor and get compiling and save time in the background.

It will then send system notifications on the current status. If the compile is pending, it offers moderately inspirational phrases while you wait.

It supports Apex, Visualforce and Lightning Components. To create a new lightning component, create a new directory and add an Aura component to it (like "MyComponent.cmp" or "MyComponentController.js"). The Aura Bundle will be created on the fly then. To create a new Apex or Visualforce element, just create a file with the right extension (cls, page, trigger or component).

When launched it will prompt for username, password and environment to log into Salesforce. After that it will wait in the background for file changes. It's not metadata based, so the structure of the directory isn't important except in the case of Lightning components (which must be in a directory named for their bundle).

To install:

npm install zen-compiler -g

And then to use, just go to a working directy and on the command line:

zenc

##zen fetch As of 1.0.4, zen now includes zen fetch. Login is the same prompt based system as zenc, but will also prompt for a search keyword. It will then pull Apex, Visualforce and Lightning that have the keyword in the file name and save them into corresponding directories. Remember that as long as the lightning sub-components are in a directory named after their bundle it doesn't matter how the directory is setup to zenc, so feel free to re-organize.

To use, just enter on the command line:

zenf

Remember that zen is meant for quick development and not as a build tool. For more options for working with Force.com from the CLI, install Force.com CLI.

###1.0.7 Updates

  • Bug fixes and cleanup
  • Moved phrase file to a specific arg, -f (ie zenc -f filename.txt)
  • Starting to migrate all command line args to command-line-args
  • Added completely undocumented feature: zenla

###1.0.4 Upates

  • You can now specify a newline delimited file to override the moderately inspirational phrases.
  • Username and environment choices) are stored in a file (.zen) for future prompts. Passwords are not stored anywhere.
  • Login is now the default environment
  • Moderately inspirational colors added to log
  • Empty files will not be sent to the Tooling API
  • Added zen fetch (see above)
  • A few tweaks to the API call loop

Disclaimer

I have tried to make it cross platform by design, but I have only been able to test it on OSX. This is not an official product of Salesforce and is offered without guarantee or any promise of support.