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

feat(less): new less package #1017

Merged
merged 4 commits into from
Aug 17, 2019
Merged

feat(less): new less package #1017

merged 4 commits into from
Aug 17, 2019

Conversation

joshvanallen
Copy link
Contributor

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.

@googlebot
Copy link

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.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

"name": "e2e-less",
"private": true,
"devDependencies": {
"@bazel/less": "file:../../dist/bin/packages/less/npm_package"
Copy link
Collaborator

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

Copy link
Contributor Author

@joshvanallen joshvanallen Aug 16, 2019

Choose a reason for hiding this comment

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

Gotcha!

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"),
Copy link
Collaborator

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

Copy link
Collaborator

@gregmagolan gregmagolan left a 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?

Copy link
Collaborator

@alexeagle alexeagle left a 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 :)

@alexeagle alexeagle dismissed gregmagolan’s stale review August 17, 2019 14:25

requested changes were made

@alexeagle alexeagle merged commit ec6e0d1 into bazel-contrib:master Aug 17, 2019
@bazel-contrib bazel-contrib deleted a comment from joshvanallen Aug 18, 2019
@joshvanallen joshvanallen deleted the less branch August 18, 2019 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants