Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 1.37 KB

js-processing.md

File metadata and controls

16 lines (10 loc) · 1.37 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 the file (or directory) to ignore in .babelrc in the project root. 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 the project root. See all babel options, except for sourcemap and filename which is handled for you.

You can manage sourcemaps from options.