-
Notifications
You must be signed in to change notification settings - Fork 19
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
Created moon project for diff-generator in tools directory #344
Conversation
🦋 Changeset detectedLatest commit: 9459e3a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Run report for 9459e3a9Total time: 41.2s | Comparison time: 1m 15s | Estimated savings: 34.6s (45.6% faster)
Expanded report
Touched files
|
…ma to helper function
…detection function
…detect-deleted-tokens branch
…trum-tokens into detect-deleted-tokens
…files in previous commit
…ma to helper function
…detection function
…trum-tokens into detect-deleted-tokens
…recated in change
…se and vice versa
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.
Could you also update the root README.md file to include the diff generator in the list of packages in the mono repo? https://github.com/adobe/spectrum-tokens/blob/main/README.md?plain=1#L18
tools/diff-generator/package.json
Outdated
"version": "0.0.1", | ||
"description": "Creates diffs for tokens", | ||
"type": "module", | ||
"private": true, |
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.
If "private": true
is in this file it won't publish this package to npm. Could you just delete it?
- ava | ||
- --watch | ||
local: true | ||
platform: node |
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.
Could you add a task for code coverage? It's in the package.json file, but it's ok to have it here too so it can be run in github actions for as part of moon ci
tools/diff-generator/package.json
Outdated
@@ -0,0 +1,37 @@ | |||
{ | |||
"name": "diff-generator", |
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.
We should update this name to include the @adobe
org namespace. What do you think of @adobe/token-diff-generator
? Or @adobe/token-diff
?
.changeset/small-radios-mate.md
Outdated
@@ -0,0 +1,5 @@ | |||
--- | |||
"diff-generator": major |
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.
We will need to update this to the new package name in tools/diff-generator/package.json
.
tools/diff-generator/README.md
Outdated
Installing the package is done preferably with pnpm. | ||
|
||
``` | ||
pnpm i @adobe/spectrum-tokens/token-diff-generator |
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 would just be the name
in the tools/diff-generator/package.json
file. So, pnpm I @adobe/token-diff-generator
. NPM doesn't support sub packages like this.
tools/diff-generator/README.md
Outdated
Import the token diff generator as a module per ES6 standards. | ||
|
||
``` | ||
import tokenDiff from “@adobe/spectrum-tokens/token-diff-generator”; |
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.
Similar to the comment above, this would just be the name property in the package.json file.
Description
This commit contains the setup of the diff generating tool using the node-tool template.
Related Issue
This project intends to improve diff generation between two schemas.
Motivation and Context
The motivation behind this project is to improve the diff generation between two schemas. Currently, the diff generation is inaccurate. For example, schema values that aren't deleted get marked as deleted.
How Has This Been Tested?
The project hasn't been tested yet, because this PR only contains the project setup.
Types of changes
Checklist: