Skip to content

Commit cca81f8

Browse files
committed
chore: brand module to nuxtify
1 parent 6ae5037 commit cca81f8

File tree

9 files changed

+40
-31
lines changed

9 files changed

+40
-31
lines changed

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"eslint.experimental.useFlatConfig": true
2+
"eslint.experimental.useFlatConfig": true,
3+
"cSpell.words": [
4+
"nuxtify"
5+
]
36
}

README.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Get your module up and running quickly.
33
44
Find and replace all on all files (CMD+SHIFT+F):
55
- Name: My Module
6-
- Package name: my-module
6+
- Package name: @nuxtify/core
77
- Description: My new Nuxt module
88
-->
99

@@ -17,12 +17,13 @@ Find and replace all on all files (CMD+SHIFT+F):
1717
My new Nuxt module for doing amazing things.
1818

1919
- [ Release Notes](/CHANGELOG.md)
20-
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
21-
<!-- - [📖 &nbsp;Documentation](https://example.com) -->
20+
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/@nuxtify/core?file=playground%2Fapp.vue) -->
21+
<!-- - [📖 &nbsp;Documentation](https://example.com) -->
2222

2323
## Features
2424

2525
<!-- Highlight some of the features your module provide here -->
26+
2627
-&nbsp;Foo
2728
- 🚠 &nbsp;Bar
2829
- 🌲 &nbsp;Baz
@@ -32,12 +33,11 @@ My new Nuxt module for doing amazing things.
3233
Install the module to your Nuxt application with one command:
3334

3435
```bash
35-
npx nuxi module add my-module
36+
npx nuxi module add @nuxtify/core
3637
```
3738

3839
That's it! You can now use My Module in your Nuxt app ✨
3940

40-
4141
## Contribution
4242

4343
<details>
@@ -69,16 +69,13 @@ That's it! You can now use My Module in your Nuxt app ✨
6969

7070
</details>
7171

72-
7372
<!-- Badges -->
74-
[npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
75-
[npm-version-href]: https://npmjs.com/package/my-module
76-
77-
[npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=020420&colorB=00DC82
78-
[npm-downloads-href]: https://npm.chart.dev/my-module
79-
80-
[license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=020420&colorB=00DC82
81-
[license-href]: https://npmjs.com/package/my-module
8273

74+
[npm-version-src]: https://img.shields.io/npm/v/@nuxtify/core/latest.svg?style=flat&colorA=020420&colorB=00DC82
75+
[npm-version-href]: https://npmjs.com/package/@nuxtify/core
76+
[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxtify/core.svg?style=flat&colorA=020420&colorB=00DC82
77+
[npm-downloads-href]: https://npm.chart.dev/@nuxtify/core
78+
[license-src]: https://img.shields.io/npm/l/@nuxtify/core.svg?style=flat&colorA=020420&colorB=00DC82
79+
[license-href]: https://npmjs.com/package/@nuxtify/core
8380
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
8481
[nuxt-href]: https://nuxt.com

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
{
2-
"name": "my-module",
3-
"version": "1.0.0",
4-
"description": "My new Nuxt module",
5-
"repository": "your-org/my-module",
2+
"name": "@nuxtify/core",
3+
"version": "0.1.0",
4+
"description": "Nuxtify core module powered by Nuxt and Vuetify.",
5+
"homepage": "https://nuxtify.dev/",
6+
"author": "Nuxtify.dev <[email protected]>",
7+
"funding": "https://github.com/sponsors/davidstackio",
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/nuxtify-dev/core"
11+
},
12+
"bugs": {
13+
"url": "https://github.com/nuxtify-dev/core/issues"
14+
},
615
"license": "MIT",
716
"type": "module",
817
"exports": {

playground/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default defineNuxtConfig({
22
modules: ['../src/module'],
3-
myModule: {},
43
devtools: { enabled: true },
4+
nuxtifyCore: {},
55
})

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"name": "my-module-playground",
3+
"name": "@nuxtify/core-playground",
44
"type": "module",
55
"scripts": {
66
"dev": "nuxi dev",

src/module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { defineNuxtModule, addPlugin, createResolver } from '@nuxt/kit'
1+
import { addPlugin, createResolver, defineNuxtModule } from '@nuxt/kit'
22

33
// Module options TypeScript interface definition
44
export interface ModuleOptions {}
55

66
export default defineNuxtModule<ModuleOptions>({
77
meta: {
8-
name: 'my-module',
9-
configKey: 'myModule',
8+
name: 'nuxtify-core',
9+
configKey: 'nuxtifyCore',
1010
},
1111
// Default configuration options of the Nuxt module
1212
defaults: {},

src/runtime/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineNuxtPlugin } from '#app'
22

33
export default defineNuxtPlugin((_nuxtApp) => {
4-
console.log('Plugin injected by my-module!')
4+
console.log('Plugin injected by @nuxtify/core!')
55
})

test/fixtures/basic/nuxt.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import MyModule from '../../../src/module'
1+
import nuxtifyCore from '../../../src/module'
22

33
export default defineNuxtConfig({
44
modules: [
5-
MyModule,
5+
nuxtifyCore,
66
],
77
})

0 commit comments

Comments
 (0)