using js-code for py.
This commit is contained in:
parent
2b9f5d6913
commit
4f7933d21a
1
.gitignore
vendored
1
.gitignore
vendored
@ -82,6 +82,7 @@ typings/
|
||||
.nuxt
|
||||
dist-nodejs
|
||||
dist-browser
|
||||
dist-py
|
||||
temp
|
||||
|
||||
# Gatsby files
|
||||
|
@ -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
|
@ -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: /(`.*?`)|(".*?")|(\'.*?\')/
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user