Sitelet https://web.archive.org/web/20201013221801/https://github.com/angular/components/pull/17978
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: update scss-bundle to avoid node-sass dependency #17978

Conversation

@devversion
Copy link
Member

@devversion devversion commented Dec 16, 2019 •

The scss-bundle package has a dependency on node-sass in the older
versions. This makes our tooling reliant on native bindings, and requires
additionally work in framework where we integrate our tooling into a different
environment setup (e.g. different node version).

Regardless of that though, it's generally better not relying on node-sass
or native bindings since we use sass (not node-sass) for building with Bazel.

Note: we still have an unused dependency on node-sass through gulp-sass.. but that will be gone eventually.. and at the moment we don't use node-sass at all (which is good)

The `scss-bundle` package has a dependency on `node-sass` in the older
versions. This makes our tooling reliant on native bindings, and requires
additionally work in framework where we integrate our tooling into a different
environment setup (e.g. different node version).

Regardless of that though, it's generally better not relying on node-sass
or native bindings since we use `sass` (not node-sass) for building with Bazel.
@devversion devversion requested review from jelbourn and angular/dev-infra-components as code owners Dec 16, 2019
@googlebot googlebot added the cla: yes label Dec 16, 2019
@@ -0,0 +1,10 @@
{
"*1": "scss-bundle requires a config file in the Bazel execroot.",
"*2": "The config is used in the src/material:theming_bundle target",

This comment has been minimized.

@devversion

devversion Dec 16, 2019 •
Author Member

I don't like that scss-bundle now requires a config file since from a Bazel perspective.. it was more convenient to just pass flags & and sometimes needed for $(location).

Though there is no way around it for now. We can create an issue to ask them to make the config file optional.. but it looks like they need it for more (e.g. determining node modules folder)

Copy link
Member

@jelbourn jelbourn left a comment

LGTM

@mmalerba mmalerba merged commit c734deb into angular:master Dec 16, 2019
10 of 12 checks passed
10 of 12 checks passed
ci/angular: merge status Status "ci/circleci: tests_saucelabs" is pending
ci/circleci: tests_saucelabs CircleCI is running your tests
Details
ci/circleci: api_golden_checks Your tests passed on CircleCI!
Details
ci/circleci: bazel_build Your tests passed on CircleCI!
Details
ci/circleci: build_release_packages Your tests passed on CircleCI!
Details
ci/circleci: e2e_tests Your tests passed on CircleCI!
Details
ci/circleci: lint Your tests passed on CircleCI!
Details
ci/circleci: ngcc_compatibility Your tests passed on CircleCI!
Details
ci/circleci: tests_browserstack Your tests passed on CircleCI!
Details
ci/circleci: tests_local_browsers Your tests passed on CircleCI!
Details
ci/circleci: view_engine_test Your tests passed on CircleCI!
Details
cla/google All necessary CLAs are signed
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Jan 16, 2020

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.