chore: add yarn command to put compiled stylesheets into builds folder

This commit is contained in:
Nelson Jovel 2024-01-10 10:58:08 -08:00
parent 7ae453a61c
commit 6e46b46074
6788 changed files with 697992 additions and 12 deletions

27
package.json Normal file
View file

@ -0,0 +1,27 @@
{
"name": "dashboard",
"version": "1.0.0",
"description": "rails engine for adding sqm dashboard to a rails project",
"main": "index.js",
"repository": "git@github.com:edcommonwealth/Dashboard.git",
"author": "Nelson Jovel <memoryman51@hotmail.com>",
"license": "GPLv3",
"private": false,
"dependencies": {
"@fortawesome/fontawesome-free": "^6.5.1",
"@popperjs/core": "^2.11.8",
"autoprefixer": "^10.4.16",
"bootstrap": "^5.3.2",
"bootstrap-icons": "^1.11.3",
"nodemon": "^3.0.2",
"postcss": "^8.4.33",
"postcss-cli": "^11.0.0",
"sass": "^1.69.7"
},
"scripts": {
"build:css:compile": "sass ./app/assets/stylesheets/dashboard/sqm.sass.scss ./app/assets/builds/sqm.css --no-source-map --load-path=node_modules ; sass ./app/assets/stylesheets/dashboard/welcome.sass.scss ./app/assets/builds/welcome.css --no-source-map --load-path=node_modules",
"build:css:prefix": "postcss ./app/assets/builds/sqm.css --use=autoprefixer --output=./app/assets/builds/sqm.css",
"build:css": "yarn build:css:compile && yarn build:css:prefix",
"watch:css": "nodemon --watch ./app/assets/stylesheets/ --ext scss --exec \"yarn build:css\""
}
}