Skip to content

Commit

Permalink
Release/cli/3.0.20 (#119)
Browse files Browse the repository at this point in the history
* docs: remove unused pages; minor tweaks (#118)

* fix(CLI): ensure component lib CLI outputs correct instructions (#116)

* fix(CLI templates): update project readme with correct local dev command (#117)

* fix(CLI templates): remove opinions from base component (#115)

* build: CLI 3.0.20
  • Loading branch information
andrewrubin authored Mar 28, 2024
1 parent 80d6dd8 commit a4add5a
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 383 deletions.
2 changes: 1 addition & 1 deletion cli/lib/print-next-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const printNextSteps = (dir, componentsList) => {
)} \n- npm install`

if (componentsList.length) {
logMessage += ` \n\n🧩 Looks like this template requires components from ${chalk.bold("@wethegit/component-library")}. \nAfter installing dependencies run: \n- npx components-cli init \n- npx components-cli add ${componentsList.join(' ')}\n`
logMessage += ` \n\n🧩 Looks like this template requires components from ${chalk.bold("@wethegit/component-library")}. \nAfter installing dependencies run: \n- npx @wethegit/components-cli init \n- npx @wethegit/components-cli add ${componentsList.join(' ')}\n`
}

logMessage += `\n- npm start`;
Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wethegit/corgi",
"version": "3.0.19",
"version": "3.0.20",
"description": "Command line interface for use with the corgi framework.",
"main": "bin/index.js",
"bin": {
Expand Down
7 changes: 2 additions & 5 deletions cli/templates/component/component.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import { useEffect, useState } from "react"

import { useLocale } from "@local/hooks"
import { classnames } from "@local/utilities"

import styles from "./COMPONENT_SLUG.module.scss"

export function COMPONENT_NAME({ className, ...props }) {
export function COMPONENT_NAME({ ...props }) {
const { globals, page } = useLocale()

return (
<div className={classnames([styles.wrap, className])} {...props}>
<div {...props}>
<code>COMPONENT_NAME</code>!
</div>
)
Expand Down
12 changes: 0 additions & 12 deletions cli/templates/component/component.module.scss

This file was deleted.

2 changes: 1 addition & 1 deletion cli/templates/project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Check out the official [corgi documentation](https://wethegit.github.io/corgi/)
```bash
nvm use
npm install
npm run dev
npm start
```

## Build for production
Expand Down
7 changes: 0 additions & 7 deletions docs/docs/hooks/use-async.mdx

This file was deleted.

52 changes: 0 additions & 52 deletions docs/docs/hooks/use-breakpoints.mdx

This file was deleted.

7 changes: 0 additions & 7 deletions docs/docs/hooks/use-local-storage.mdx

This file was deleted.

7 changes: 0 additions & 7 deletions docs/docs/hooks/use-prevent-scroll.mdx

This file was deleted.

7 changes: 0 additions & 7 deletions docs/docs/hooks/use-user-prefs.mdx

This file was deleted.

7 changes: 6 additions & 1 deletion docs/docs/quick-start/create-a-project.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ cd my-web-app
npm install
```

To build the project locally and watch for changes, run:
```base
npm start
```

🎉 **That's it! You're ready to start building your web app.**

:::caution Node.JS & NVM
corgi requires **[Node.js](https://nodejs.org/en/) version 16 or greater**. If you use `nvm`, run the following before installing dependencies:
corgi requires **[Node.js](https://nodejs.org/en/) version 20 or greater**. If you use `nvm`, run the following before installing dependencies:

```bash
nvm use
Expand Down
9 changes: 9 additions & 0 deletions docs/docs/styles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
id: styles
title: Styles
position: 6
---

# Styles

Out-of-the-box, corgi does not enforce any CSS opinions. Check out the [Next JS documentation](https://nextjs.org/docs/app/building-your-application/styling) for more information on adding styles.
8 changes: 0 additions & 8 deletions docs/docs/styles/_category_.json

This file was deleted.

46 changes: 0 additions & 46 deletions docs/docs/styles/component-styles.mdx

This file was deleted.

43 changes: 0 additions & 43 deletions docs/docs/styles/global-styles.mdx

This file was deleted.

126 changes: 0 additions & 126 deletions docs/docs/styles/grid-system.mdx

This file was deleted.

Loading

0 comments on commit a4add5a

Please sign in to comment.