0.3.7 • Published 10 years ago

fly-earl v0.3.7

Weekly downloads
7
License
MIT
Repository
github
Last release
10 years ago

Earl Grey plugin for Fly.

npm package

Usage

yield this.source(glob).earl([opts]).target(outputDir)

opts.es5 is a boolean option to change compilation to ES5. Defaults to false.

opts.sourceMaps is a string that specifies how to handle sourcemaps. .compute will compute sourcemaps but does not place sourceMappingURL within the file. .inline does add it. The default is null.

opts.runtime is a string that specifies which runtime to require. If null, no runtime is used and this removes some boilerplate code. This defaults to requiring earlgrey-runtime.

opts.parameters is an object containing flags that you can pass right into your programs to be accessed by macros via @getopt("flagName"). Flags are not limited to booleans and can be any arbitray data. For example:

parameters = {
  debug-level = .critical
  test-data = {"Pepperoni", "Cheese", "Sausage", "Peppers"}
  tests = false
}

Install

npm install -D fly-earl

Examples

JavaScript

exports.build = function* () {
  yield this
    .source("src/**/*.eg")
    .earl({ es5: true })
    .target("dist/")
}

Earl Grey

provide: build

gen build = ->
  yield chain this:
    @source("src/**/*.eg")
    @earl({ es5 = true })
    @target("dist/")

License

MIT © Jake Russo et al

0.3.7

10 years ago

0.3.6

10 years ago

0.3.5

10 years ago

0.3.4

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.22

10 years ago

0.1.21

10 years ago

0.1.19

10 years ago

0.1.18

10 years ago

0.1.17

10 years ago

0.1.16

10 years ago

0.1.15

10 years ago

0.1.14

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago