Skip to content

Commit

Permalink
feat: add initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jpntex committed Oct 1, 2021
1 parent 0a3e7f4 commit f9e5d61
Show file tree
Hide file tree
Showing 157 changed files with 23,397 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
15 changes: 15 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
dist
node_modules
*.js.map
*.d.ts
.yarn
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.cache
.DS_Store
Thumbs.db
.nuxt
ui/lib
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
root: true,
extends: [
'@indielayer',
],
}
96 changes: 96 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# Nuxt generate
dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# IDE / Editor
.idea

# Service worker
sw.*

# macOS
.DS_Store

# Vim swap files
*.swp

.vercel
.vercel_cache
node_modules
node_modules_dev
node_modules_prod
8 changes: 8 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": "0.0.0",
"npmClient": "yarn",
"registry": "https://registry.npmjs.org",
"packages": [
"packages/*"
]
}
39 changes: 39 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "root",
"private": true,
"version": "0.0.0",
"description": "Indielayer UI Components with Tailwind CSS build for Vue 3",
"main": "index.js",
"scripts": {
"bootstrap": "yarn && lerna bootstrap --force-local",
"bootstrap-build": "yarn bootstrap-root && lerna bootstrap -- --frozen-lockfile --non-interactive",
"bootstrap-prod": "yarn bootstrap-root && lerna bootstrap -- --frozen-lockfile --non-interactive --production && cd apps/ui && yarn --frozen-lockfile --non-interactive --production",
"bootstrap-root": "yarn install --frozen-lockfile --non-interactive --production",
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "cd packages/ui && yarn dev",
"docs": "cd packages/docs && yarn dev",
"build": "cd packages/ui && yarn build",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore ."
},
"repository": {
"type": "git",
"url": "git+https://github.com/indielayer/ui.git"
},
"author": "João Teixeira (https://indielayer.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/indielayer/ui/issues"
},
"homepage": "https://github.com/indielayer/ui#readme",
"dependencies": {
"@indielayer/eslint-config-vue": "^2.1.2",
"@typescript-eslint/eslint-plugin": "^4.23.0",
"@typescript-eslint/parser": "^4.23.0",
"@vue/cli-plugin-eslint": "^4.5.13",
"babel-eslint": "^10.1.0",
"eslint": "^7.26.0",
"eslint-plugin-vue": "^7.9.0",
"lerna": "^4.0.0",
"typescript": "^4.2.4"
}
}
14 changes: 14 additions & 0 deletions packages/docs/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
dist
node_modules
*.js.map
*.d.ts
.yarn
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.cache
.DS_Store
Thumbs.db
.nuxt
17 changes: 17 additions & 0 deletions packages/docs/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
root: true,
env: {
'node': true,
},
extends: [
'@indielayer/eslint-config-vue',
'plugin:vue/vue3-essential',
'eslint:recommended',
],
parserOptions: {
'parser': 'babel-eslint',
},
rules: {
'vue/no-multiple-template-root': 0,
},
}
5 changes: 5 additions & 0 deletions packages/docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
16 changes: 16 additions & 0 deletions packages/docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Indielayer UI</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
</head>
<body>
<div id="app" class="flex flex-col h-full"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
9 changes: 9 additions & 0 deletions packages/docs/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"exclude": ["node_modules", "dist"]
}
27 changes: 27 additions & 0 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "docs",
"private": true,
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build --base=/ui/",
"serve": "vite preview"
},
"dependencies": {
"@indielayer/ui": "0.0.0",
"vue": "^3.0.5",
"vue-router": "4",
"vuex": "4"
},
"devDependencies": {
"@highlightjs/vue-plugin": "^2.1.0",
"@vitejs/plugin-vue": "^1.2.2",
"@vue/compiler-sfc": "^3.0.5",
"autoprefixer": "^10.2.5",
"highlight.js": "^11.2.0",
"postcss": "^8.2.15",
"postcss-nested": "^5.0.6",
"tailwindcss": "^2.1.2",
"vite": "^2.3.3"
}
}
7 changes: 7 additions & 0 deletions packages/docs/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
'postcss-nested': {},
},
}
Binary file added packages/docs/public/favicon.ico
Binary file not shown.
Binary file added packages/docs/public/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/docs/public/images/error.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: 2 additions & 0 deletions packages/docs/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Allow: /
3 changes: 3 additions & 0 deletions packages/docs/src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<router-view />
</template>
Loading

0 comments on commit f9e5d61

Please sign in to comment.