Skip to content

Commit

Permalink
feat(prime-vue): implement prime vue as ui suite (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Jan 10, 2024
1 parent 5c535cf commit fa8cadb
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 34 deletions.
4 changes: 1 addition & 3 deletions app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<template>
<div>
Hello World!
</div>
<div />
</template>
2 changes: 1 addition & 1 deletion config/eslint/config/eslint.config-files-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { OFF } from "../eslint.constants.mjs";
const ESLINT_CONFIG_FILES_CONFIG = {
files: [
".releaserc.js",
"eslint.config.mjs",
"eslint.config.js",
"nuxt.config.ts",
"config/**/*.{js,mjs,ts}",
],
Expand Down
5 changes: 4 additions & 1 deletion config/eslint/config/eslint.typescript-config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import TypeScriptPlugin from "@typescript-eslint/eslint-plugin";
import { ERROR, OFF, NAMING_CONVENTION_DEFAULT_CONFIG, ALWAYS, NEVER } from "../eslint.constants.mjs";

const ESLINT_TYPESCRIPT_CONFIG = Object.freeze({
files: ["**/*.ts"],
files: [
"nuxt.config.ts",
"**/*.ts",
],
plugins: { "@typescript-eslint": TypeScriptPlugin },
languageOptions: {
parser: TypescriptParser,
Expand Down
File renamed without changes.
17 changes: 16 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
import { defineNuxtConfig } from "nuxt/config";

export default defineNuxtConfig({
modules: ["@nuxt/test-utils/module"],
modules: [
"@nuxt/test-utils/module",
"nuxt-primevue",
],
css: ["primevue/resources/themes/bootstrap4-dark-blue/theme.css"],
primevue: {
components: {
prefix: "VuePrime",
include: ["Button"],
},
directives: {
prefix: "p-",
include: ["Tooltip"],
},
composables: { include: [] },
},
devtools: { enabled: true },
});
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare",
"lint": "ESLINT_USE_FLAT_CONFIG=true npx eslint --config eslint.config.mjs .",
"lint:fix": "ESLINT_USE_FLAT_CONFIG=true npx eslint --config eslint.config.mjs --fix .",
"lint": "ESLINT_USE_FLAT_CONFIG=true npx eslint --config eslint.config.js .",
"lint:fix": "ESLINT_USE_FLAT_CONFIG=true npx eslint --config eslint.config.js --fix .",
"lint:staged:fix": "ESLINT_USE_FLAT_CONFIG=true lint-staged -c config/lint-staged/.lintstagedrc.json",
"test:unit": "NODE_ENV=test vitest --config config/vitest/vitest.unit-config.ts",
"test:unit:watch": "NODE_ENV=test vitest --watch --config config/vitest/vitest.unit-config.ts",
Expand Down Expand Up @@ -74,6 +74,7 @@
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"nuxt": "^3.9.0",
"nuxt-primevue": "^0.2.2",
"playwright-core": "^1.40.1",
"semantic-release": "^22.0.12",
"semantic-release-export-data": "^1.0.1",
Expand All @@ -86,7 +87,8 @@
},
"dependencies": {
"is-ci": "^3.0.1",
"playwright": "^1.40.1"
"playwright": "^1.40.1",
"primevue": "^3.46.0"
},
"engines": {
"node": ">=21.0.0"
Expand Down
49 changes: 24 additions & 25 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fa8cadb

Please sign in to comment.