question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Referencing alias without generating

See original GitHub issue

Hi,

Is there a way to include/reference alias without generating entries into output files?

I don’t find any solution into documentation, examples or different projects which use Style Dictionnary to load JSON and assign them like alias without include or source.

At this time, I manage to get what I need with the help of filter by excluding tokens with some prop.path but it’s very untenable.

Thank you for you help. Xavier.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
dbanksdesigncommented, Oct 14, 2019

If you would like to open a PR that would be great! Just to confirm, that PR would add file path and if the token was from ‘include’ or ‘source’ onto each token. If you could add test cases to verify the functionality that would be greatly appreciated, and take a quick glance at the contributing guidelines. Thanks!

0reactions
dbanksdesigncommented, Apr 16, 2021

This is in 3.0 and available today with npm install style-dictionary@next

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reference alias (calculated in SELECT) in WHERE clause
You can't reference an alias except in ORDER BY because SELECT is the second last clause that's evaluated. Two workarounds:
Read more >
CREATE ALIAS statement - IBM
The CREATE ALIAS statement defines an alias for a module, nickname, sequence, table, view, or another alias. Aliases are also known as synonyms....
Read more >
Aliases API | Elasticsearch Guide [8.5] | Elastic
Adds a data stream or index to an alias. If the alias doesn't exist, the add action creates it. Removes a data stream...
Read more >
SQL Aliases - W3Schools
SQL aliases are used to give a table, or a column in a table, a temporary name. Aliases are often used to make...
Read more >
postgresql - Reference column alias in same SELECT list
It's inconvenient sometimes, but it's SQL standard behavior, and it prevents ambiguities. Expressions in the SELECT list cannot reference ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found