-
- Downloads
There was an error fetching the commit references. Please try again later.
Add script to compile SCSS with node sass package
The script `./scripts/frontend/compile_css.mjs` compiles our SCSS style code to CSS. It follows the same rules/settings that our sassc-rails gem currently does (compiling the same files) while using dart sass and not the deprecated C implementation. Compiled CSS files will be placed in `app/assets/builds` where they can be picked up by the `cssbundling` gem. The gem _needs_ runs the npm script `build:css`. We also mark `sass` as a production dependency so that our license scanning picks up everything properly. One more note, the current MR doesn't integrate with the Vite and Webpack dev servers yet, this would be done in a second step. For more context see the in-progess MR: gitlab-org/gitlab!140611 Co-Authored-By:Muhammed Ali <muhammed.ali@airtimerewards.com>
parent
4c7dbdc6
No related branches found
No related tags found
Showing
- .gitignore 3 additions, 0 deletions.gitignore
- app/assets/stylesheets/page_bundles/issuable_list.scss 1 addition, 1 deletionapp/assets/stylesheets/page_bundles/issuable_list.scss
- package.json 2 additions, 1 deletionpackage.json
- scripts/frontend/compile_css.mjs 221 additions, 0 deletionsscripts/frontend/compile_css.mjs
- yarn.lock 4 additions, 4 deletionsyarn.lock
... | ... | @@ -10,6 +10,7 @@ |
"internal:eslint": "eslint --cache --max-warnings 0 --report-unused-disable-directives --ext .js,.vue,.graphql", | ||
"internal:stylelint": "stylelint -q --rd '{ee/,}app/assets/stylesheets/**/*.{css,scss}'", | ||
"prejest": "yarn check-dependencies", | ||
"build:css": "node ./scripts/frontend/compile_css.mjs", | ||
"jest": "jest --config jest.config.js", | ||
"jest-debug": "node --inspect-brk node_modules/.bin/jest --runInBand", | ||
"jest:ci": "jest --config jest.config.js --ci --coverage --testSequencer ./scripts/frontend/parallel_ci_sequencer.js", | ||
... | ... | @@ -189,6 +190,7 @@ |
"remark-gfm": "^3.0.1", | ||
"remark-parse": "^10.0.2", | ||
"remark-rehype": "^10.1.0", | ||
"sass": "^1.69.7", | ||
"scrollparent": "^2.0.1", | ||
"semver": "^7.3.4", | ||
"sentrybrowser": "npm:@sentry/browser@7.88.0", | ||
... | ... | @@ -280,7 +282,6 @@ |
"nodemon": "^2.0.19", | ||
"prettier": "2.2.1", | ||
"prosemirror-test-builder": "^1.1.1", | ||
"sass": "^1.69.0", | ||
"stylelint": "^15.10.2", | ||
"swagger-cli": "^4.0.4", | ||
"timezone-mock": "^1.0.8", | ||
... | ... |
scripts/frontend/compile_css.mjs
0 → 100755
Please register or sign in to comment