Skip to content

Commit

Permalink
Deps(web, web-react, web-twig): Sass-embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelklibani committed Oct 21, 2024
1 parent fa6a656 commit a73cc7b
Show file tree
Hide file tree
Showing 10 changed files with 312 additions and 110 deletions.
1 change: 1 addition & 0 deletions apps/demo/config/vite/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default defineConfig({
postcss: resolve(__dirname, 'config'),
preprocessorOptions: {
scss: {
api: 'modern-compiler',
includePaths: [
join(pathRelativeToRepositoryRoot, 'node_modules'),
join(pathRelativeToRepositoryRoot, 'node_modules/@lmc-eu/spirit-design-tokens/src/scss'),
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"npm-run-all2": "6.2.3",
"postcss": "8.4.47",
"rollup": "4.24.0",
"sass": "1.79.5",
"sass-embedded": "1.79.5",
"sass-true": "8.1.0",
"shx": "0.3.4",
"typescript": "5.6.3",
Expand Down
1 change: 1 addition & 0 deletions apps/storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const config: StorybookConfig = {
postcss: resolve(__dirname, 'config'),
preprocessorOptions: {
scss: {
api: 'modern-compiler',
includePaths: [
resolve(__dirname, '../../node_modules'),
resolve(__dirname, '../../node_modules/@lmc-eu/spirit-design-tokens/src/scss'),
Expand Down
4 changes: 2 additions & 2 deletions apps/web-twig-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"core-js": "3.38.1",
"regenerator-runtime": "0.14.1",
"sass-loader": "14.2.1",
"sass": "1.79.5",
"sass-embedded": "1.79.5",
"ts-loader": "9.5.1",
"typescript": "5.6.3",
"webpack-cli": "5.1.4",
Expand All @@ -32,4 +32,4 @@
"watch": "encore dev --watch",
"build": "encore production --progress"
}
}
}
4 changes: 2 additions & 2 deletions apps/web-twig-demo/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');
// eslint-disable-next-line import/no-unresolved
const Encore = require('@symfony/webpack-encore');
// eslint-disable-next-line import/no-extraneous-dependencies
const sass = require('sass');
const sass = require('sass-embedded');

// Manually configure the runtime environment if not already configured yet by the "encore" command.
// It's useful when you use tools that rely on webpack.config.js file.
Expand Down Expand Up @@ -74,7 +74,7 @@ Encore
options.implementation = sass;
// eslint-disable-next-line no-param-reassign
options.sassOptions = {
includePaths: [
loadPaths: [
// used in docker image
'./node_modules',
'./node_modules/@lmc-eu/spirit-design-tokens/scss',
Expand Down
110 changes: 47 additions & 63 deletions exporters/variables-scss/generated/exporter.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/form-validations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/jest": "29.5.13",
"jest": "29.7.0",
"npm-run-all": "4.1.5",
"sass": "1.79.5",
"sass-embedded": "1.79.5",
"shx": "0.3.4",
"tslib": "2.7.0",
"typescript": "5.6.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/web-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"react-dom": "18.3.1",
"recast": "0.23.9",
"rollup": "4.24.0",
"sass": "1.79.5",
"sass-embedded": "1.79.5",
"shx": "0.3.4",
"terser-webpack-plugin": "5.3.10",
"ts-loader": "9.5.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"postcss": "8.4.47",
"postcss-cli": "11.0.0",
"rollup": "4.24.0",
"sass": "1.79.5",
"sass-embedded": "1.79.5",
"sass-true": "8.1.0",
"shx": "0.3.4",
"stylelint": "16.10.0",
Expand All @@ -82,7 +82,7 @@
"typescript": "5.6.2"
},
"peerDependencies": {
"sass": ">=1.57.0 < 2"
"sass-embedded": ">=1.57.0 < 2"
},
"peerDependenciesMeta": {
"sass": {
Expand Down
Loading

0 comments on commit a73cc7b

Please sign in to comment.