Referencing alias without generating
See original GitHub issueHi,
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:
- Created 4 years ago
- Reactions:1
- Comments:11 (9 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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!
This is in 3.0 and available today with
npm install style-dictionary@next