Browse Source

feature: fc

xiongxt 2 years ago
parent
commit
5f83dd5bf4
5 changed files with 38 additions and 0 deletions
  1. 2 0
      .gitignore
  2. 16 0
      package.json
  3. 3 0
      src/index.ts
  4. 9 0
      tsconfig.json
  5. 8 0
      yarn.lock

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+/node_modules
+/lib

+ 16 - 0
package.json

@@ -0,0 +1,16 @@
+{
+  "name": "ludash",
+  "version": "1.0.0",
+  "description": "toolkit",
+  "main": "index.js",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1",
+    "lib": "tsc ./src/index.ts"
+  },
+  "repository": "https://gitee.com/swust_0602/ludash.git",
+  "author": "shawn",
+  "license": "ISC",
+  "devDependencies": {
+    "typescript": "^5.1.3"
+  }
+}

+ 3 - 0
src/index.ts

@@ -0,0 +1,3 @@
+export function log(s: string) {
+  console.log(s);
+}

+ 9 - 0
tsconfig.json

@@ -0,0 +1,9 @@
+{
+  "compilerOptions": {
+    "outDir": "./lib",
+    "target": "ES2015",
+    "module": "ES2015",
+    "declaration": true,
+    "declarationDir": "./types"
+  }
+}

+ 8 - 0
yarn.lock

@@ -0,0 +1,8 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+
+typescript@^5.1.3:
+  version "5.1.3"
+  resolved "https://registry.npmmirror.com/typescript/-/typescript-5.1.3.tgz#8d84219244a6b40b6fb2b33cc1c062f715b9e826"
+  integrity sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==