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

jade-to-wire

v0.0.12

Published

Use the powers of nodejs and jade to supercharge your WIRE app creation workflow!

Downloads

30

Readme

jade-to-wire

Jade syntax to wire xml compiler

Use node.js to watch changes to .jade files to compile into corresponding .wire files.

After installing globally, you can run the command jade-to-wire from any folder to start a file watcher.

sudo npm install -g jade-to-wire
jade-to-wire

I recommend this compiler be used with SFTP for Sublime Text to monitor compiled wire files for uploading to create a quick-paced workflow for making WIRE apps.

Pre-preprocessors

jade-to-wire does use some of its own pre and post compilation processors to help you write wire.

Some basics of the post-compiling, are that id= is replaced with name= to better suit the WIRE XML language. And class= is replaced with style=

So the tag panel#bacon.square is compiled into <panel name="bacon" style="square"></panel>

Jade keywords

Some keywords are shared between WIRE XML and jade like include and if tags. So if you want to generate a <if> tag you use _if in jade,

so:

  - var happy = true
  if happy
    _if(lhs="" operator="" rhs="")
      assign(property="" value="")

becomes:

  <if lhs="" operator="" rhs="">
    <assign property="" value=""/>
  </if>

Vars file

If a vars.cson or a vars.json file is located in the directory where jade-to-wire is executed, it will be read in for local variables to be used with each jade conversion.

Converting wire to jade

To convert past projects into the nifty and fantastic language of jade, just run the command wire-to-jade from the directory containing your wire files.