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

monorepo #62

Merged
merged 3 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
25 changes: 0 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,2 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# custom
temp
146 changes: 13 additions & 133 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,140 +1,20 @@
{
"name": "epic-spinners",
"version": "2.0.0",
"name": "epic-spinners-wrapper",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"private": false,
"description": "Easy to use css spinners collection with vue.js integration.",
"author": "epicmax <[email protected]>",
"homepage": "https://epic-spinners.epicmax.co",
"url": "https://github.com/epicmaxco/epic-spinners",
"repository": {
"type": "git",
"url": "https://github.com/epicmaxco/epic-spinners.git"
},
"bugs": {
"url": "https://github.com/epicmaxco/epic-spinners/issues"
},
"keywords": [
"spinner",
"vuejs",
"vue",
"vue3"
],
"files": [
"dist"
],
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"jsdelivr": "dist/iife/index.js",
"unpkg": "dist/iife/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"import": {
"node": "./dist/esm-node/index.mjs",
"default": "./dist/es/index.js"
},
"require": "./dist/cjs/index.js",
"default": "./dist/es/index.js"
},
"./types": "./dist/types/index.d.ts",
"./css": "./dist/style.css",
"./package.json": "./package.json",
"./dist/*": "./dist/*",
"./*": {
"types": "./dist/types/components/*.vue.d.ts",
"import": {
"node": "./dist/esm-node/components/*.mjs",
"default": "./dist/es/components/*.js"
},
"require": "./dist/cjs/components/*.js",
"default": "./dist/es/components/*.js"
}
},
"sideEffects": [
"*.css"
],
"devDependencies": {},
"private": true,
"scripts": {
"prepare": "husky install",
"dev": "vite",
"build": "tsx build/build.ts",
"types:check": "vue-tsc --noEmit",
"lint:check": "eslint . --ext .ts,.cjs,.js,.vue,.json",
"lint": "npm run lint:check -- --fix",
"lint:style:check": "stylelint ./src/**/*.{vue,css,scss,html,md}",
"lint:style": "npm run lint:style:check --- --fix",
"format:check": "stylelint-config-prettier-check && stylelint-config-prettier-scss-check && prettier . --check",
"format": "prettier . --write --ignore-unknown",
"code:check": "npm run format:check && npm run lint:style:check && npm run lint:check && npm run types:check",
"code:fix": "npm run format && npm run lint:style && npm run lint",
"release": "tsx release-script/release-script.ts"
},
"lint-staged": {
"*.{cjs,js,ts}": [
"prettier --write",
"eslint --fix"
],
"*.vue": [
"prettier --write",
"stylelint --fix",
"eslint --fix"
],
"*.{css,scss,html,md}": [
"prettier --write",
"stylelint --fix"
],
"*.json": [
"prettier --write",
"eslint --fix"
]
},
"peerDependencies": {
"vue": "^3.2.0"
},
"devDependencies": {
"@types/node": "^18.7.13",
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.35.1",
"@vitejs/plugin-vue": "^2.3.3",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^11.0.0",
"autoprefixer": "^10.4.8",
"eslint": "^8.22.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-vue": "^9.4.0",
"husky": "^8.0.1",
"inquirer": "^9.1.2",
"lint-staged": "^13.0.3",
"postcss": "^8.1.0",
"postcss-html": "^1.5.0",
"postcss-markdown": "^1.2.0",
"prettier": "^2.7.1",
"sass": "^1.53.0",
"stylelint": "^14.11.0",
"stylelint-config-html": "^1.1.0",
"stylelint-config-prettier-scss": "^0.0.1",
"stylelint-config-standard-scss": "^5.0.0",
"stylelint-config-standard-vue": "^1.0.0",
"tsx": "^3.9.0",
"typescript": "^4.5.4",
"vite": "^2.9.9",
"vite-plugin-chunk-split": "^0.2.7",
"vue": "^3.2.0",
"vue-eslint-parser": "^9.0.3",
"vue-tsc": "^0.35.0"
"serve:spinners": "yarn workspace epic-spinners dev",
"build:spinners": "yarn workspace epic-spinners build",
"serve:docs": "yarn workspace docs dev",
"build:docs": "yarn workspace docs build"
},
"browserslist": {
"production": [
">0.5%",
"last 2 versions",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
"workspaces": {
"packages": [
"packages/*",
"packages/extensions/*"
]
}
}
24 changes: 24 additions & 0 deletions packages/docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions packages/docs/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
18 changes: 18 additions & 0 deletions packages/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Vue 3 + TypeScript + Vite

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.

## Recommended IDE Setup

- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).

## Type Support For `.vue` Imports in TS

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)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) 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](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:

1. Disable the built-in TypeScript Extension
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
13 changes: 13 additions & 0 deletions packages/docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Epic Spinners</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
30 changes: 30 additions & 0 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "docs",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"bootstrap": "^4.3.1",
"epic-spinners": "latest",
"font-awesome": "^4.7.0",
"normalize.css": "^8.0.1",
"v-clipboard": "^3.0.0-next.1",
"vue": "^3.3.4",
"vue-gtm": "^3.5.0",
"vue-js-modal": "^2.0.1",
"vue-router": "^4.2.4",
"vue-toasted": "^1.1.28",
"vuetify": "^3.3.14"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vue-tsc": "^1.8.5"
}
}
Binary file added packages/docs/public/favicon.ico
Binary file not shown.
24 changes: 24 additions & 0 deletions packages/docs/src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<loaders-header class="container"/>
<router-view class="container"/>
<loaders-footer/>
</template>

<script lang="ts">
import LoadersHeader from './components/LoadersHeader.vue'
import LoadersFooter from './components/LoadersFooter.vue'

export default {
name: 'app',
components: {
LoadersHeader,
LoadersFooter
}
}
</script>

<style lang="scss">
@import "sass/main.scss";


</style>
Binary file added packages/docs/src/assets/img/vuestic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading