srcdev-nuxt-forms 0.0.1 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/components/forms/input-text/InputText.vue +12 -5
- package/package.json +11 -6
- package/.editorconfig +0 -12
- package/.eslintrc.cjs +0 -4
- package/.nuxtrc +0 -1
- package/.playground/app.config.ts +0 -5
- package/.playground/nuxt.config.ts +0 -3
- package/app.config.ts +0 -14
- package/app.vue +0 -3
- package/components/HelloWorld.vue +0 -14
- package/nuxt.config.ts +0 -10
- package/tsconfig.json +0 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Nuxt Layer
|
|
1
|
+
# Nuxt Forms Layer
|
|
2
2
|
|
|
3
3
|
Create Nuxt extendable layer with this GitHub template.
|
|
4
4
|
|
|
@@ -20,6 +20,13 @@ Running `pnpm dev` will prepare and boot `.playground` directory, which imports
|
|
|
20
20
|
|
|
21
21
|
## Distributing your theme
|
|
22
22
|
|
|
23
|
+
### Release it
|
|
24
|
+
CLI Prompt assisted release and versioning
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm run release
|
|
28
|
+
```
|
|
29
|
+
|
|
23
30
|
Your Nuxt layer is shaped exactly the same as any other Nuxt project, except you can publish it on NPM.
|
|
24
31
|
|
|
25
32
|
To do so, you only have to check if `files` in `package.json` are valid, then run:
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<input type="text" class="input-text" />
|
|
3
|
+
<input type="text" class="input-text" v-model="formValue" />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
console.log("InputText component loaded");
|
|
8
|
+
|
|
9
|
+
const formValue = ref("");
|
|
10
|
+
|
|
11
|
+
watchEffect(() => {
|
|
12
|
+
console.log("Form value changed to: ", formValue.value);
|
|
13
|
+
});
|
|
6
14
|
|
|
7
|
-
<script lang="ts" setup>
|
|
8
|
-
console.log('InputText Loaded');
|
|
9
15
|
</script>
|
|
10
16
|
|
|
11
|
-
<style lang="css"
|
|
17
|
+
<style lang="css">
|
|
12
18
|
.input-text {
|
|
13
|
-
border:
|
|
19
|
+
border: var(--input-border-width-thin) solid var(--input-border);
|
|
20
|
+
border-radius: var(--input-border-radius);
|
|
14
21
|
padding: 10px;
|
|
15
22
|
}
|
|
16
23
|
</style>
|
package/package.json
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "srcdev-nuxt-forms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"components"
|
|
8
|
+
],
|
|
6
9
|
"scripts": {
|
|
7
|
-
"dev": "nuxi dev
|
|
8
|
-
"build": "nuxt build
|
|
9
|
-
"generate": "nuxt generate
|
|
10
|
-
"preview": "nuxt preview
|
|
10
|
+
"dev": "nuxi dev",
|
|
11
|
+
"build": "nuxt build",
|
|
12
|
+
"generate": "nuxt generate",
|
|
13
|
+
"preview": "nuxt preview",
|
|
11
14
|
"lint": "eslint .",
|
|
12
|
-
"postinstall": "nuxt prepare
|
|
15
|
+
"postinstall": "nuxt prepare",
|
|
16
|
+
"release": "release-it"
|
|
13
17
|
},
|
|
14
18
|
"devDependencies": {
|
|
15
19
|
"@nuxt/eslint-config": "^0.3.13",
|
|
16
20
|
"eslint": "^9.5.0",
|
|
17
21
|
"nuxt": "^3.12.2",
|
|
22
|
+
"release-it": "^17.4.0",
|
|
18
23
|
"typescript": "^5.5.2"
|
|
19
24
|
}
|
|
20
25
|
}
|
package/.editorconfig
DELETED
package/.eslintrc.cjs
DELETED
package/.nuxtrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
typescript.includeWorkspace = true
|
package/app.config.ts
DELETED
package/app.vue
DELETED
package/nuxt.config.ts
DELETED
package/tsconfig.json
DELETED