Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
feat(core)!: remove customPropertyFiles option
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrsskls committed Feb 3, 2022
1 parent 5430357 commit 67ddf2b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ _The CSS entry files, relative from `rootFolder`. These files will be used to cr
**`cssTokens`**<br>
_Please refer to [packages/css/README.md](packages/css/README.md) for more information._

**`customPropertyFiles`**, default: `[]`<br>
_CSS files, relative from `rootFolder`, which contain custom property definitions. This might be necessary when (based on the browserslist) custom properties should be replaced with its original values and you do not import the CSS files (containing the custom property definitions) into each css file._

**`distFolder`**, default: `"dist"`<br>
_The folder where the build files will be put_

Expand Down
5 changes: 0 additions & 5 deletions packages/stack-core/__tests__/lib/config.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ describe("core/lib/config", () => {
rootFolder: path.join(process.cwd(), "src"),
svgFolders: [],
imageFolders: [],
customPropertyFiles: [],
testsFolder: "tests",
targets,
});
Expand Down Expand Up @@ -68,7 +67,6 @@ describe("core/lib/config", () => {
rootFolder: path.join(process.cwd(), "src"),
svgFolders: [],
imageFolders: [],
customPropertyFiles: [],
testsFolder: "tests",
targets,
});
Expand Down Expand Up @@ -108,7 +106,6 @@ describe("core/lib/config", () => {
testsFolder: "tests",
svgFolders: [path.join(process.cwd(), "src", "icons")],
imageFolders: [],
customPropertyFiles: [],
targets,
});
});
Expand Down Expand Up @@ -153,7 +150,6 @@ describe("core/lib/config", () => {
rootFolder: path.join(process.cwd(), "src"),
svgFolders: [],
imageFolders: [],
customPropertyFiles: [],
testsFolder: "tests",
targets: {
browsers:
Expand Down Expand Up @@ -191,7 +187,6 @@ describe("core/lib/config", () => {
rootFolder: path.join(process.cwd(), "src"),
svgFolders: [],
imageFolders: [],
customPropertyFiles: [],
testsFolder: "tests",
targets: {
browsers:
Expand Down
4 changes: 0 additions & 4 deletions packages/stack-core/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module.exports = function getConfig() {
use: [],
assetFolders: [],
cssFiles: [],
customPropertyFiles: [],
distFolder: "dist",
jsFiles: [],
imageFolders: [],
Expand Down Expand Up @@ -91,9 +90,6 @@ function resolveConfigPaths(conf) {
copy.distFolder = path.join(process.cwd(), conf.distFolder);
copy.rootFolder = path.join(process.cwd(), conf.rootFolder);
copy.cssFiles = conf.cssFiles.map((file) => path.join(conf.rootFolder, file));
copy.customPropertyFiles = conf.customPropertyFiles.map((file) =>
path.join(conf.rootFolder, file)
);
copy.jsFiles = conf.jsFiles.map((file) => path.join(conf.rootFolder, file));
copy.assetFolders = conf.assetFolders.map((folder) =>
path.join(copy.rootFolder, folder)
Expand Down

0 comments on commit 67ddf2b

Please sign in to comment.