Skip to content

Commit df71251

Browse files
authored
Merge pull request #232 from alOneh/fix/nuxt-generator
Nuxt generator fixes
2 parents ba39dba + 9c99c2d commit df71251

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

src/generators/NuxtGenerator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import chalk from "chalk";
22
import BaseVueGenerator from "./VueBaseGenerator";
33

4-
export default class extends BaseVueGenerator {
4+
export default class NuxtGenerator extends BaseVueGenerator {
55
constructor(params) {
66
super(params);
77

src/generators/NuxtGenerator.test.js

-6
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,13 @@ describe("generate", () => {
4242

4343
generator.generate(api, resource, tmpobj.name).then(() => {
4444
[
45-
"/components/ActionCell",
46-
"/components/ConfirmDelete",
47-
"/components/DataFilter",
48-
"/components/foo/Filter",
4945
"/components/foo/Form.vue",
50-
"/components/foo/Layout",
5146
"/components/InputDate.vue",
5247
"/components/Loading.vue",
5348
"/components/Alert.vue",
5449
"/components/Toolbar.vue",
5550
"/config/entrypoint.js",
5651
"/error/SubmissionError.js",
57-
"/locales/en.js",
5852
"/services/api.js",
5953
"/services/foo.js",
6054
"/store/foo.js",

src/generators/VuetifyGenerator.test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ test("Generate a Vuetify app", () => {
3535
});
3636
generator.generate(api, resource, tmpobj.name).then(() => {
3737
[
38-
"/components/ActionCell",
39-
"/components/Breadcrumb",
40-
"/components/ConfirmDelete",
41-
"/components/DataFilter",
42-
"/components/foo/Filter",
38+
"/components/ActionCell.vue",
39+
"/components/Breadcrumb.vue",
40+
"/components/ConfirmDelete.vue",
41+
"/components/DataFilter.vue",
42+
"/components/foo/Filter.vue",
4343
"/components/foo/Form.vue",
44-
"/components/foo/Layout",
44+
"/components/foo/Layout.vue",
4545
"/components/InputDate.vue",
4646
"/components/Loading.vue",
4747
"/components/Snackbar.vue",

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ program
2828
.option("--bearer [bearer]", "Token for bearer auth (Hydra only)")
2929
.option(
3030
"-g, --generator [generator]",
31-
'The generator to use, one of "react", "react-native", "vue", "admin-on-rest", "typescript", "next"',
31+
'The generator to use, one of "react", "react-native", "vue", "admin-on-rest", "typescript", "next", "nuxt"',
3232
"react"
3333
)
3434
.option(

0 commit comments

Comments
 (0)