-
Notifications
You must be signed in to change notification settings - Fork 522
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
feat(less): new less package #1017
Conversation
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
e2e/less/package.json
Outdated
"name": "e2e-less", | ||
"private": true, | ||
"devDependencies": { | ||
"@bazel/less": "file:../../dist/bin/packages/less/npm_package" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be "latest" - after we push the first time, the e2e directory will be self-contained
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha!
packages/less/src/index.bzl
Outdated
doc = """Label that points to the lessc binary to run. | ||
If you install your npm packages to a workspace named something other than "npm", | ||
you may need to set this to `@my_npm_name//less/bin:lessc`""", | ||
default = Label("@npm//less/bin:lessc"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be default = Label("@npm//@bazel/less/bin:less"),
so by default it uses the index.js file in the npm package and requires the version of less that @bazel/less depends on and not a user version by mistake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add less to /docs/_includes/drawer.html
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome thanks for getting this cleaned up! let's chat about what you'd like to work on next :)
Other information
Feature was requested in angular/angular#19058 and myself.
I saw @alexeagle made a pull request for Less support and one of the comments was support for
include-paths
. According to Alex, it seem that feature isn't needed as it'll be eventually deprecated as well in the Sass rules eventually so I didn't include it in this implementation.I didn't include
compress
as an option either because, according to Less's documentation, it is currently deprecated.