Explorar el Código

feat: init vapor package

三咲智子 Kevin Deng hace 2 años
padre
commit
b15c87d62f

+ 21 - 0
packages/compiler-vapor/LICENSE

@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2018-present, Yuxi (Evan) You
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

+ 4 - 0
packages/compiler-vapor/README.md

@@ -0,0 +1,4 @@
+# @vue/compiler-vapor
+
+> Note:
+> Work in progress. Do not use yet.

+ 3 - 0
packages/compiler-vapor/__tests__/reactivityTransform.spec.ts

@@ -0,0 +1,3 @@
+test('basic', () => {
+  //
+})

+ 40 - 0
packages/compiler-vapor/package.json

@@ -0,0 +1,40 @@
+{
+  "name": "@vue/compiler-vapor",
+  "version": "0.0.0",
+  "description": "@vue/compiler-vapor",
+  "main": "dist/compiler-vapor.cjs.js",
+  "files": [
+    "dist"
+  ],
+  "buildOptions": {
+    "formats": [
+      "cjs"
+    ],
+    "prod": false
+  },
+  "types": "dist/compiler-vapor.d.ts",
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/vuejs/core.git",
+    "directory": "packages/compiler-vapor"
+  },
+  "keywords": [
+    "vue"
+  ],
+  "author": "Evan You",
+  "license": "MIT",
+  "bugs": {
+    "url": "https://github.com/vuejs/core/issues"
+  },
+  "homepage": "https://github.com/vuejs/core/tree/dev/packages/compiler-vapor#readme",
+  "dependencies": {
+    "@babel/parser": "^7.23.0",
+    "@vue/compiler-core": "3.3.8",
+    "@vue/shared": "3.3.8",
+    "estree-walker": "^2.0.2",
+    "magic-string": "^0.30.5"
+  },
+  "devDependencies": {
+    "@babel/types": "^7.23.0"
+  }
+}

+ 1 - 0
packages/compiler-vapor/src/index.ts

@@ -0,0 +1 @@
+export const foo = 'bar'

+ 22 - 0
pnpm-lock.yaml

@@ -257,6 +257,28 @@ importers:
         specifier: 3.3.8
         version: link:../shared
 
+  packages/compiler-vapor:
+    dependencies:
+      '@babel/parser':
+        specifier: ^7.23.0
+        version: 7.23.0
+      '@vue/compiler-core':
+        specifier: 3.3.8
+        version: link:../compiler-core
+      '@vue/shared':
+        specifier: 3.3.8
+        version: link:../shared
+      estree-walker:
+        specifier: ^2.0.2
+        version: 2.0.2
+      magic-string:
+        specifier: ^0.30.5
+        version: 0.30.5
+    devDependencies:
+      '@babel/types':
+        specifier: ^7.23.0
+        version: 7.23.0
+
   packages/dts-built-test:
     dependencies:
       '@vue/reactivity':