Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build improvements #342

Merged
merged 25 commits into from
May 26, 2023
Merged

Build improvements #342

merged 25 commits into from
May 26, 2023

Conversation

ashley-hebler
Copy link
Member

@ashley-hebler ashley-hebler commented May 26, 2023

What's this PR do?

  • Adds a new CSS processor
  • Bumps many dependencies to latest version (except for ora)
  • Drops AMP task runner
  • Introduces requirement of node 14+

Why are we doing this? How does it help us?

Faster builds, security, smaller CSS output, cleans up tech debt

How should this be manually tested?

npm run test (kicked off in Github actions) should do the trick! I tested this in texastribune repo and did not see any breaking styles.

Are there any smells or added technical debt to note?

The implementation of the new inline source maps are a little ick, but after lots of research of how to do that with Lightning CSS and dart-sass, I'm just happy it works.

Research links:

dependabot bot and others added 25 commits January 7, 2023 04:32
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](json5/json5@v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](kornelski/http-cache-semantics@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
The Texas Tribune no longer serves AMP articles.
Update test CSS accordingly
Bump all sass compiling packages
…p-cache-semantics-4.1.1

Bump http-cache-semantics from 4.1.0 to 4.1.1
Update SASS compiling to latest
Take sourcemaps from SASS compile and include them in transform
It seems that with lightningcss, you have to explicitly set the browser targets.
The CLI option will look to package.json, but I'm not sure that the JS api does.
The assumption here is also that browserslist comes with sass.
This is a good way to debug any style regression this could introduce
LightningCSS doesn't play nicely with node 12.
There are a few references to this in this issue:
parcel-bundler/lightningcss#438
@ashley-hebler ashley-hebler merged commit ec4442c into main May 26, 2023
2 checks passed
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.

None yet

1 participant