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

refactor: migrate arkdark to arktype repo #755

Merged
merged 10 commits into from
May 16, 2023
Merged

refactor: migrate arkdark to arktype repo #755

merged 10 commits into from
May 16, 2023

Conversation

ShawnMorreau
Copy link
Collaborator

@ShawnMorreau ShawnMorreau commented May 11, 2023

Move Arkdark into Dev
Fixed bleeding highlights

Copy link
Member

@ssalbdivad ssalbdivad left a comment

Choose a reason for hiding this comment

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

Looks good overall, a couple tweaks. Going to take a look at it locally and see if anything jumps out, but hopefully will be fine.

README.md Outdated
@@ -19,7 +19,7 @@
<!-- @snipEnd -->

```ts @blockFrom:dev/test/examples/type.ts
import { type } from "arktype"
import { type } from "../../../src/main.js"
Copy link
Member

Choose a reason for hiding this comment

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

This is a regression but I think it's just because I manually changed them recently 😂 Can you either manually change them back or fix the snip transform so they import from arktype?

@@ -0,0 +1,13 @@
// A launch configuration that launches the extension inside a new window
Copy link
Member

Choose a reason for hiding this comment

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

Could we move this to the repo root and still have it open from ./dev/arkdark?

@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
Copy link
Member

Choose a reason for hiding this comment

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

Where does this keep coming from 🤣

@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 re-do
Copy link
Member

Choose a reason for hiding this comment

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

What's "re-do"?

Copy link
Member

Choose a reason for hiding this comment

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

(you can just delete all this stuff it is covered by the repo root LICENSE)

Copy link
Member

Choose a reason for hiding this comment

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

Let's rename this to arkdark.scratch.ts so it doesn't look like we're supposed to be running it as a test.

}
]
},
"__metadata": {
Copy link
Member

Choose a reason for hiding this comment

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

Is this all supposed to be here? I don't think I've ever seen it before.

Copy link
Member

Choose a reason for hiding this comment

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

Can we get rid of this and rely on the root tsconfig? If that doesn't work it's fine to keep it

Copy link
Member

Choose a reason for hiding this comment

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

This needs to be .gitignored, or change the name to arkDark.temp.json or something so it will match one of our existing ignores.

if (this.snapRequiresUpdate(expectedSerialized)) {
const snapshotArgs: SnapshotArgs = {
position: caller(),
serializedValue: this.serializedActual
position: caller({
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we revert these now that they're not needed. People will be confused by the nonexistent hack 😅

@@ -68,7 +68,7 @@ export const formatFilePath = (

export const caller = (options: CallerOfOptions = {}): SourcePosition => {
let upStackBy = options.upStackBy ?? 0
if (!options.methodName) {
if (!options.methodName && !options.upStackBy) {
Copy link
Member

Choose a reason for hiding this comment

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

This we keep, definitely an improvement 👍

Copy link
Member

@ssalbdivad ssalbdivad left a comment

Choose a reason for hiding this comment

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

Looks great. Excited to try the new highlighting, looks much better 💯

@@ -10,6 +10,7 @@ tmp
.cache-loader
.attest
coverage
/**/themes/*.json
Copy link
Member

Choose a reason for hiding this comment

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

Ideally in the future this should be the specific path to the folder you want to exclude, since it's not like this is being generated anywhere else

@ssalbdivad ssalbdivad changed the title feat: ArkDarkv2 refactor: migrate arkdark to arktype repo May 16, 2023
@ssalbdivad ssalbdivad merged commit 1615ada into main May 16, 2023
@ssalbdivad ssalbdivad deleted the arkdark2 branch May 16, 2023 06:25
ahrjarrett pushed a commit to ahrjarrett/arktype-fork that referenced this pull request May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done (merged or closed)
Development

Successfully merging this pull request may close these issues.

None yet

2 participants