Vesan is a Frontend Framework made with Vue 3, TypeScript & Animadio
Includes Axios, Font-Awesome, Recaptcha, PayPal, Sass, TinyMCE, Vitest & Cypress
WARNING: build is not ready yet on the version 3 (alpha mode)
For production ready: use the last version 2
Migration of all scripts from JS to TS in progress (~ 90%)
Migration of the tests from Jest to Vitest in progress too (~ 70%)
Migration from Option API to Composition API soon
Migration of the store from Vuex to Pinia soon
Added e2e tests with Cypress soon too
- vesan
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.
See Vite Configuration Reference.
Use this Template
or
git clone https://github.com/philippebeck/vesan.git
or
Latest Release
NPM : npm i vesan
or
Yarn : yarn add vesan
If you choose to get Vesan from NPM or Yarn : you need to copy Vesan from node_modules/vesan to the root of your App
To configure the frontend constants, replace values :
/src/assets/values.example.js
(then rename it /src/assets/values.js)
npm i
npm start
npm run build
Run Unit Tests with Vitest
npm run test:unit
Run End-to-End Tests with Cypress
npm run test:e2e:dev
This runs the end-to-end tests against the Vite development server. It is much faster than the production build.
But it's still recommended to test the production build with test:e2e
before deploying (e.g. in CI environments):
npm run build
npm run test:e2e
Lint with ESLint
npm run lint
- BtnElt (Link & Button Elements)
- CardElt (Article & Section Elements)
- FieldElt (User Input & User Select Elements)
- FootElt (Footer Element)
- ListElt (List Element)
- MediaElt (Audio, Image, Quote & Video Elements)
- NavElt (Navbar & Sidebar Elements)
- SliderElt (Slider Element)
- TableElt (Table Element)
- ArticleSet (Article Setter)
- GallerySet (Gallery Setter)
- ImageSet (Image Setter)
- LinkSet (Link Setter)
- OrderSet (Order Setter)
- ProductSet (Product Setter)
- ProjectSet (Project Setter)
- UserSet (User Setter)
- HomeView (Home)
- ContactView (Contact)
- LegalView (Legal notice)
- LoginView (Sign in, Sign up, Forgot password)
- ProfileView (User profile)
- ErrorView (Error)
- BlogView (Blog with articles list)
- ArticleView (Article of the blog)
- PortfolioView (Portfolio of projects)
- ShopView (Shop with products list)
- ProductView (Product of the shop)
- BasketView (Basket & order process)
- GalleryView (Galleries list)
- ImageView (Images of a gallery)
- LinkView (Links list)
- Checkers : checkRange(), checkRegex(), checkRole(), checkSlot()
- Fetchers : getData(), postData(), putData(), deleteData()
- Getters : getCats(), getItemName(), getItemsByCat()
- Setters : setError(), setGlobalMeta(), setMeta()
Available Demo :
Available Readme :