-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: handle plugins with Vite [LIBS-610] (#863)
* chore: update yarn.lock * refactor: use Vite Node API for starting apps * chore: extend gitignore * feat: use Vite Node API to build apps * feat: build & serve plugins with Vite * chore: clean up unused "start app or plugin" logic * chore: clean up old plugin code (yay!) * chore: update pwa example app to jsx extensions * chore: one more JSX * feat: make building apps and plugins independent * chore: update vite dependency location * fix(deploy): support deploying plugins without an app * chore: comment * fix: default config type * fix: solve clunky exit from start script with ctrl-C * fix: handle undefined defaults * fix: leaner caching in dev (wip) * fix: handling 400+ & 500+ responses * refactor: move strategies to new file * fix: dev caching strategy * refactor: inject `isPlugin` var at bootstrap time * chore: delete unused static vite config * chore: performance cost comment * fix: print build error * chore: comment * fix: init boilerplate with .jsx extensions * refactor: reorganize init boilerplate * fix: smaller env for SW * feat: improved logging * feat: add host option to start command * refactor: config parsing * docs: add docs for --force option on start * chore: improve comment
- Loading branch information
1 parent
197f58a
commit ca5be0d
Showing
45 changed files
with
950 additions
and
1,468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/cli/assets | ||
**/locales/index.js | ||
cli/config/init.entrypoint.js | ||
cli/config/init.App.test.js | ||
# These are to avoid lint errors like 'cannot find module App.jsx' | ||
cli/config/init/entrypoint.jsx | ||
cli/config/init/App.test.jsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ cli/assets | |
|
||
# misc | ||
.DS_Store | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ const config = { | |
type: 'app', | ||
|
||
entryPoints: { | ||
app: './src/App.js', | ||
app: './src/App.jsx', | ||
}, | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ const config = { | |
type: 'lib', | ||
|
||
entryPoints: { | ||
lib: './src/index.js', | ||
lib: './src/index.jsx', | ||
}, | ||
} | ||
|
||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.