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
|
.nuxt
|
||||||
dist-nodejs
|
dist-nodejs
|
||||||
dist-browser
|
dist-browser
|
||||||
|
dist-py
|
||||||
temp
|
temp
|
||||||
|
|
||||||
# Gatsby files
|
# Gatsby files
|
||||||
|
@ -7,4 +7,4 @@ cd "$( dirname -- "$0"; )"
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
rm -rf temp
|
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.DIGIT
|
||||||
%import common.INT
|
%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"
|
MULTI_LINE_COMMENT: "/**" /(.|\n)*?/ "*/\n"
|
||||||
COMMENT: "//" /.*/
|
COMMENT: "//" /.*/
|
||||||
STR: /(`.*?`)|(".*?")|(\'.*?\')/
|
STR: /(`.*?`)|(".*?")|(\'.*?\')/
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES5",
|
"target": "ES2021",
|
||||||
|
"lib": [
|
||||||
|
"ES2021"
|
||||||
|
],
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"allowUnusedLabels": true,
|
"allowUnusedLabels": true,
|
||||||
"charset": "utf-8",
|
"charset": "utf-8",
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"module": "None",
|
"module": "ES2022",
|
||||||
"noFallthroughCasesInSwitch": false,
|
"noFallthroughCasesInSwitch": false,
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
"outDir": "./dist-py",
|
"outDir": "./dist-py",
|
||||||
|
Loading…
Reference in New Issue
Block a user