Skip to content

Commit

Permalink
refactor(cli): Update cli.js and package.json, simplify docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Jun 3, 2024
1 parent 2a5e1b6 commit be32917
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 155 deletions.
7 changes: 1 addition & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,7 @@ The source code is divided into four main folders:

> Note: To contribute to the website, you need to have a basic understanding of [Next.js](https://nextjs.org/docs) and [MDX.](https://mdxjs.com/)
To run the website locally:
- Go to [Liveblocks](https://liveblocks.io/) to create an account
- Get your API key and rename the `.env.example` to `.env`
- Add the API key to the `NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY`.

Then, you'll need to install the dependencies and run the development server following the commands below:
Then, you'll need to install the dependencies and run the development server following the commands below:

```bash
pnpm install
Expand Down
5 changes: 5 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env node

const { execSync } = require('child_process');

execSync("npx @million/install@latest", { stdio: 'inherit' });
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "million",
"version": "3.1.7",
"version": "3.1.8",
"description": "Make React Faster. Automatically.",
"keywords": [
"million",
Expand Down Expand Up @@ -105,17 +105,16 @@
"unpkg": "dist/packages/million.mjs",
"module": "dist/packages/million.mjs",
"types": "dist/packages/million.d.ts",
"bin": {
"million": "./packages/cli/dist/index.js"
},
"bin": "./cli.js",
"files": [
"dist/**/*",
"packages/cli/dist/index.js",
"react.d.ts",
"jsx-runtime.d.ts",
"compiler.d.ts",
"react-server.d.ts",
"types.d.ts"
"types.d.ts",
"cli.js"
],
"scripts": {
"build": "unbuild",
Expand All @@ -130,7 +129,6 @@
"dependencies": {
"@babel/core": "^7.23.7",
"@babel/types": "^7.23.6",
"@million/install": "latest",
"@rollup/pluginutils": "^5.1.0",
"kleur": "^4.1.5",
"undici": "^6.3.0",
Expand Down Expand Up @@ -163,5 +161,5 @@
"vite-tsconfig-paths": "^4.2.3",
"vitest": "1.0.1"
},
"packageManager": "pnpm@9.1.2"
"packageManager": "pnpm@9.1.4"
}
Loading

0 comments on commit be32917

Please sign in to comment.