Skip to content

Conversation

@karlikpj
Copy link
Contributor

@karlikpj karlikpj commented Aug 2, 2024

Closes #3

@karlikpj karlikpj force-pushed the ticket/3-simple-dar-sass-example branch 8 times, most recently from 5cd7b2b to a5dd13b Compare August 9, 2024 10:45
@karlikpj karlikpj marked this pull request as ready for review August 9, 2024 10:48
@karlikpj karlikpj force-pushed the ticket/3-simple-dar-sass-example branch from a5dd13b to 8a32b38 Compare August 9, 2024 11:52
Comment on lines 23 to 25
@import "nci-header";
@import "usa-button";
@import "usa-sidenav";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is @import? Do you mean @forward?

@@ -0,0 +1,41 @@
# NCIDS Sass example compile methods

### Compile NCIDS into directly CSS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you write this like https://github.com/NCIOCPL/ncids-example-sites/tree/main/ncids-webpack on the steps for doing this? Treat it as if someone copy/pasted the files here into their own repo.

Comment on lines 5 to 8
@import "usa-button";
@import "nci-header";
@import "usa-sidenav";
@import 'usa-site-alert';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you mean @forward

@karlikpj karlikpj force-pushed the ticket/3-simple-dar-sass-example branch 4 times, most recently from 367465c to c049171 Compare August 13, 2024 17:47
Copy link
Member

@bryanpizzillo bryanpizzillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@karlikpj all of this stuff needs to be in another folder. ncids-webpack should NOT change at all. Everything should be in something like dart-sass.

@karlikpj karlikpj force-pushed the ticket/3-simple-dar-sass-example branch 2 times, most recently from ab15dd7 to c503082 Compare August 26, 2024 13:49
Copy link
Contributor

@olitharp-nci olitharp-nci Aug 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there shoudn't be any changes to ncids-webpack

@karlikpj karlikpj force-pushed the ticket/3-simple-dar-sass-example branch 2 times, most recently from b561ec0 to 940f79a Compare August 28, 2024 15:27
@karlikpj karlikpj force-pushed the ticket/3-simple-dar-sass-example branch from 940f79a to a346328 Compare August 28, 2024 16:03
@olitharp-nci olitharp-nci force-pushed the ticket/3-simple-dar-sass-example branch from 84f4b99 to 954a2d1 Compare September 4, 2024 18:27
Copy link
Member

@bryanpizzillo bryanpizzillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So overall, I made a node below from the package.json. I wonder if we should require sass and postcss installed globably so we can just run our tool.

"author": "National Cancer Institute",
"license": "ISC",
"scripts": {
"build:css": "sass -I ./node_modules/@nciocpl/ncids-css/uswds-packages -I ./node_modules/@nciocpl/ncids-css/packages ./src/index.scss ./dist/ncids-compiled.css && postcss ./dist/ncids-compiled.css --output ./dist/styles.css",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be:
sass -I ./node_modules/@nciocpl/ncids-css/uswds-packages -I ./node_modules/@nciocpl/ncids-css/packages ./src/index.scss | postcss --output ./dist/styles.css

Sass will output to standard out when not given an output file name. Postcss will read from standard in when you have not specified a filename.

The same can apply below. This would also need some info on the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enabler: Make a simple dart sass example

4 participants