<commit_before>gulp.gs
=======

A tiny wrapper around [Gulp](http://gulpjs.com) to run your 'gulpfile.gs'([gorillascript](http://ckknight.github.io/gorillascript)).

Install
-------

`npm install gulp.gs -g`

Example gulpfile.gs
-------

```gorillascript
require! gulp
let browserify = require 'gulp-browserify'  // npm i gulp-browserify
let rename = require 'gulp-rename'

gulp.task 'gorilla', #
  gulp.src 'src/gorilla/app.gs', { -read }  // disable read stream for AltJS languages
      .pipe browserify
              transform: ['gorillaify']     // npm i gorillaify --save-dev
              extensions: ['.gs']
      .pipe rename 'app.js'                 // npm i gulp-rename --save-dev
      .pipe gulp.dest './build/js'

gulp.task 'watch', #
  gulp.watch 'src/gorilla/*.gs', ['gorilla']
```<commit_msg>Add a new example to README.md<commit_after>gulp.gs
=======

A tiny wrapper around [Gulp](http://gulpjs.com) to run your 'gulpfile.gs'([gorillascript](http://ckknight.github.io/gorillascript)).

Install
-------

`npm install gulp.gs -g`

Example gulpfile.gs
-------

```gorillascript
require! gulp
let browserify = require 'gulp-browserify'  // npm i gulp-browserify
let rename = require 'gulp-rename'

gulp.task 'gorilla', #
  gulp.src 'src/gorilla/app.gs', { -read }  // disable read stream for AltJS languages
      .pipe browserify
              transform: ['gorillaify']     // npm i gorillaify --save-dev
              extensions: ['.gs']
      .pipe rename 'app.js'                 // npm i gulp-rename --save-dev
      .pipe gulp.dest './build/js'

gulp.task 'watch', #
  gulp.watch 'src/gorilla/*.gs', ['gorilla']
```

Example gulpfile.gs with watchify and source map support
-------

```gorillascript
// npm i watchify gorillaify vinyl-source-stream --save-dev
require! gulp
require! watchify
let source = require 'vinyl-source-stream'

gulp.task 'watch', #
  let out = process.stdout
  let start = # out.write '[watchify] Rebundling app...'
  let done = # out.write 'Done\n'

  let bundler = watchify './src/gorilla/app.gs'
  bundler.transform 'gorillaify'

  let rebundle = #
    start()
    // turn on debug option to generate source map
    return bundler.bundle { +debug }, done
                  .pipe source 'app.js'
                  .pipe gulp.dest './build/js'
  bundler.on 'update', rebundle
  return rebundle()

```
{'fraction_non_alphanumeric': 0.15814151747655583, 'fraction_numerical': 0.0, 'mean_word_length': 2.5832061068702292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2508872', 'n_tokens_mistral': 802, 'n_tokens_neox': 775, 'n_words': 209}