
12 changed files with 171 additions and 7186 deletions
@ -0,0 +1,4 @@ |
|||
node_modules |
|||
buildConfig |
|||
.vscode |
|||
.github |
@ -0,0 +1,28 @@ |
|||
{ |
|||
"root": true, |
|||
"env": { |
|||
"browser": true, |
|||
"commonjs": true, |
|||
"es6": true, |
|||
"node": true, |
|||
"jest": true |
|||
}, |
|||
"parser": "@typescript-eslint/parser", |
|||
"extends": ["prettier", "plugin:@typescript-eslint/recommended"], |
|||
"parserOptions": { |
|||
"ecmaFeatures": { |
|||
"experimentalObjectRestSpread": true, |
|||
"jsx": true |
|||
}, |
|||
"sourceType": "module" |
|||
}, |
|||
"plugins": ["@typescript-eslint/eslint-plugin"], |
|||
"rules": { |
|||
"@typescript-eslint/no-unused-vars": 0, |
|||
"react/display-name": 0, |
|||
"react/prop-types": 0, |
|||
"@typescript-eslint/adjacent-overload-signatures": 0, |
|||
"@typescript-eslint/ban-types": 0, |
|||
"@typescript-eslint/no-empty-interface": 0 |
|||
} |
|||
} |
@ -0,0 +1,10 @@ |
|||
{ |
|||
"printWidth": 140, |
|||
"semi": true, |
|||
"useTabs": true, |
|||
"tabWidth": 4, |
|||
"arrowParens": "always", |
|||
"singleQuote": true, |
|||
"trailingComma": "none", |
|||
"endOfLine": "auto" |
|||
} |
File diff suppressed because it is too large
@ -1,34 +1,38 @@ |
|||
{ |
|||
"name": "dpa-andriod-starter", |
|||
"version": "2.5.3", |
|||
"description": "一个用来快速开始编写 dpa-andriod 脚本的模板", |
|||
"main": "index.js", |
|||
"scripts": { |
|||
"build": "webpack --config ./buildConfig/webpack.dev.js" |
|||
}, |
|||
"keywords": [ |
|||
"dpa-andriod", |
|||
"autojs" |
|||
], |
|||
"author": "batu1579", |
|||
"license": "MPL-2.0", |
|||
"devDependencies": { |
|||
"@babel/core": "^7.18.0", |
|||
"@babel/plugin-proposal-object-rest-spread": "^7.18.9", |
|||
"@babel/plugin-transform-runtime": "^7.18.10", |
|||
"@babel/preset-env": "^7.18.10", |
|||
"babel-loader": "^8.2.5", |
|||
"clean-webpack-plugin": "^4.0.0", |
|||
"core-js": "^3.22.6", |
|||
"ts-loader": "^9.3.0", |
|||
"typescript": "^4.6.4", |
|||
"webpack": "^5.72.1", |
|||
"webpack-cli": "^4.9.2", |
|||
"webpack-merge": "^5.8.0" |
|||
}, |
|||
"dependencies": { |
|||
"@babel/preset-react": "^7.18.6", |
|||
"@babel/runtime": "^7.18.9", |
|||
"babel-preset-mobx": "^2.0.0" |
|||
} |
|||
"name": "dpa-andriod-starter", |
|||
"version": "1.0.0", |
|||
"description": "一个用来快速开始编写 dpa-andriod 脚本的模板", |
|||
"main": "index.js", |
|||
"scripts": { |
|||
"build": "webpack --config ./buildConfig/webpack.dev.js" |
|||
}, |
|||
"keywords": [ |
|||
"dpa-andriod", |
|||
"autojs" |
|||
], |
|||
"devDependencies": { |
|||
"@babel/core": "^7.18.0", |
|||
"@babel/plugin-proposal-object-rest-spread": "^7.18.9", |
|||
"@babel/plugin-transform-runtime": "^7.18.10", |
|||
"@babel/preset-env": "^7.18.10", |
|||
"@typescript-eslint/eslint-plugin": "^5.4.0", |
|||
"@typescript-eslint/parser": "^5.4.0", |
|||
"babel-loader": "^8.2.5", |
|||
"clean-webpack-plugin": "^4.0.0", |
|||
"core-js": "^3.22.6", |
|||
"eslint": "8", |
|||
"eslint-config-prettier": "^8.3.0", |
|||
"eslint-plugin-prettier": "^4.0.0", |
|||
"prettier": "^2.4.1", |
|||
"ts-loader": "^9.3.0", |
|||
"typescript": "^4.6.4", |
|||
"webpack": "^5.72.1", |
|||
"webpack-cli": "^4.9.2", |
|||
"webpack-merge": "^5.8.0" |
|||
}, |
|||
"dependencies": { |
|||
"@babel/preset-react": "^7.18.6", |
|||
"@babel/runtime": "^7.18.9", |
|||
"babel-preset-mobx": "^2.0.0" |
|||
} |
|||
} |
|||
|
@ -0,0 +1,15 @@ |
|||
import { Events } from 'events'; |
|||
|
|||
export class DPBase extends Events { |
|||
constructor() { |
|||
super(); |
|||
} |
|||
|
|||
init() { |
|||
console.log('init'); |
|||
} |
|||
|
|||
start() { |
|||
console.log('start'); |
|||
} |
|||
} |
@ -1 +1,9 @@ |
|||
id('res').bounds(0, 0, 100, 100).visibleToUser() |
|||
import { DPBase } from './base'; |
|||
|
|||
class Hongguo extends DPBase { |
|||
constructor() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
const hongguo = new Hongguo().start(); |
|||
|
Loading…
Reference in new issue