From b15c87d62fd33ceca8026e43fb52847839e2a927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Thu, 9 Nov 2023 17:26:31 +0800 Subject: [PATCH] feat: init vapor package --- packages/compiler-vapor/LICENSE | 21 ++++++++++ packages/compiler-vapor/README.md | 4 ++ .../__tests__/reactivityTransform.spec.ts | 3 ++ packages/compiler-vapor/package.json | 40 +++++++++++++++++++ packages/compiler-vapor/src/index.ts | 1 + pnpm-lock.yaml | 22 ++++++++++ 6 files changed, 91 insertions(+) create mode 100644 packages/compiler-vapor/LICENSE create mode 100644 packages/compiler-vapor/README.md create mode 100644 packages/compiler-vapor/__tests__/reactivityTransform.spec.ts create mode 100644 packages/compiler-vapor/package.json create mode 100644 packages/compiler-vapor/src/index.ts diff --git a/packages/compiler-vapor/LICENSE b/packages/compiler-vapor/LICENSE new file mode 100644 index 000000000..15f1f7e7a --- /dev/null +++ b/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. diff --git a/packages/compiler-vapor/README.md b/packages/compiler-vapor/README.md new file mode 100644 index 000000000..c09888880 --- /dev/null +++ b/packages/compiler-vapor/README.md @@ -0,0 +1,4 @@ +# @vue/compiler-vapor + +> Note: +> Work in progress. Do not use yet. diff --git a/packages/compiler-vapor/__tests__/reactivityTransform.spec.ts b/packages/compiler-vapor/__tests__/reactivityTransform.spec.ts new file mode 100644 index 000000000..730cbb180 --- /dev/null +++ b/packages/compiler-vapor/__tests__/reactivityTransform.spec.ts @@ -0,0 +1,3 @@ +test('basic', () => { + // +}) diff --git a/packages/compiler-vapor/package.json b/packages/compiler-vapor/package.json new file mode 100644 index 000000000..8f656f4ae --- /dev/null +++ b/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" + } +} diff --git a/packages/compiler-vapor/src/index.ts b/packages/compiler-vapor/src/index.ts new file mode 100644 index 000000000..21ec276fc --- /dev/null +++ b/packages/compiler-vapor/src/index.ts @@ -0,0 +1 @@ +export const foo = 'bar' diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a6ef2541c..f048d88c0 100644 --- a/pnpm-lock.yaml +++ b/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':