diff options
author | 2021-06-08 08:10:56 -0700 | |
---|---|---|
committer | 2021-06-08 11:10:56 -0400 | |
commit | 6bca7c83a7e2d62015f45f873b0f69f11b4d902b (patch) | |
tree | 5662630e51c6e6e743785d308785cff2e47568f0 /packages/create-astro/src/components/Finalize.tsx | |
parent | 9594447335b7fa15f82c0789f18a3fe02ec20d70 (diff) | |
download | astro-6bca7c83a7e2d62015f45f873b0f69f11b4d902b.tar.gz astro-6bca7c83a7e2d62015f45f873b0f69f11b4d902b.tar.zst astro-6bca7c83a7e2d62015f45f873b0f69f11b4d902b.zip |
redesign create-astro (#301)
* redesign create astro
* add changeset
* Use npm start
* Update the astro version
* Adds the changeset
Co-authored-by: Fred Schott <fks@Freds-MBP.attlocal.net>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Diffstat (limited to 'packages/create-astro/src/components/Finalize.tsx')
-rw-r--r-- | packages/create-astro/src/components/Finalize.tsx | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/packages/create-astro/src/components/Finalize.tsx b/packages/create-astro/src/components/Finalize.tsx deleted file mode 100644 index c7aeaad36..000000000 --- a/packages/create-astro/src/components/Finalize.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import React, { FC, useEffect } from 'react'; -import { Box, Text } from 'ink'; -import { relative } from 'path'; -import { cancelProcessListeners } from '../utils'; - -const Finalize: FC<{ context: any }> = ({ context: { use, projectName } }) => { - useEffect(() => { - cancelProcessListeners(); - process.exit(0); - }, []); - - const projectPath = `./${relative(process.cwd(), projectName)}`; - - return ( - <> - <Box display="flex"> - <Text color="#17C083">{'[ yes ]'}</Text> - <Text> - {' '} - Project initialized at <Text color="#3894FF">{projectPath}</Text> - </Text> - </Box> - <Box display="flex" marginY={1}> - <Text dimColor>{'[ tip ]'}</Text> - <Box display="flex" marginLeft={1} flexDirection="column"> - <Text>Get started by running</Text> - <Text color="#3894FF">cd {projectPath}</Text> - <Text color="#3894FF">{use} start</Text> - </Box> - </Box> - </> - ); -}; - -export default Finalize; |