Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite 5 and updated all packages with eslint flat config #274

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
09bbf33
chore: manually bump dependencies
ElMassimo Oct 10, 2023
4173308
feat: replace @vueuse/head with @unhead/vue, bump target to node18
ElMassimo Oct 10, 2023
a88ee6f
fix: update to use jsx-dev-runtime
ElMassimo Nov 18, 2023
417c641
Vite 5 and updated all packages with eslint flat config
TechAkayy Jul 27, 2024
a2d2f3e
Updated package.json with correct types reference
TechAkayy Jul 27, 2024
4d9f77f
Removed @vue-macros/reactivity-transform
TechAkayy Jul 27, 2024
034d150
Added missing imports in docs
TechAkayy Jul 27, 2024
d1b142b
Configured @antfu/eslint-config and added lint:fix to all packages
TechAkayy Jul 31, 2024
90b6382
Linted with `lint:fix:all` and applied non-destructive eslint-disable…
TechAkayy Jul 31, 2024
d4cec23
Updated pnpm to latest in packageManager and pinned typescript to tsu…
TechAkayy Aug 1, 2024
71d48d5
vite 5 breaking change - manifest within .vite subfolder within outDir
TechAkayy Aug 1, 2024
386ca4f
vite 5 enable cssCodeSplit in client bundle to obtain styles
TechAkayy Aug 1, 2024
519e96d
vue 3.4 breaking change - new template parser & custom block scriptCl…
TechAkayy Aug 1, 2024
483443c
Migrated sample apps from windicss to unocss
TechAkayy Aug 1, 2024
f695fc5
Added eslint-plugin for solid & svelte to ensure lint:fix:all cmd wor…
TechAkayy Aug 2, 2024
81f953f
Use dynamic import() to handle both commonjs & esm imports, custom in…
TechAkayy Aug 2, 2024
80dca90
enhance-islands API
TechAkayy Oct 5, 2024
650ee53
enhance-islands API (fixes)
TechAkayy Oct 5, 2024
f9ea533
enhanceIslands (docs)
TechAkayy Oct 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"Vue.volar",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"antfu.unocss"
]
}
49 changes: 48 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,51 @@
{
// As per https://github.com/antfu/eslint-config#vs-code-support-auto-fix-on-save
"prettier.enable": false,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},

// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off", "fixable": true },
{ "rule": "format/*", "severity": "off", "fixable": true },
{ "rule": "*-indent", "severity": "off", "fixable": true },
{ "rule": "*-spacing", "severity": "off", "fixable": true },
{ "rule": "*-spaces", "severity": "off", "fixable": true },
{ "rule": "*-order", "severity": "off", "fixable": true },
{ "rule": "*-dangle", "severity": "off", "fixable": true },
{ "rule": "*-newline", "severity": "off", "fixable": true },
{ "rule": "*quotes", "severity": "off", "fixable": true },
{ "rule": "*semi", "severity": "off", "fixable": true }
],

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"css",
"less",
"scss",
"pcss",
"postcss"
],
"typescript.tsdk": "node_modules/typescript/lib",
"files.exclude": {
"**/dist": true
Expand All @@ -9,4 +56,4 @@
"search.exclude": {
"**/dist": true
}
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Visit the [documentation website][docs] to check out the [guides][guide] and sea
- [Vite] and [Vue]: for enabling an amazing development experience
- [Astro](https://astro.build): for sharing a novel way to define islands
- [MDX]: provides amazing flexibility when processing Markdown
- [vue-router], [@vueuse/head], and [vite-plugin-pages]: the backbone of this library
- [vue-router], [@unhead/vue], and [vite-plugin-pages]: the backbone of this library
- [unplugin-vue-components]: allows you to avoid the boilerplate
- [VitePress] and [vite-ssg]: for their different ideas on SSR

Expand All @@ -96,5 +96,5 @@ Visit the [documentation website][docs] to check out the [guides][guide] and sea
[VitePress]: https://vitepress.vuejs.org/
[vite-ssg]: https://github.com/antfu/vite-ssg
[vue-router]: https://next.router.vuejs.org/
[@vueuse/head]: https://github.com/vueuse/head
[@unhead/vue]: https://github.com/unjs/unhead

1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
dist
.iles-ssg-temp
.vitepress/metadata.json
cypress/videos
cypress/screenshots
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ This is the source code of the [documentation website for îles][docs].

It's built using [îles].

[__Live Website__][docs]
[**Live Website**][docs]
10 changes: 6 additions & 4 deletions docs/cypress/e2e/dark-mode.cypress.cy.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
import { visitHome, navigateTo, goBackHome, assertPage } from './helpers'
import { describe, expect, it } from 'vitest'
import { cy } from 'cypress'
import { assertPage, goBackHome, navigateTo, visitHome } from './helpers'

describe('Dark Mode', () => {
const toggleTheme = () => {
cy.get(`[aria-label="Toggle theme"]`).click()
}

const assertTheme = (theme) =>
const assertTheme = theme =>
cy.get('html').then(html =>
expect(html.hasClass('dark')).to.equal(theme === 'dark'))

it('can toggle on and off', () => {
visitHome()
cy.get('html').then(html => {
if (html.hasClass('dark')) toggleTheme()
cy.get('html').then((html) => {
if (html.hasClass('dark')) { toggleTheme() }
assertTheme('light')
})

Expand Down
6 changes: 4 additions & 2 deletions docs/cypress/e2e/docsearch.cypress.cy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { visitHome, navigateTo, goBackHome, assertPage } from './helpers'
import { describe, it } from 'vitest'
import { cy } from 'cypress'
import { assertPage, goBackHome, navigateTo, visitHome } from './helpers'

describe('DocSearch', () => {
const openSearchModal = () => {
Expand All @@ -15,7 +17,7 @@ describe('DocSearch', () => {
const searchModal = () =>
cy.get('.DocSearch-Modal')

const closeSearchModal = () =>{
const closeSearchModal = () => {
cy.get('body').type('{esc}')
searchModal().should('not.exist')
}
Expand Down
4 changes: 3 additions & 1 deletion docs/cypress/e2e/helpers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { cy } from 'cypress'

export const assertPage = ({ title, content }) => {
cy.get('h1').should('contain', title)
if (content) cy.get('p').should('contain', content)
if (content) { cy.get('p').should('contain', content) }
}

export const navigateTo = (title) => {
Expand Down
4 changes: 3 additions & 1 deletion docs/cypress/e2e/home.cypress.cy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { visitHome, navigateTo, assertPage, goBackHome } from './helpers'
import { describe, it } from 'vitest'
import { cy } from 'cypress'
import { assertPage, goBackHome, navigateTo, visitHome } from './helpers'

describe('The Home Page', () => {
it('successfully loads', () => {
Expand Down
4 changes: 3 additions & 1 deletion docs/cypress/e2e/sidebar.cypress.cy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { visit, navigateTo, goBackHome, assertPage, waitForHydration } from './helpers'
import { describe, it, test } from 'vitest'
import { cy } from 'cypress'
import { assertPage, visit, visitHome, waitForHydration } from './helpers'

describe('Sidebar Toggle', () => {
const sidebar = () =>
Expand Down
2 changes: 1 addition & 1 deletion docs/icons/arrowRight.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/icons/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading