diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b571407..6f4d6c6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: run: nr test - name: Relase Edge - if: github.event_name == 'push' + if: github.event_name == 'push' || github.actor == 'flowko' run: | chmod +x ./scripts/release-edge.sh ./scripts/release-edge.sh diff --git a/build.config.ts b/build.config.ts index d8b41a59..0f679789 100644 --- a/build.config.ts +++ b/build.config.ts @@ -10,5 +10,4 @@ export default defineBuildConfig({ emitCJS: true, inlineDependencies: true, }, - externals: ['vue', 'vue/server-renderer', 'vue-i18n'], }) diff --git a/eslint.config.js b/eslint.config.js index 54ebd8e7..d9908738 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -5,12 +5,14 @@ export default antfu( { ignores: [ // eslint ignore globs here + // 'playground/**/*', ], }, { rules: { // overrides 'node/prefer-global/process': 'off', + 'vars-on-top': 'off', }, }, ) diff --git a/package.json b/package.json index bf7458bb..602ffa1c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vue-email", "type": "module", - "version": "0.8.4", + "version": "0.8.5", "packageManager": "pnpm@8.11.0", "description": "💌 Write email templates with Vue", "author": "David Arenas ", @@ -62,6 +62,7 @@ "build": "unbuild", "dev": "unbuild --stub", "lint": "eslint .", + "lint:fix": "eslint . --fix", "prepublishOnly": "nr build", "release": "bumpp", "start": "esno src/index.ts", @@ -73,10 +74,11 @@ "vue": "^3.3.8" }, "dependencies": { - "@flowko/tw-to-css": "^0.0.6", "@vue-email/cli": "latest", + "@vue-email/tailwind": "^0.0.6", "isomorphic-dompurify": "^1.12.0", "ufo": "^1.3.2", + "vue": "^3.3.8", "vue-i18n": "^9.8.0" }, "devDependencies": { @@ -86,6 +88,7 @@ "@types/html-to-text": "^9.0.4", "@types/node": "^20.10.4", "@types/pretty": "^2.0.3", + "@vitejs/plugin-vue": "^4.5.2", "bumpp": "^9.2.1", "dom-serializer": "^2.0.0", "domutils": "^3.1.0", @@ -102,8 +105,7 @@ "typescript": "^5.3.3", "unbuild": "^2.0.0", "vite": "^5.0.8", - "vitest": "^1.0.4", - "vue": "^3.3.8" + "vitest": "^1.0.4" }, "simple-git-hooks": { "pre-commit": "pnpm lint-staged" diff --git a/playground/.gitignore b/playground/.gitignore new file mode 100644 index 00000000..8ee54e8d --- /dev/null +++ b/playground/.gitignore @@ -0,0 +1,30 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist-ssr +coverage +*.local + +/cypress/videos/ +/cypress/screenshots/ + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +*.tsbuildinfo diff --git a/playground/env.d.ts b/playground/env.d.ts new file mode 100644 index 00000000..11f02fe2 --- /dev/null +++ b/playground/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/playground/index.html b/playground/index.html new file mode 100644 index 00000000..a8885448 --- /dev/null +++ b/playground/index.html @@ -0,0 +1,13 @@ + + + + + + + Vite App + + +
+ + + diff --git a/playground/package.json b/playground/package.json new file mode 100644 index 00000000..f9653c69 --- /dev/null +++ b/playground/package.json @@ -0,0 +1,30 @@ +{ + "name": "playground", + "type": "module", + "version": "0.0.0", + "private": true, + "scripts": { + "dev": "vite", + "build": "run-p type-check \"build-only {@}\" --", + "preview": "vite preview", + "build-only": "vite build", + "type-check": "vue-tsc --build --force" + }, + "dependencies": { + "vue": "^3.3.11", + "vue-email": "workspace:*" + }, + "devDependencies": { + "@tsconfig/node18": "^18.2.2", + "@types/node": "^18.19.3", + "@vitejs/plugin-vue": "^4.5.2", + "@vue/tsconfig": "^0.5.0", + "autoprefixer": "^10.4.16", + "npm-run-all2": "^6.1.1", + "postcss": "^8.4.32", + "tailwindcss": "^3.3.6", + "typescript": "~5.3.0", + "vite": "^5.0.10", + "vue-tsc": "^1.8.25" + } +} diff --git a/playground/postcss.config.js b/playground/postcss.config.js new file mode 100644 index 00000000..2e7af2b7 --- /dev/null +++ b/playground/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/playground/public/favicon.ico b/playground/public/favicon.ico new file mode 100644 index 00000000..df36fcfb Binary files /dev/null and b/playground/public/favicon.ico differ diff --git a/playground/src/App.vue b/playground/src/App.vue new file mode 100644 index 00000000..8276d217 --- /dev/null +++ b/playground/src/App.vue @@ -0,0 +1,25 @@ + + +