-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Create Core-Plugin #281
base: main
Are you sure you want to change the base?
Create Core-Plugin #281
Conversation
|
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.
I created the packages in a subdirectory, and not in a nested monorepo, because I think it's not required, as we are already having a parent directory. Let me know what you think about it!
Nice, I like the This means we can delete Update: I take it we use the same naming convention for all plugins we release, agreed? E.g. |
Yeah sure 👍 The only thing that made me think, is that the packages are living not in a nested monorepo, but just in a subdirectory, but that's fine I guess 👍 |
There seems to be an issue with the pre-commit hook in husky, caused by a recursive script in |
@@ -29,7 +29,7 @@ | |||
"changeset": "changeset && pnpm install", | |||
"clean": "pnpm --recursive --parallel clean", | |||
"clean:nodemodules": "find . -type d -name \"node_modules\" -exec rm -fr {} +", | |||
"dev": "pnpm --recursive --parallel dev", |
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.
I removed these packages, so they don't start the dev server with all packages, we can remove that filter again though :)
@@ -55,6 +55,24 @@ export const createCliNamespace = (ctx: Ctx) => { | |||
getAppName(ctx.appDir) | |||
) | |||
); | |||
fs.renameSync( |
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.
forgot to rename the extensions namespace
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.
Moved this to #283.
@@ -7,7 +7,8 @@ | |||
"clean": "rimraf build", | |||
"copy-templates": "copyfiles ./src/templates/* ./build/templates", | |||
"format": "prettier --plugin-search-dir . --write .", | |||
"build": "tsc -p tsconfig.json", | |||
"build": "npm run clean && run-s build:cli copy-templates", |
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.
forgot to copy the templates during the build step
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.
Moved this to #283.
Yes I agree, that's fine.
Which recursive script? |
I believe its the test script inide the |
Found it. Modify
|
Figured it out.
import { test, expect } from '@playwright/test';
test('homepage has Playwright in title and get started link linking to the intro page', async ({
page
}) => {
await page.goto('https://playwright.dev/');
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Playwright/);
}); Does SvelteKit have an example of how to write tests for a SvelteKit lib project? I'm not aware of it, so we may have to come up with our own setup. |
closes #280