aboutsummaryrefslogtreecommitdiffstats
path: root/build/conf/ts.conf
diff options
context:
space:
mode:
authordankolesnikov <dankolesnikov@yandex-team.ru>2022-02-10 16:51:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:07 +0300
commit98174ab8f0e6dbed8894c8226f62cac4bf36171d (patch)
tree00cab7b3b62da0fe104a2a99c2886064cc0b0d63 /build/conf/ts.conf
parent2e8363373770594fa3e83f1410d513cff82abb30 (diff)
downloadydb-98174ab8f0e6dbed8894c8226f62cac4bf36171d.tar.gz
Restoring authorship annotation for <dankolesnikov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/conf/ts.conf')
-rw-r--r--build/conf/ts.conf204
1 files changed, 102 insertions, 102 deletions
diff --git a/build/conf/ts.conf b/build/conf/ts.conf
index 8fc221c3ca..0a6310d8b3 100644
--- a/build/conf/ts.conf
+++ b/build/conf/ts.conf
@@ -1,105 +1,105 @@
-NODEJS_ROOT=$NODEJS_RESOURCE_GLOBAL
-NODEJS_BIN=$NODEJS_ROOT/node
-PNPM_ROOT=$PNPM_RESOURCE_GLOBAL
-PNPM_SCRIPT=$PNPM_ROOT/pnpm.js
-TSC_ROOT=$TS_COMPILER_RESOURCE_GLOBAL/typescript
-TSC_SCRIPT=$TSC_ROOT/lib/tsc.js
-NOTS_TOOL=${tool:"tools/nots"}
-NOTS_TOOL_BASE_ARGS=--build-root $ARCADIA_BUILD_ROOT --bindir $BINDIR --curdir $CURDIR --nodejs-bin $NODEJS_BIN
-
-NPM_CONTRIBS_PATH=devtools/dummy_arcadia/ts/contribs
-
-### @usage: NPM_CONTRIBS() # internal
-###
-### Defines special module that provides contrib tarballs from internal npm registry.
-### Should be used only with `NODE_MODULES` macro.
-###
-### @see [FROM_NPM_LOCKFILES()](#macro_FROM_NPM_LOCKFILES)
-### @see [NODE_MODULES()](#macro_NODE_MODULES)
-module NPM_CONTRIBS: _BASE_UNIT {
- .CMD=TOUCH_UNIT
- .PEERDIR_POLICY=as_build_from
- .FINAL_TARGET=no
- .ALLOWED=FROM_NPM_LOCKFILES
- .RESTRICTED=PEERDIR
-
- SET(MODULE_TAG NPM_CONTRIBS)
-
- MODULE_SUFFIX=.fake
-
- _BARE_MODULE()
-}
-
-### @usage: FROM_NPM_LOCKFILES(LOCKFILES...) # internal
-###
-### Defines lockfile list for `NPM_CONTRIBS` module.
-###
-### @see [NPM_CONTRIBS()](#module_NPM_CONTRIBS)
-macro FROM_NPM_LOCKFILES(LOCKFILES...) {
- SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS $LOCKFILES)
- # See implementation in build/plugins/nots.py
- _FROM_NPM_LOCKFILES($LOCKFILES)
-}
-
-### @usage: FROM_NPM(NAME VERSION SKY_ID INTEGRITY INTEGRITY_ALGO TARBALL_PATH)
-macro FROM_NPM(NAME, VERSION, SKY_ID, INTEGRITY, INTEGRITY_ALGO, TARBALL_PATH) {
+NODEJS_ROOT=$NODEJS_RESOURCE_GLOBAL
+NODEJS_BIN=$NODEJS_ROOT/node
+PNPM_ROOT=$PNPM_RESOURCE_GLOBAL
+PNPM_SCRIPT=$PNPM_ROOT/pnpm.js
+TSC_ROOT=$TS_COMPILER_RESOURCE_GLOBAL/typescript
+TSC_SCRIPT=$TSC_ROOT/lib/tsc.js
+NOTS_TOOL=${tool:"tools/nots"}
+NOTS_TOOL_BASE_ARGS=--build-root $ARCADIA_BUILD_ROOT --bindir $BINDIR --curdir $CURDIR --nodejs-bin $NODEJS_BIN
+
+NPM_CONTRIBS_PATH=devtools/dummy_arcadia/ts/contribs
+
+### @usage: NPM_CONTRIBS() # internal
+###
+### Defines special module that provides contrib tarballs from internal npm registry.
+### Should be used only with `NODE_MODULES` macro.
+###
+### @see [FROM_NPM_LOCKFILES()](#macro_FROM_NPM_LOCKFILES)
+### @see [NODE_MODULES()](#macro_NODE_MODULES)
+module NPM_CONTRIBS: _BASE_UNIT {
+ .CMD=TOUCH_UNIT
+ .PEERDIR_POLICY=as_build_from
+ .FINAL_TARGET=no
+ .ALLOWED=FROM_NPM_LOCKFILES
+ .RESTRICTED=PEERDIR
+
+ SET(MODULE_TAG NPM_CONTRIBS)
+
+ MODULE_SUFFIX=.fake
+
+ _BARE_MODULE()
+}
+
+### @usage: FROM_NPM_LOCKFILES(LOCKFILES...) # internal
+###
+### Defines lockfile list for `NPM_CONTRIBS` module.
+###
+### @see [NPM_CONTRIBS()](#module_NPM_CONTRIBS)
+macro FROM_NPM_LOCKFILES(LOCKFILES...) {
+ SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS $LOCKFILES)
+ # See implementation in build/plugins/nots.py
+ _FROM_NPM_LOCKFILES($LOCKFILES)
+}
+
+### @usage: FROM_NPM(NAME VERSION SKY_ID INTEGRITY INTEGRITY_ALGO TARBALL_PATH)
+macro FROM_NPM(NAME, VERSION, SKY_ID, INTEGRITY, INTEGRITY_ALGO, TARBALL_PATH) {
.CMD=${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/fetch_from_npm.py"} ${input;hide:"build/scripts/fetch_from.py"} ${input;hide:"build/scripts/sky.py"} --name $NAME --version $VERSION --sky-id $SKY_ID --integrity $INTEGRITY --integrity-algorithm $INTEGRITY_ALGO --copy-to ${output:TARBALL_PATH} ${requirements;hide:"network:full"} ${kv;hide:"p NP"} ${kv;hide:"pc yellow"}
-}
-
-### @usage: NODE_MODULES()
-###
-### Materializes `node_modules.tar` bundle according to the module's lockfile.
-###
-### @see [NPM_CONTRIBS()](#module_NPM_CONTRIBS)
-macro NODE_MODULES() {
- # See implementation in build/plugins/nots.py
-}
-
-_NODE_MODULES_INPUTS=
-
-macro _NODE_MODULES(IN{input}[], OUT{output}[]) {
- PEERDIR($NPM_CONTRIBS_PATH)
- SET(_NODE_MODULES_INPUTS \${input;hide:node_modules.tar})
-
+}
+
+### @usage: NODE_MODULES()
+###
+### Materializes `node_modules.tar` bundle according to the module's lockfile.
+###
+### @see [NPM_CONTRIBS()](#module_NPM_CONTRIBS)
+macro NODE_MODULES() {
+ # See implementation in build/plugins/nots.py
+}
+
+_NODE_MODULES_INPUTS=
+
+macro _NODE_MODULES(IN{input}[], OUT{output}[]) {
+ PEERDIR($NPM_CONTRIBS_PATH)
+ SET(_NODE_MODULES_INPUTS \${input;hide:node_modules.tar})
+
.CMD=${cwd:BINDIR} $NOTS_TOOL create-node-modules $NOTS_TOOL_BASE_ARGS --pnpm-script $PNPM_SCRIPT --contribs $NPM_CONTRIBS_PATH ${input;hide:IN} ${output;global;hide:OUT} ${kv;hide:"p NM"} ${kv;hide:"pc yellow"}
-}
-
-module _TS_BASE_UNIT: _BASE_UNIT {
- SET(MODULE_TAG TS)
- SET(PEERDIR_TAGS TS NPM_CONTRIBS)
-
- PEERDIR(build/platform/nodejs)
- PEERDIR(build/external_resources/pnpm)
- PEERDIR(build/external_resources/typescript)
-
- MODULE_SUFFIX=.fake
-
- _BARE_MODULE()
-}
-
-TS_CONFIG_PATH=tsconfig.json
-
+}
+
+module _TS_BASE_UNIT: _BASE_UNIT {
+ SET(MODULE_TAG TS)
+ SET(PEERDIR_TAGS TS NPM_CONTRIBS)
+
+ PEERDIR(build/platform/nodejs)
+ PEERDIR(build/external_resources/pnpm)
+ PEERDIR(build/external_resources/typescript)
+
+ MODULE_SUFFIX=.fake
+
+ _BARE_MODULE()
+}
+
+TS_CONFIG_PATH=tsconfig.json
+
TS_COMPILE=${cwd:BINDIR} $NOTS_TOOL compile-ts $NOTS_TOOL_BASE_ARGS --tsc-script $TSC_SCRIPT --config ${input:TS_CONFIG_PATH} $_NODE_MODULES_INPUTS ${output;hide:"package.json"} ${kv;hide:"p FE"} ${kv;hide:"pc yellow"} && $TOUCH_UNIT
-
-### @usage: TS_LIBRARY([name])
-###
-### The TypeScript/JavaScript library module, compiles TypeScript sources to JavaScript.
-### Build results are JavaScript files, typings and source mappings (depending on local tsconfig.json settings).
-###
-### @see [NODE_MODULES()](#macro_NODE_MODULES)
-### @example
-###
-### TS_LIBRARY()
-### SRCS(src/index.ts)
-### NODE_MODULES()
-### END()
-###
-module TS_LIBRARY : _TS_BASE_UNIT {
- .CMD=TS_COMPILE
- .FINAL_TARGET=yes
- .PEERDIR_POLICY=as_build_from
-
- SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS ${CURDIR}/${TS_CONFIG_PATH} ${CURDIR}/package.json)
-
- _TS_CONFIGURE($TS_CONFIG_PATH)
-}
+
+### @usage: TS_LIBRARY([name])
+###
+### The TypeScript/JavaScript library module, compiles TypeScript sources to JavaScript.
+### Build results are JavaScript files, typings and source mappings (depending on local tsconfig.json settings).
+###
+### @see [NODE_MODULES()](#macro_NODE_MODULES)
+### @example
+###
+### TS_LIBRARY()
+### SRCS(src/index.ts)
+### NODE_MODULES()
+### END()
+###
+module TS_LIBRARY : _TS_BASE_UNIT {
+ .CMD=TS_COMPILE
+ .FINAL_TARGET=yes
+ .PEERDIR_POLICY=as_build_from
+
+ SET_APPEND(_MAKEFILE_INCLUDE_LIKE_DEPS ${CURDIR}/${TS_CONFIG_PATH} ${CURDIR}/package.json)
+
+ _TS_CONFIGURE($TS_CONFIG_PATH)
+}