Guest User

Untitled

a guest
Nov 23rd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1.  
  2. @waflib.TaskGen.feature("stuff")
  3. def do_stuff(self):
  4. tsk = self.create_task("Compass", self.in_source_node, self.in_target_node)
  5. tsk.cwd = self.in_source_node.parent.abspath()
  6.  
  7. class Compass(Task.Task):
  8. color = 'BLUE'
  9. run_str = '${COMPASS} compile -c ${SRC[0].abspath()}'
  10.  
  11. def scan(self):
  12. sass_dir = self.inputs[0].parent
  13. sass_files = sass_dir.ant_glob('**/*.scss')
  14. return (sass_files, "")
  15.  
  16. @conf
  17. def compass(bld, source=None, target=None, **kwargs):
  18. return bld(features="stuff",in_source_node=source,in_target_node=target)
Add Comment
Please, Sign In to add comment