lanjianrong 4 년 전
부모
커밋
6ad29edc7b
5개의 변경된 파일26개의 추가작업 그리고 0개의 파일을 삭제
  1. 15 0
      deploy.config.js
  2. 2 0
      package.json
  3. 0 0
      src/services/index.ts
  4. 9 0
      src/services/typings.d.ts
  5. 0 0
      src/services/user.ts

+ 15 - 0
deploy.config.js

@@ -0,0 +1,15 @@
+module.exports = {
+  win: {
+    script: 'npm run build',
+    host: '192.168.1.76',
+    port: 22,
+    username: 'zongheng',
+    password: 'SmartCost#*%)888',
+    localPath: 'dist',
+    remotePath: '/mnt/html/cld2/console',
+    needEmail: false,
+    addressee: '',
+    title: '',
+    content: ''
+  }
+}

+ 2 - 0
package.json

@@ -94,6 +94,8 @@
     "enzyme": "^3.11.0",
     "eslint": "^7.1.0",
     "eslint-plugin-javascript": "^1.3.4",
+    "eslint-plugin-jsx": "^0.1.0",
+    "eslint-plugin-typescript": "^0.14.0",
     "express": "^4.17.1",
     "gh-pages": "^3.0.0",
     "jsdom-global": "^3.0.2",

+ 0 - 0
src/services/index.ts


+ 9 - 0
src/services/typings.d.ts

@@ -0,0 +1,9 @@
+// @ts-ignore
+/* eslint-disable */
+
+declare namespace API {
+  type User = {
+    username: string
+    account: string
+  }
+}

+ 0 - 0
src/services/user.ts