-
Notifications
You must be signed in to change notification settings - Fork 35
chore: re-enable turbo cache by pulling plasmic version info #6007
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,4 +39,5 @@ next-env.d.ts | |
| storybook-static | ||
|
|
||
| # build files for pyodide packaging | ||
| /.pyodide | ||
| /.pyodide | ||
| .plasmic-latest-info.txt | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| { | ||
| "platform": "nextjs", | ||
| "code": { | ||
| "lang": "ts", | ||
| "scheme": "blackbox", | ||
| "reactRuntime": "classic" | ||
| }, | ||
| "style": { | ||
| "scheme": "css-modules", | ||
| "defaultStyleCssFilePath": "" | ||
| }, | ||
| "images": { | ||
| "scheme": "public-files", | ||
| "publicDir": "../public", | ||
| "publicUrlPrefix": "/" | ||
| }, | ||
| "tokens": { | ||
| "scheme": "theo", | ||
| "tokensFilePath": "plasmic-tokens.theo.json" | ||
| }, | ||
| "srcDir": "components", | ||
| "defaultPlasmicDir": "./plasmic", | ||
| "projects": [], | ||
| "globalVariants": { | ||
| "variantGroups": [] | ||
| }, | ||
| "wrapPagesWithGlobalContexts": true, | ||
| "nextjsConfig": { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FWIW, I think this plasmic.json isn't configured correctly (e.g. we use app router, not pages router).
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh ya this was intentionally the autogenerated plasmic.json since i assumed it wasn't needed with the way we use plasmic. |
||
| "pagesDir": "../pages" | ||
| }, | ||
| "cliVersion": "0.1.340", | ||
| "$schema": "https://unpkg.com/@plasmicapp/[email protected]/dist/plasmic.schema.json" | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,12 +19,16 @@ | |
| "cache": false | ||
| }, | ||
| "test": {}, | ||
| "@opensource-observer/frontend#build": { | ||
| "dependsOn": ["^build"], | ||
| "outputs": ["out/**", ".next/**", "!.next/cache/**", ".pyodide/**"], | ||
| "@opensource-observer/frontend#plasmic:info": { | ||
| "outputs": [".plasmic-latest-info.txt"], | ||
| "env": ["PLASMIC_PROJECT_ID", "PLASMIC_PROJECT_API_TOKEN"], | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I should remove the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. BTW, you can authenticate via environment variables with the CLI @IcaroG I'm kinda forgetting now how Plasmic CLI handles the read token so that CI doesn't need to log in? Do you recall how GitHub actions authenticates for something like this? |
||
| "cache": false | ||
| }, | ||
| "@opensource-observer/frontend#build": { | ||
| "dependsOn": ["^build", "@opensource-observer/frontend#plasmic:info"], | ||
| "outputs": ["out/**", ".next/**", "!.next/cache/**", ".pyodide/**"], | ||
| "env": ["PLASMIC_PROJECT_ID", "PLASMIC_PROJECT_API_TOKEN"] | ||
| }, | ||
| "@opensource-observer/frontend#deploy": { | ||
| "dependsOn": ["^build"], | ||
| "outputs": ["out/**", ".next/**", "!.next/cache/**", ".pyodide/**"], | ||
|
|
||
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.
@IcaroG is there a plasmic loader native way to get the current version number so that we can cache properly?
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.
🤞 hope there is cause this was a nasty hack