Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 5e6cd7b

Browse files
init media viewer
0 parents  commit 5e6cd7b

34 files changed

+8026
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_size = 2
5+
indent_style = space
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules

.eslintrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": [
3+
"@nuxtjs/eslint-config-typescript"
4+
],
5+
"rules": {
6+
"@typescript-eslint/no-unused-vars": [
7+
"off"
8+
]
9+
}
10+
}

.gitignore

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Dependencies
2+
node_modules
3+
4+
# Logs
5+
*.log*
6+
7+
# Temp directories
8+
.temp
9+
.tmp
10+
.cache
11+
12+
# Yarn
13+
**/.yarn/cache
14+
**/.yarn/*state*
15+
16+
# Generated dirs
17+
dist
18+
19+
# Nuxt
20+
.nuxt
21+
.output
22+
.vercel_build_output
23+
.build-*
24+
.env
25+
.netlify
26+
27+
# Env
28+
.env
29+
30+
# Testing
31+
reports
32+
coverage
33+
*.lcov
34+
.nyc_output
35+
36+
# VSCode
37+
.vscode
38+
39+
# Intellij idea
40+
*.iml
41+
.idea
42+
43+
# OSX
44+
.DS_Store
45+
.AppleDouble
46+
.LSOverride
47+
.AppleDB
48+
.AppleDesktop
49+
Network Trash Folder
50+
Temporary Items
51+
.apdisk

.nuxtrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
imports.autoImport=false

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Nuxt Module
2+
3+
## Development
4+
5+
- Run `npm run dev:prepare` to generate type stubs.
6+
- Use `npm run dev` to start [playground](./playground) in development mode.

package.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "my-module",
3+
"version": "1.0.0",
4+
"license": "MIT",
5+
"type": "module",
6+
"exports": {
7+
".": {
8+
"import": "./dist/module.mjs",
9+
"require": "./dist/module.cjs"
10+
}
11+
},
12+
"main": "./dist/module.cjs",
13+
"types": "./dist/types.d.ts",
14+
"files": [
15+
"dist"
16+
],
17+
"scripts": {
18+
"prepack": "nuxt-module-build",
19+
"dev": "nuxi dev playground",
20+
"dev:build": "nuxi build playground",
21+
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground"
22+
},
23+
"dependencies": {
24+
"@nuxt/kit": "^3.0.0-rc.11",
25+
"@nuxtjs/tailwindcss": "^5.3.3",
26+
"@vueuse/core": "^9.2.0",
27+
"@vueuse/nuxt": "^9.2.0",
28+
"chalk": "^5.0.1",
29+
"consola": "^2.15.3",
30+
"date-fns": "^2.29.3",
31+
"etag": "^1.8.1",
32+
"image-size": "^1.0.2",
33+
"ipx": "^0.9.11",
34+
"ix": "^5.0.0",
35+
"pathe": "^0.3.8",
36+
"qs": "^6.11.0"
37+
},
38+
"devDependencies": {
39+
"@nuxt/module-builder": "latest",
40+
"@nuxt/schema": "^3.0.0-rc.11",
41+
"@nuxtjs/eslint-config-typescript": "latest",
42+
"eslint": "latest",
43+
"nuxt": "^3.0.0-rc.11"
44+
}
45+
}

playground/app.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div>
3+
<NuxtPage />
4+
</div>
5+
</template>

playground/nuxt.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineNuxtConfig } from 'nuxt/config'
2+
import MyModule from '..'
3+
4+
export default defineNuxtConfig({
5+
modules: [
6+
MyModule
7+
],
8+
myModule: {
9+
addPlugin: true
10+
}
11+
})

playground/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"private": true,
3+
"name": "my-module-playground"
4+
}

playground/pages/index.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div>
3+
Nuxt module playground!
4+
</div>
5+
</template>
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Loading

playground/public/logos/alpinejs.png

27.5 KB
Loading

playground/public/logos/bootstrap.png

29.9 KB
Loading

playground/public/logos/bulma.png

10.9 KB
Loading

playground/public/logos/html.png

4.98 KB
Loading
5.4 KB
Loading

playground/public/logos/sprucejs.png

31.2 KB
Loading
2.56 KB
Loading

playground/public/logos/vuejs.png

4.95 KB
Loading

0 commit comments

Comments
 (0)