Skip to content

Commit

Permalink
build(@dpc-sdp/ripple-ui-core): ⬆️ upgrade to nuxt RC 13
Browse files Browse the repository at this point in the history
  • Loading branch information
dylankelly committed Nov 8, 2022
1 parent ef8bc11 commit 990c047
Show file tree
Hide file tree
Showing 7 changed files with 1,011 additions and 363 deletions.
13 changes: 0 additions & 13 deletions examples/nuxt-app/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,6 @@ export default defineNuxtConfig({
devtools: true
}
},
postcss: {
plugins: {
'postcss-normalize': {},
'postcss-nested': {},
'postcss-preset-env': {
features: {
'custom-properties': false
}
},
'postcss-for': {},
'postcss-each': {}
}
},
modules: [
'@dpc-sdp/ripple-tide-api/nuxt',
'@dpc-sdp/ripple-tide-grant/nuxt',
Expand Down
2 changes: 1 addition & 1 deletion examples/nuxt-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@badeball/cypress-cucumber-preprocessor": "^13.0.2",
"@testing-library/cypress": "^8.0.3",
"mockttp": "^3.4.0",
"nuxt": "3.0.0-rc.10",
"nuxt": "3.0.0-rc.13",
"start-server-and-test": "^1.14.0"
}
}
4 changes: 2 additions & 2 deletions packages/ripple-tide-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"watch": "tsc -p tsconfig.json -w"
},
"dependencies": {
"@nuxt/kit": "3.0.0-rc.10",
"@nuxt/kit": "3.0.0-rc.13",
"axios": "^0.27.2",
"change-case": "^4.1.2",
"cheerio": "^1.0.0-rc.10",
Expand All @@ -38,7 +38,7 @@
"winston": "^3.8.2"
},
"devDependencies": {
"@nuxt/schema": "3.0.0-rc.10",
"@nuxt/schema": "3.0.0-rc.13",
"@types/cheerio": "^0.22.31",
"axios-mock-adapter": "^1.21.1",
"defu": "^6.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ripple-ui-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"test:storybook-ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"npx http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && yarn test:storybook\""
},
"dependencies": {
"@nuxt/kit": "3.0.0-rc.10",
"@nuxt/kit": "3.0.0-rc.13",
"@vueuse/core": "^9.3.1",
"date-fns": "^2.29.3",
"mitt": "^3.0.0",
Expand Down
21 changes: 13 additions & 8 deletions packages/ripple-ui-core/src/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ import vitePlugins from './vite.plugins'

export default defineNuxtModule({
hooks: {
'build:before'(_builder, buildOptions) {
const plugins = buildOptions.postcss.postcssOptions.plugins
buildOptions.postcss.postcssOptions.plugins = {
...plugins,
autoprefixer: {},
'postcss-nested': {}
}
},
'vite:extendConfig'(viteInlineConfig) {
if (Array.isArray(viteInlineConfig.plugins)) {
viteInlineConfig.plugins?.push(vitePlugins)
Expand All @@ -31,6 +23,19 @@ export default defineNuxtModule({
}
},
async setup(_options, nuxt) {
nuxt.options.postcss.plugins = {
...nuxt.options.postcss.plugins,
autoprefixer: {},
'postcss-nested': {},
'postcss-normalize': {},
'postcss-preset-env': {
features: {
'custom-properties': false
}
},
'postcss-for': {},
'postcss-each': {}
}
nuxt.options.css.push('@dpc-sdp/ripple-ui-core/style')
}
})
2 changes: 1 addition & 1 deletion packages/ripple-ui-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@dpc-sdp/ripple-ui-core": "2.0.1-alpha.3",
"@formkit/nuxt": "1.0.0-beta.11-c95e605",
"@formkit/vue": "1.0.0-beta.10",
"@nuxt/kit": "3.0.0-rc.10"
"@nuxt/kit": "3.0.0-rc.13"
},
"devDependencies": {
"@babel/core": "^7.19.3",
Expand Down

0 comments on commit 990c047

Please sign in to comment.