Skip to content

Commit aa3ec7f

Browse files
authored
Remove unnecessary code from the template (#198)
Fixes #193, #197
1 parent 9c440a6 commit aa3ec7f

12 files changed

+558
-710
lines changed

.github/dependabot.yml

-11
This file was deleted.

.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cache:
1818
test:
1919
stage: test
2020
image:
21-
name: cypress/included:8.5.0
21+
name: cypress/included:8.7.0
2222
entrypoint: ['']
2323
script:
2424
# Uncomment for debugging

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.9.0 (2021-10-28)
4+
- Fix: removed unnecessary code ([#193](https://github.com/Uninen/vite-ts-tailwind-starter/issues/193))
5+
- Chore: bump deps.
6+
37
## 1.8.0 (2021-10-05)
48
- Feat: added configuration and example for Cypress component testing. Thank You [@ItsNothingPersonal](https://github.com/ItsNothingPersonal) for the contribution. (#188)
59
- Tooling: replaced `.prettierrc` with `eslint-config-prettier` to consolidate tool configurations.

package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vite-ts-tailwind-starter",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"scripts": {
55
"dev": "vite",
66
"build": "vite build",
@@ -18,30 +18,30 @@
1818
"vuex": "~4.0"
1919
},
2020
"devDependencies": {
21-
"@cypress/vite-dev-server": "~2.1",
21+
"@cypress/vite-dev-server": "~2.2",
2222
"@cypress/vue": "~3.0",
23-
"@tailwindcss/aspect-ratio": "~0.2",
23+
"@tailwindcss/aspect-ratio": "~0.3",
2424
"@tailwindcss/forms": "~0.3",
2525
"@tailwindcss/line-clamp": "~0.2",
2626
"@tailwindcss/typography": "~0.4",
27-
"@typescript-eslint/eslint-plugin": "~4",
28-
"@typescript-eslint/parser": "~4",
27+
"@typescript-eslint/eslint-plugin": "~5",
28+
"@typescript-eslint/parser": "~5",
2929
"@vitejs/plugin-vue": "~1.9",
3030
"@vue/eslint-config-standard": "~6.1",
31-
"@vue/eslint-config-typescript": "~7.0",
32-
"autoprefixer": "~10.3",
33-
"cypress": "~8.5",
34-
"eslint": "~7",
31+
"@vue/eslint-config-typescript": "~8",
32+
"autoprefixer": "~10",
33+
"cypress": "~8.7",
34+
"eslint": "~8.1",
3535
"eslint-config-prettier": "~8.3",
36-
"eslint-plugin-import": "~2.24",
36+
"eslint-plugin-import": "~2",
3737
"eslint-plugin-node": "~11.1",
3838
"eslint-plugin-promise": "~5.1",
3939
"eslint-plugin-vue": "~7",
4040
"postcss": "~8.3",
41-
"postcss-nesting": "~8.0",
41+
"postcss-nesting": "~9",
4242
"tailwindcss": "~2.2",
4343
"typescript": "~4.4",
4444
"vite": "~2.6",
4545
"wait-on": "~6.0"
4646
}
47-
}
47+
}

src/assets/index.postcss

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
@tailwind base;
2-
32
@tailwind components;
4-
53
@tailwind utilities;

src/pages/BaseTemplate.vue src/components/BaseTemplate.vue

+40-19
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,58 @@
11
<template>
22
<header class="container px-4 mx-auto mt-6 prose-sm md:px-6 md:prose">
33
<h1 class="!mb-0 font-sans text-4xl font-black">
4-
Vite + Vue 3 + TypeScript + Tailwind + Cypress Starter Template v{{
5-
VERSION
6-
}}
4+
Vite + Vue 3 + TypeScript + Tailwind + Cypress Starter Template v{{ VERSION }}
75
</h1>
86
<p class="pb-4 text-xl leading-relaxed tracking-wide text-gray-700 md:pb-6">
97
Opinionated, production ready template for Vite and Vue 3
108
</p>
9+
<div
10+
class="github-ribbon"
11+
style="
12+
position: absolute;
13+
right: 0px;
14+
top: 0px;
15+
width: 150px;
16+
height: 150px;
17+
overflow: hidden;
18+
z-index: 99999;
19+
"
20+
>
21+
<a
22+
style="
23+
display: inline-block;
24+
width: 200px;
25+
overflow: hidden;
26+
padding: 6px 0px;
27+
text-align: center;
28+
transform: rotate(45deg);
29+
text-decoration: none;
30+
color: rgb(255, 255, 255);
31+
position: inherit;
32+
top: 45px;
33+
right: -40px;
34+
border-width: 1px 0px;
35+
border-style: dotted;
36+
border-color: rgba(255, 255, 255, 0.7);
37+
font: 700 13px 'Helvetica Neue', Helvetica, Arial, sans-serif;
38+
box-shadow: rgba(0, 0, 0, 0.5) 0px 2px 3px 0px;
39+
background-color: rgb(170, 0, 0);
40+
"
41+
href="https://github.com/Uninen/vite-ts-tailwind-starter"
42+
>Fork me on GitHub</a
43+
>
44+
</div>
1145
</header>
1246
<main class="container mx-auto">
1347
<div class="p-4 mx-auto prose bg-white md:px-6 prose-indigo sm:rounded-md">
1448
<slot></slot>
1549
</div>
16-
<nav class="container text-2xl">
17-
<ul class="flex items-center justify-center mt-6 space-x-8 list-none">
18-
<li>
19-
<router-link class="hover:underline" to="/">Homepage</router-link>
20-
</li>
21-
<li>
22-
<router-link class="hover:underline" to="/about/">About</router-link>
23-
</li>
24-
</ul>
25-
</nav>
2650
</main>
27-
<footer class="container py-6 mx-auto mt-6 text-sm text-center text-gray-700">
51+
<footer class="container py-6 mx-auto text-sm text-center text-gray-700">
2852
<p>
2953
Vite-ts-tailwind-starter by
30-
<a class="underline" href="https://twitter.com/uninen">@Uninen</a> &copy;
31-
2020-{{ thisYear }}.
32-
<template v-if="BUILD_DATE">
33-
Site built {{ BUILD_DATE.toLocaleDateString() }}.
34-
</template>
54+
<a class="underline" href="https://twitter.com/uninen">@Uninen</a> &copy; 2020-{{ thisYear }}.
55+
<template v-if="BUILD_DATE"> Site built {{ BUILD_DATE.toLocaleDateString() }}. </template>
3556
<template v-else> Development mode. </template>
3657
</p>
3758
</footer>

src/components/HelloWorld.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { mount } from '@cypress/vue'
22
import HelloWorld from './HelloWorld.vue'
33

4-
it('Hello World', () => {
4+
it('Passes msg prop correctly', () => {
55
mount(HelloWorld, {
66
propsData: {
77
msg: 'Hello World',

src/main.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { createApp } from 'vue'
2-
import BaseTemplate from '@/pages/BaseTemplate.vue'
32
import App from './App.vue'
43
import router from './router'
54
import { createHead } from '@vueuse/head'
@@ -9,8 +8,6 @@ import './assets/index.postcss'
98
const head = createHead()
109
const app = createApp(App)
1110

12-
app.component('BaseTemplate', BaseTemplate)
13-
1411
app.use(store)
1512
app.use(router)
1613
app.use(head)

src/pages/About.vue

-5
This file was deleted.

0 commit comments

Comments
 (0)