Skip to content

Commit

Permalink
[SDPA-3270] Upgraded Nuxt to v2.9.2 (#561)
Browse files Browse the repository at this point in the history
* Upgraded Nuxt to v2.9.2

* [SDPA-3270] Update yarn lock for nuxt upgrade

* Removed 'jest-vue-preprocessor' which is not needed and cause dependency issues
  • Loading branch information
tim-yao authored Oct 14, 2019
1 parent 9cf6ef4 commit 72504be
Show file tree
Hide file tree
Showing 13 changed files with 1,881 additions and 2,404 deletions.
2 changes: 1 addition & 1 deletion examples/basic-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@dpc-sdp/ripple-nuxt-tide": "1.2.1",
"dotenv": "^5.0.1",
"nuxt": "2.6.3",
"nuxt": "2.9.2",
"run-script-os": "^1.0.7"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/vic-gov-au/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@dpc-sdp/ripple-nuxt-tide": "1.2.1",
"@nuxtjs/robots": "^2.0.0",
"dotenv": "^5.0.1",
"nuxt": "2.6.3",
"nuxt": "2.9.2",
"run-script-os": "^1.0.7"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
setupFilesAfterEnv: ['<rootDir>/.jest/moment.js'],
transform: {
'^.+\\.js$': '<rootDir>/node_modules/babel-jest',
'.*\\.(vue)$': '<rootDir>/node_modules/jest-vue-preprocessor',
'.*\\.(vue)$': 'vue-jest',
'^.+\\.md?$': 'markdown-loader-jest'
},
transformIgnorePatterns: [
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"jest": "^24.8.0",
"jest-canvas-mock": "^2.1.0",
"jest-junit": "^8.0.0",
"jest-vue-preprocessor": "^1.5.0",
"lerna": "^3.0.0",
"markdown-loader-jest": "^0.1.1",
"mockdate": "^2.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"@dpc-sdp/ripple-nuxt-tide": "^1.3.0",
"dotenv": "^5.0.1",
"nuxt": "2.6.3",
"nuxt": "2.9.2",
"run-script-os": "^1.0.7"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-ripple-app/template/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"@dpc-sdp/ripple-nuxt-tide": "^<%= version %>",
"dotenv": "^5.0.1",
"nuxt": "2.6.3",
"nuxt": "2.9.2",
"run-script-os": "^1.0.7"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/ripple-nuxt-tide/lib/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<rpl-base-layout>
<template slot="header">
<rpl-alert-base class="app-preview" v-if="preview">Draft only and not yet published</rpl-alert-base>
<no-ssr>
<client-only>
<component v-if="alerts" :is="alerts" />
<rpl-site-header
:logo="header.logo"
Expand All @@ -25,7 +25,7 @@
:showLogout="false"
/>
</template>
</no-ssr>
</client-only>
</template>

<nuxt/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div class="tide-alert" v-if="alerts && alerts.length > 0">
<no-ssr>
<client-only>
<rpl-alert v-for="alert in alerts" :key="alert.id" @rplAlertClose="dismissAlert" v-bind="alert"/>
</no-ssr>
</client-only>
</div>
</template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
</template>
<template v-for="dComponent in dynamicComponents" v-if="dynamicComponents">
<rpl-col cols="full" :colsBp="dComponent.cols" :key="dComponent.id">
<no-ssr v-if="dComponent.ssr === false">
<client-only v-if="dComponent.ssr === false">
<component :is="dComponent.component" v-bind="dComponent.data" :class="dComponent.class"></component>
</no-ssr>
</client-only>
<component v-else :is="dComponent.component" v-bind="dComponent.data" :class="dComponent.class"></component>
</rpl-col>
</template>
Expand Down
4 changes: 2 additions & 2 deletions packages/ripple-nuxt-tide/modules/publication/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<template v-if="dynamicComponents">
<template v-for="dComponent in dynamicComponents">
<rpl-col cols="full" :colsBp="dComponent.cols" :key="dComponent.id">
<no-ssr v-if="dComponent.ssr === false">
<client-only v-if="dComponent.ssr === false">
<component :is="dComponent.component" v-bind="dComponent.data" :class="dComponent.class"></component>
</no-ssr>
</client-only>
<component v-else :is="dComponent.component" v-bind="dComponent.data" :class="dComponent.class"></component>
</rpl-col>
</template>
Expand Down
2 changes: 1 addition & 1 deletion packages/ripple-nuxt-tide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
},
"peerDependencies": {
"@nuxtjs/axios": "^5.3.1",
"nuxt": "^2.4.3"
"nuxt": "^2.9.2"
},
"devDependencies": {
"mockdate": "^2.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/ripple-nuxt-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"svgo-loader": "^2.1.0"
},
"peerDependencies": {
"nuxt": "^2.4.3",
"nuxt": "^2.9.2",
"webpack-node-externals": "^1.6.0"
}
}
Loading

0 comments on commit 72504be

Please sign in to comment.