forked from redwoodjs/redwood
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:redwoodjs/redwood into feature/rw-s…
…erve-web * 'main' of github.com:redwoodjs/redwood: (40 commits) Support generating typescript cells and pages | Autodetect ts project (redwoodjs#2279) create-redwood-app messages: moved app start commands to end (redwoodjs#2278) Add import type to configuration files (redwoodjs#2214) Bump @reach/skip-nav from 0.13.2 to 0.15.0 (redwoodjs#2237) Adding Setup Deploy Render Command (redwoodjs#2099) Disable role linting in Routes (redwoodjs#2318) v0.30.1 (redwoodjs#2322) teardown should attempt to delete dbName table (redwoodjs#2083) Restore @storybook/addon-a11y (redwoodjs#2309) fix(auth): Implement automatic token refresh on supported providers (redwoodjs#2277) fix(cli): move api-server dep from api to cli (redwoodjs#2307) Static typing for cells (redwoodjs#2208) Recommended Babel package upgrades (dependabot) (redwoodjs#2255) v0.30.0 (redwoodjs#2301) upgrade Prisma v2.21.0 (redwoodjs#2273) Further improvements to CONTRIBUTING.md (redwoodjs#2261) Adds better messages for rwt link | Watcher does not exist on build failure | Only remove node_modules after a succesful framework build (redwoodjs#2269) Update named param types in router readme (redwoodjs#2262) Bump core-js from 3.6.5 to 3.10.1 (redwoodjs#2243) Fix: webpack optimizations for JS (redwoodjs#2235) ...
- Loading branch information
Showing
209 changed files
with
6,522 additions
and
3,992 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,5 +1,5 @@ | ||
{ | ||
"version": "0.28.4", | ||
"version": "0.30.1", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true, | ||
"command": { | ||
|
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
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
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
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
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
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
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
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
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
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,4 @@ | ||
export { SupportedAuthTypes } from './authClients' | ||
|
||
export { AuthProvider, AuthContextInterface } from './AuthProvider' | ||
export { AuthProvider, AuthContextInterface, CurrentUser } from './AuthProvider' | ||
export { useAuth } from './useAuth' |
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
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
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import execa from 'execa' | ||
import terminalLink from 'terminal-link' | ||
|
||
import { getPaths } from 'src/lib' | ||
|
||
export const command = 'render <side> [...commands]' | ||
export const description = 'Build command for Render deploy' | ||
export const builder = (yargs) => { | ||
yargs | ||
.positional('side', { | ||
choices: ['api', 'web'], | ||
description: 'select side to build', | ||
type: 'string', | ||
}) | ||
.option('build', { | ||
description: 'Build for production', | ||
type: 'boolean', | ||
default: 'true', | ||
}) | ||
.option('prisma', { | ||
description: 'Apply database migrations', | ||
type: 'boolean', | ||
default: 'true', | ||
}) | ||
.option('data-migrate', { | ||
description: 'Migrate the data in your database', | ||
type: 'boolean', | ||
default: 'true', | ||
alias: 'dm', | ||
}) | ||
.epilogue( | ||
`For more commands, options, and examples, see ${terminalLink( | ||
'Redwood CLI Reference', | ||
'https://redwoodjs.com/docs/cli-commands#deploy' | ||
)}` | ||
) | ||
} | ||
|
||
export const handler = async ({ side, build, prisma, dm: dataMigrate }) => { | ||
const paths = getPaths() | ||
let commandSet = [] | ||
if (side == 'api') { | ||
if (build) { | ||
commandSet.push('yarn rw build api') | ||
} | ||
if (prisma) { | ||
commandSet.push('yarn rw prisma migrate deploy') | ||
} | ||
if (dataMigrate) { | ||
commandSet.push('yarn rw dataMigrate up') | ||
} | ||
} else if (side == 'web') { | ||
if (build) { | ||
commandSet.push('yarn') | ||
commandSet.push('yarn rw build web') | ||
} | ||
} | ||
|
||
execa(commandSet.join(' && '), { | ||
shell: true, | ||
stdio: 'inherit', | ||
cwd: paths.base, | ||
extendEnv: true, | ||
cleanup: true, | ||
}) | ||
} |
Oops, something went wrong.