Skip to content
Snippets Groups Projects
Commit b54a3b84 authored by ko_oler's avatar ko_oler
Browse files

fix .gitlab-ci.yml

parent 25b9c90c
No related branches found
No related tags found
1 merge request!1Добавлена генерация файлов для frontend в Makefile и публикацию npm-пакета
Pipeline #19067 failed
......@@ -54,30 +54,30 @@ generate_index() {
}
echo "---deleting existing *.d.ts, *.d.ts.map, *.js, *.js.map files"
find ./clients/*/**/ -path '*.d.ts' -delete
find ./clients/*/**/ -path '*.d.ts.map' -delete
find ./clients/*/**/ -path '*.js' -delete
find ./clients/*/**/ -path '*.js.map' -delete
find ./clients/*/**/ -path '*.ts.bak' -delete
find ./clients -path '*.d.ts' -delete
find ./clients -path '*.d.ts.map' -delete
find ./clients -path '*.js' -delete
find ./clients -path '*.js.map' -delete
find ./clients -path '*.ts.bak' -delete
find builds/perxis/perxis-js/clients/*/**/ -path '*.d.ts' -delete
find builds/perxis/perxis-js/clients/*/**/ -path '*.d.ts.map' -delete
find builds/perxis/perxis-js/clients/*/**/ -path '*.js' -delete
find builds/perxis/perxis-js/clients/*/**/ -path '*.js.map' -delete
find builds/perxis/perxis-js/clients/*/**/ -path '*.ts.bak' -delete
find builds/perxis/perxis-js/clients -path '*.d.ts' -delete
find builds/perxis/perxis-js/clients -path '*.d.ts.map' -delete
find builds/perxis/perxis-js/clients -path '*.js' -delete
find builds/perxis/perxis-js/clients -path '*.js.map' -delete
find builds/perxis/perxis-js/clients -path '*.ts.bak' -delete
echo "---generating index.ts files"
ts_files=$(find ./clients/**/ -name '*.ts')
ts_files=$(find builds/perxis/perxis-js/clients/**/ -name '*.ts')
ts_files_array=($ts_files)
generate_index "${ts_files_array[@]}"
echo "---generating *.d.ts, *.d.ts.map, *.js, *.js.map files"
npm i protobufjs@6.11.3
tsc --project ./config --declaration --declarationMap --sourceMap --rootDir ./clients
tsc --project builds/perxis/perxis-js/config --declaration --declarationMap --sourceMap --rootDir builds/perxis/perxis-js/clients
echo "---deleting created tmp files"
npm uninstall protobufjs@6.11.3
find ./clients -name 'index.ts' -delete
find ./clients/*/** -name 'index.ts' -delete
find ./ -maxdepth 1 -name '*.json' -delete
find builds/perxis/perxis-js/clients -name 'index.ts' -delete
find builds/perxis/perxis-js/clients/*/** -name 'index.ts' -delete
find builds/perxis/perxis-js/ -maxdepth 1 -name '*.json' -delete
echo "---process finished"
\ No newline at end of file
......@@ -98,6 +98,6 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["../clients/**/*"],
"exclude": ["../config/**/*"]
"include": ["builds/perxis/perxis-js/clients/**/*"],
"exclude": ["builds/perxis/perxis-js/config/**/*"]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment