From 14b28a8a893c5562ea4b9f6dbad75fce6ae822b1 Mon Sep 17 00:00:00 2001 From: Garen Torikian Date: Fri, 26 Apr 2013 13:39:24 -0700 Subject: [PATCH] Update package creation docs --- docs/packages/creating_a_package.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/packages/creating_a_package.md b/docs/packages/creating_a_package.md index f70c63eb6..2f57960d5 100644 --- a/docs/packages/creating_a_package.md +++ b/docs/packages/creating_a_package.md @@ -60,6 +60,13 @@ Hitting the key binding on the tree now works! ## Working with styles The next step is to hide elements in the tree that aren't modified. To do that, -we'll first (obviously) try and get a list of files that have changed. +we'll first (obviously) try and get a list of files that have not changed. -All packages are able to use jQuery in their +All packages are able to use jQuery in their code. So let's include that at the top: + +```coffeescript +$ = require 'jquery' +``` + +Now, we can query the tree to get us a list of every file that _wasn't_ modified +using some jQuery syntax.