<commit_before>args = require('yargs').argv
ts = require 'gulp-typescript'
TaskManager = require './build/task-manager'
CleanTask = require './build/task/clean'
SampleTask = require './build/task/sample'
TsLintTask = require './build/task/tslint'
DocTask = require './build/task/doc'
TsConfig = require './build/task/tsconfig'
ServerTask = require './build/task/server'
BuildTask = require './build/task/build'
ReloadTask = require './build/task/reload'
WatchTask = require './build/task/watch'
TestTask = require './build/task/test'
BundleTask = require './build/task/bundle'
CoverTask = require './build/task/cover'
CopyTask = require './build/task/copy'
fs = require 'fs'
env_production = process.env.BABEL_ENV == 'production'



###
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
###

config =
  entries:
    main:
      entries: './lib/jThree.js'
      name: 'j3.js'
      extensions: ['.js', '.json', '.glsl', '.html','.xmml','.rsml','.xml']
      dest: ['./wwwroot', './bin/product']
      target: 'web'
      minify: args.minify
      sourcemap: !args.nosourcemap
      transform: [
        {name:'txtify', opt: {extensions: ['.json','.html','.css','.glsl','.xmml','.rsml','.xml']}}
        {name: 'babelify'}
        {name: 'envify', opt: {NODE_ENV: (if env_production then 'production' else 'development')}}
      ]
      detectGlobals: true
    debug:
      entries: './debug/debug.coffee'
      name: 'j3-debug.js'
      extensions: ['.json', '.coffee']
      dest:['./wwwroot/debug']
      target: 'web'
      minify: false
      sourcemap: !args.nosourcemap
      transform: [<commit_msg>Fixed build error "'import' and 'export' may appear only with 'sourceType: module'".<commit_after>args = require('yargs').argv
ts = require 'gulp-typescript'
TaskManager = require './build/task-manager'
CleanTask = require './build/task/clean'
SampleTask = require './build/task/sample'
TsLintTask = require './build/task/tslint'
DocTask = require './build/task/doc'
TsConfig = require './build/task/tsconfig'
ServerTask = require './build/task/server'
BuildTask = require './build/task/build'
ReloadTask = require './build/task/reload'
WatchTask = require './build/task/watch'
TestTask = require './build/task/test'
BundleTask = require './build/task/bundle'
CoverTask = require './build/task/cover'
CopyTask = require './build/task/copy'
fs = require 'fs'
env_production = process.env.BABEL_ENV == 'production'



###
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
###

config =
  entries:
    main:
      entries: './lib/jThree.js'
      name: 'j3.js'
      extensions: ['.js', '.json', '.glsl', '.html','.xmml','.rsml','.xml']
      dest: ['./wwwroot', './bin/product']
      target: 'web'
      minify: args.minify
      sourcemap: !args.nosourcemap
      transform: [
        {name:'txtify', opt: {extensions: ['.json','.html','.css','.glsl','.xmml','.rsml','.xml']}}
        {name: 'babelify', opt:{presets: ["es2015"]}}
        {name: 'envify', opt: {NODE_ENV: (if env_production then 'production' else 'development')}}
      ]
      detectGlobals: true
    debug:
      entries: './debug/debug.coffee'
      name: 'j3-debug.js'
      extensions: ['.json', '.coffee']
      dest:['./wwwroot/debug']
      target: 'web'
      minify: false
      sourcemap: !args.nosourcemap
      transform: [
{'fraction_non_alphanumeric': 0.16509186351706037, 'fraction_numerical': 0.002099737532808399, 'mean_word_length': 3.12, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '1596520', 'n_tokens_mistral': 1232, 'n_tokens_neox': 1203, 'n_words': 309}