using js-code for py.

This commit is contained in:
Martin Karkowski 2022-07-17 22:50:00 +02:00
parent 2b9f5d6913
commit 4f7933d21a
4 changed files with 20 additions and 3 deletions

1
.gitignore vendored
View File

@ -82,6 +82,7 @@ typings/
.nuxt
dist-nodejs
dist-browser
dist-py
temp
# Gatsby files

View File

@ -7,4 +7,4 @@ cd "$( dirname -- "$0"; )"
cd ..
rm -rf temp
nope-py-prepare-code --input dist-nodejs --output temp --type js
nope-py-prepare-code --input dist-py --output temp --type js

View File

@ -2,6 +2,19 @@
%import common.DIGIT
%import common.INT
//--------------------------------------------------------------------------
// JS-Ignorers:
//--------------------------------------------------------------------------
%ignore /\"use strict\";/
%ignore /Object.defineProperty(exports, "__esModule", { value: true });/
%ignore /var __(.|\n)*?};/
%ignore /\w+ = __decorate(.|\n)*?\], \w+\);/
%ignore /exports.\w+ = \w+;/
type_of_function: "void 0"
//--------------------------------------------------------------------------
//--------------------------------------------------------------------------
MULTI_LINE_COMMENT: "/**" /(.|\n)*?/ "*/\n"
COMMENT: "//" /.*/
STR: /(`.*?`)|(".*?")|(\'.*?\')/

View File

@ -1,11 +1,14 @@
{
"compilerOptions": {
"target": "ES5",
"target": "ES2021",
"lib": [
"ES2021"
],
"allowJs": true,
"allowUnusedLabels": true,
"charset": "utf-8",
"experimentalDecorators": true,
"module": "None",
"module": "ES2022",
"noFallthroughCasesInSwitch": false,
"noImplicitReturns": true,
"outDir": "./dist-py",