
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", |
"name": "dpa-andriod-starter", |
||||
"version": "2.5.3", |
"version": "1.0.0", |
||||
"description": "一个用来快速开始编写 dpa-andriod 脚本的模板", |
"description": "一个用来快速开始编写 dpa-andriod 脚本的模板", |
||||
"main": "index.js", |
"main": "index.js", |
||||
"scripts": { |
"scripts": { |
||||
"build": "webpack --config ./buildConfig/webpack.dev.js" |
"build": "webpack --config ./buildConfig/webpack.dev.js" |
||||
}, |
}, |
||||
"keywords": [ |
"keywords": [ |
||||
"dpa-andriod", |
"dpa-andriod", |
||||
"autojs" |
"autojs" |
||||
], |
], |
||||
"author": "batu1579", |
"devDependencies": { |
||||
"license": "MPL-2.0", |
"@babel/core": "^7.18.0", |
||||
"devDependencies": { |
"@babel/plugin-proposal-object-rest-spread": "^7.18.9", |
||||
"@babel/core": "^7.18.0", |
"@babel/plugin-transform-runtime": "^7.18.10", |
||||
"@babel/plugin-proposal-object-rest-spread": "^7.18.9", |
"@babel/preset-env": "^7.18.10", |
||||
"@babel/plugin-transform-runtime": "^7.18.10", |
"@typescript-eslint/eslint-plugin": "^5.4.0", |
||||
"@babel/preset-env": "^7.18.10", |
"@typescript-eslint/parser": "^5.4.0", |
||||
"babel-loader": "^8.2.5", |
"babel-loader": "^8.2.5", |
||||
"clean-webpack-plugin": "^4.0.0", |
"clean-webpack-plugin": "^4.0.0", |
||||
"core-js": "^3.22.6", |
"core-js": "^3.22.6", |
||||
"ts-loader": "^9.3.0", |
"eslint": "8", |
||||
"typescript": "^4.6.4", |
"eslint-config-prettier": "^8.3.0", |
||||
"webpack": "^5.72.1", |
"eslint-plugin-prettier": "^4.0.0", |
||||
"webpack-cli": "^4.9.2", |
"prettier": "^2.4.1", |
||||
"webpack-merge": "^5.8.0" |
"ts-loader": "^9.3.0", |
||||
}, |
"typescript": "^4.6.4", |
||||
"dependencies": { |
"webpack": "^5.72.1", |
||||
"@babel/preset-react": "^7.18.6", |
"webpack-cli": "^4.9.2", |
||||
"@babel/runtime": "^7.18.9", |
"webpack-merge": "^5.8.0" |
||||
"babel-preset-mobx": "^2.0.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