Skip to content

Instantly share code, notes, and snippets.

View williamledoux's full-sized avatar

William Ledoux williamledoux

  • http://www.spirops.com/
  • Paris, France
View GitHub Profile
@williamledoux
williamledoux / gist:d79d2a2d4873d157047b
Last active February 5, 2016 00:20
How to create files in a meteor application from a meteor package

How to create files in a meteor application from a meteor package

The goal is to create or generate some files in the user's app directory, so that he can make some uses of it. For instance, provide LESS files that uses end-user's LESS variables (eg. the user's custom bootstrap theme).

This gist is just explaining the method Marco Pfeiffer has found to make its (awesome) highly configurable LESS boostrap package.

How to create some files

In order to create some file in the user's app workspace, you need to create a build plugin with the registerBuildPlugin API. Then you need to get it called at least once during build. This is done by registering a sourceHandler on some file extension. Your build plugin we get called once per file matching the extension. For now only one build plugin can register as a handler for a given extension

@williamledoux
williamledoux / Failure.log
Created December 4, 2012 13:20
LaTeXTools log parsing
This is XeTeX, Version 3.1415926-2.4-0.9998 (MiKTeX 2.9) (preloaded format=xelatex 2012.8.3) 4 DEC 2012 14:14
entering extended mode
**C:/Users/Administrator/Desktop/Devis.tex
(C:/Users/Administrator/Desktop/Devis.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,