Move styles building up to the project root

This will make development much easier by having all commands at the
project root. This also removes the deprecated `node-sass`

Fix build-css-watch
This commit is contained in:
Caleb Kniffen
2023-12-11 15:36:38 -06:00
committed by mDuo13
parent 0d0187b4ee
commit 1902ec1f6d
6 changed files with 13 additions and 1829 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -5,12 +5,14 @@
"type": "module",
"description": "The XRP Ledger Dev Portal is the authoritative source for XRP Ledger documentation, including the `rippled` server, client libraries, and other open-source XRP Ledger software.",
"scripts": {
"build-css": "sass --load-path styles/scss styles/xrpl.scss ./content/static/css/devportal2024-v1.css --style compressed --no-source-map",
"build-css-watch": "sass --watch --load-path styles/scss styles/xrpl.scss ./content/static/css/devportal2024-v1.css --style compressed --no-source-map",
"start": "portal develop -d content"
},
"keywords": [],
"license": "MIT",
"dependencies": {
"@redocly/portal": "^0.66.0",
"@redocly/portal": "^0.66.1",
"clsx": "^2.0.0",
"lottie-react": "^2.4.0",
"moment": "^2.29.4",
@@ -21,6 +23,8 @@
"react": "^17.0.2"
},
"devDependencies": {
"htmltojsx": "^0.3.0"
"htmltojsx": "^0.3.0",
"sass": "1.26.10",
"bootstrap": "^4.6.2"
}
}

View File

@@ -1,14 +0,0 @@
{
"devDependencies": {
"bootstrap": "^4.6.1",
"node-sass": "^7.0.0"
},
"scripts": {
"build-css": "node-sass --include-path scss xrpl.scss ../assets/css/devportal2022-v25.css --output-style compressed",
"build-css-out": "node-sass --include-path scss xrpl.scss ../out/assets/css/devportal2022-v25.css --output-style compressed --source-map true",
"build-css-watch-out": "node-sass --recursive --watch --include-path scss xrpl.scss ../out/assets/css/devportal2022-v25.css --output-style compressed --source-map true"
},
"dependencies": {
"sass": "^1.26.10"
}
}

View File

@@ -35,7 +35,7 @@ $base-size: 16px;
$line-height-base: 1.5;
// Bootstrap v4
@import "node_modules/bootstrap/scss/bootstrap.scss";
@import "../node_modules/bootstrap/scss/bootstrap.scss";
// Import site styles
@import "_font.scss";

File diff suppressed because it is too large Load Diff