Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 1.35 KB

js-processing.md

File metadata and controls

17 lines (10 loc) · 1.35 KB

English description | Описание на русском

JS-processing

TARS supports two workflows for JavaScript-code processing:

Both workflows support style- and error-checking with eslint. Config files for eslint are in the root folder: .eslintrc and .eslintignore. You can switch off eslint by using js.lint config option in tars-config.js

ES6(ES.Next) syntax is supported by using Babel. Use option useBabel to turn on the ES6(ES.Next) syntax (it is turned off by default). If you want to exclude some files from Babel processing you can add "babel_ignore_" to the begining of file name or add with file (or directory) to ignore in .babelrc in the root of the project. All JavaScript-files from folders static/framework, static/libraries, static/plugins and static/separate-js are ignored in babelrs by default. All config for Babel is in project root. See the babel options, except for sourcemap and filename which is handled for you.

You can manage with sourcemaps from builder-config.