<commit_before>path = require 'path'
gulp = require 'gulp'
connect = require 'gulp-connect'
typedoc = require 'gulp-typedoc'
mocha = require 'gulp-mocha'
gutil = require 'gulp-util'
plumber = require 'gulp-plumber'
rename = require 'gulp-rename'
watchify = require 'watchify'
browserify = require 'browserify'
sourcemaps = require 'gulp-sourcemaps'
source = require 'vinyl-source-stream'
buffer = require 'vinyl-buffer'
uglify = require 'gulp-uglify'
gulpif = require 'gulp-if'
shaderify = require 'shaderify'
txtify = require 'txtify'
jade = require 'gulp-jade'
fs = require 'fs'
_ = require 'lodash'
globArray = require 'glob-array'
del = require 'del'
args = require('yargs').argv
reactify = require 'coffee-reactify'
envify = require 'envify/custom'
notifier = require 'node-notifier'
formatter = require 'pretty-hrtime'
runSequence = require 'run-sequence'
ts = require 'gulp-typescript'
changed = require 'gulp-changed'
tslint = require 'gulp-tslint'
mkdir = require 'mkdirp'

###
TASK SUMMARY

* clean     clean directories
* build     build product
* server    start simple server
* watch     watch file tree and build, and start simple server with liveReload
* doc       construct document with typedoc
* test      run test
* tscfg     update tscofig.json by filesGlob in itself
###


###
configure
###
branch = args.branch || 'unknown'
gutil.log "branch: #{branch}"

# typedoc sources (Array), dest
typedocSrc = ['./jThree/src/**/*.ts']
typedocDest = 'ci/docs'

# tsd file sources (Array)
tsdSrc = './jThree/refs/**/*.d.ts'

# test target (Array)
testTarget = './jThree/test/build/test.js'

# templete convertion root (for entries of jade and haml)
templeteRoot = 'jThree/wwwroot'

# extention of jade
jadeExtention = '.jdgoml'

# path to tsconfig.json
tsconfigPath = './tsconfig.json'

# path to bundle.ts for references
tsbundlePath = './jThree/src/bundle.ts'

# path to tsd.json
tsdPath = './tsd.json'

# root path for simple server
serverRoot = './jThree/wwwroot'

# webpack output stats config
defaultStatsOptions =
  colors: gutil.colors.supportsColor
  hash: false
  timings: true
  chunks: false
  chunkModules: false
  modules: false
  children: true
  version: true
  cached: false
  cachedAssets: false
  reasons: false
  source: false
  errorDetails: false

# ts compilcation config
tsEntries = './jThree/src/**/*.ts'
refsEntries = './jThree/src/refs/**/*.ts'
tsDest = './jThree/lib'
tsBase = './jThree/src'

# watch src for liveReload
watchForReload = ['./jThree/wwwroot/**/*.js', './jThree/wwwroot/**/*.html', './jThree/wwwroot/**/*.goml']

# individual config for bundling
config =
  main:
    entries: './jThree/lib/jThree.js'
    name: 'j3.js'
    extensions: ['.js', '.json', '.glsl', '.html','.xmml']
    dest: ['./jThree/bin/product', './jThree/wwwroot']
    target: 'web'
    minify: false
    transform: ['shaderify', 'txtify']
    detectGlobals: false
  debug:
    entries: './jThree/debug/debug.coffee'
    name: 'j3-debug.js'
    extensions: ['.json', '.coffee']
    dest:['./jThree/wwwroot/debug']
    target: 'web'
    minify: false
    transform: ['coffee-reactify']
    detectGlobals: true

# files for clean task
cleaner_files = ['./jThree/src/**/*.js']
cleaner_files_silent = ['./jThree/lib/**/*']

env_production = false<commit_msg>chore: fix builded files is not up-to-date (temporary)<commit_after>path = require 'path'
gulp = require 'gulp'
connect = require 'gulp-connect'
typedoc = require 'gulp-typedoc'
mocha = require 'gulp-mocha'
gutil = require 'gulp-util'
plumber = require 'gulp-plumber'
rename = require 'gulp-rename'
watchify = require 'watchify'
browserify = require 'browserify'
sourcemaps = require 'gulp-sourcemaps'
source = require 'vinyl-source-stream'
buffer = require 'vinyl-buffer'
uglify = require 'gulp-uglify'
gulpif = require 'gulp-if'
shaderify = require 'shaderify'
txtify = require 'txtify'
jade = require 'gulp-jade'
fs = require 'fs'
_ = require 'lodash'
globArray = require 'glob-array'
del = require 'del'
args = require('yargs').argv
reactify = require 'coffee-reactify'
envify = require 'envify/custom'
notifier = require 'node-notifier'
formatter = require 'pretty-hrtime'
runSequence = require 'run-sequence'
ts = require 'gulp-typescript'
changed = require 'gulp-changed'
tslint = require 'gulp-tslint'
mkdir = require 'mkdirp'

###
TASK SUMMARY

* clean     clean directories
* build     build product
* server    start simple server
* watch     watch file tree and build, and start simple server with liveReload
* doc       construct document with typedoc
* test      run test
* tscfg     update tscofig.json by filesGlob in itself
###


###
configure
###
branch = args.branch || 'unknown'
gutil.log "branch: #{branch}"

# typedoc sources (Array), dest
typedocSrc = ['./jThree/src/**/*.ts']
typedocDest = 'ci/docs'

# tsd file sources (Array)
tsdSrc = './jThree/refs/**/*.d.ts'

# test target (Array)
testTarget = './jThree/test/build/test.js'

# templete convertion root (for entries of jade and haml)
templeteRoot = 'jThree/wwwroot'

# extention of jade
jadeExtention = '.jdgoml'

# path to tsconfig.json
tsconfigPath = './tsconfig.json'

# path to bundle.ts for references
tsbundlePath = './jThree/src/bundle.ts'

# path to tsd.json
tsdPath = './tsd.json'

# root path for simple server
serverRoot = './jThree/wwwroot'

# webpack output stats config
defaultStatsOptions =
  colors: gutil.colors.supportsColor
  hash: false
  timings: true
  chunks: false
  chunkModules: false
  modules: false
  children: true
  version: true
  cached: false
  cachedAssets: false
  reasons: false
  source: false
  errorDetails: false

# ts compilcation config
tsEntries = './jThree/src/**/*.ts'
refsEntries = './jThree/src/refs/**/*.ts'
tsDest = './jThree/lib'
tsBase = './jThree/src'

# watch src for liveReload
watchForReload = ['./jThree/wwwroot/**/*.js', './jThree/wwwroot/**/*.html', './jThree/wwwroot/**/*.goml']

# individual config for bundling
config =
  main:
    entries: './jThree/lib/jThree.js'
    name: 'j3.js'
    extensions: ['.js', '.json', '.glsl', '.html','.xmml']
    dest: ['./jThree/wwwroot', './jThree/bin/product']
    target: 'web'
    minify: false
    transform: ['shaderify', 'txtify']
    detectGlobals: false
  debug:
    entries: './jThree/debug/debug.coffee'
    name: 'j3-debug.js'
    extensions: ['.json', '.coffee']
    dest:['./jThree/wwwroot/debug']
    target: 'web'
    minify: false
    transform: ['coffee-reactify']
    detectGlobals: true

# files for clean task
cleaner_files = ['./jThree/src/**/*.js']
cleaner_files_silent = ['./jThree/lib/**/*']

env_production = false
{'fraction_non_alphanumeric': 0.14797389588708454, 'fraction_numerical': 0.0006070723933829109, 'mean_word_length': 3.8670605612998523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, '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': '864874', 'n_tokens_mistral': 2296, 'n_tokens_neox': 2272, 'n_words': 612}