Skip to content

Commit

Permalink
chore(#293): move Druxt Views nuxt module files (#400)
Browse files Browse the repository at this point in the history
* chore(#293): move nuxt module files

* chore(#293): update tests
  • Loading branch information
Decipher authored Dec 8, 2021
1 parent 9c4663a commit d9d1d12
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion packages/views/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"module": "dist/druxt-views.esm.js",
"files": [
"dist",
"nuxt",
"templates"
],
"dependencies": {
Expand Down
5 changes: 3 additions & 2 deletions packages/views/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DruxtViewsNuxtModule } from './nuxtModule'
import { DruxtViewsNuxtModule } from './nuxt'
DruxtViewsNuxtModule.meta = require('../package.json')

/**
* The Nuxt.js module function.
Expand All @@ -8,7 +9,7 @@ import { DruxtViewsNuxtModule } from './nuxtModule'
* @type {Function}
* @exports default
* @name DruxtViewsNuxtModule
* @see {@link ./module|DruxtViewsNuxtModule}
* @see {@link ./nuxt|DruxtViewsNuxtModule}
*/
export default DruxtViewsNuxtModule

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join, resolve } from 'path'
import DruxtViewsStorybook from './nuxtStorybook'
import DruxtViewsStorybook from './storybook'

/**
* The Nuxt.js module function.
Expand Down Expand Up @@ -65,6 +65,4 @@ const DruxtViewsNuxtModule = function (moduleOptions = {}) {
})
}

DruxtViewsNuxtModule.meta = require('../package.json')

export { DruxtViewsNuxtModule }
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DruxtViewsNuxtModule } from '../src/nuxtModule'
import { DruxtViewsNuxtModule } from '../../src/nuxt'

jest.mock('../src/nuxtStorybook')
jest.mock('../../src/nuxt/storybook')

const mock = {
addModule: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import DruxtEntityStorybook from '../src/nuxtStorybook'
import DruxtEntityStorybook from '../../src/nuxt/storybook'

jest.mock('axios')

Expand Down

0 comments on commit d9d1d12

Please sign in to comment.