English description | Описание на русском
TARS supports two workflows for JavaScript-code processing:
- concatenation of all JavaScript-files into one bundle in a specific order;
- resolving dependencies between JavaScript-files (from TARS 1.7.0).
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.