### Launching Test Runner with npm Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/react-ts/README.md This command launches the test runner in an interactive watch mode, allowing developers to run tests and see results as they make changes. It's part of the Create React App's built-in testing setup. ```Shell npm test ``` -------------------------------- ### Example Interactive Prompts for Project Setup Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/README.md This snippet illustrates the typical interactive prompts presented by `create-ccc-app` when creating a new project, allowing users to define the project name, use TypeScript, and select a JavaScript framework. ```bash ✔ What is your project named? … my-ckb-app ✔ Would you like to use TypeScript? … No / Yes ? Select a framework to use: › - Use arrow-keys. Return to submit. ❯ Create Next App (Next.js) v14 Create React App ``` -------------------------------- ### Building Production App with npm Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/react-ts/README.md This command builds the React application for production, optimizing it for performance and bundling all assets into the `build` folder. The output is minified and ready for deployment. ```Shell npm run build ``` -------------------------------- ### Starting Development Server for Next.js Project (Bash) Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/next14-ts/README.md This snippet provides various commands to start the development server for a Next.js application. It lists common package managers like npm, yarn, pnpm, and bun, allowing developers to choose their preferred method. The server typically runs on `http://localhost:3000`. ```bash npm run dev # or yarn dev # or pnpm dev # or bun dev ``` -------------------------------- ### Starting Development Server with npm in React Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/react-js/README.md This command runs the React application in development mode, typically opening it in a browser at `http://localhost:3000`. It enables hot-reloading for changes and displays lint errors in the console. ```npm npm start ``` -------------------------------- ### Building Production Bundle with npm in React Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/react-js/README.md This command builds the React application for production, optimizing and minifying the code into the `build` folder. The output is ready for deployment, with filenames including hashes for caching. ```npm npm run build ``` -------------------------------- ### Starting the Application in Development Mode Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/nest-ts/README.md This command starts the NestJS application in its standard development mode. It's typically used for initial setup and running the application without watch features. ```Shell $ pnpm run start ``` -------------------------------- ### Starting Development Server with npm Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/react-ts/README.md This command runs the React application in development mode, typically opening it in a web browser at http://localhost:3000. It enables live reloading on code edits and displays lint errors in the console. ```Shell npm start ``` -------------------------------- ### Ejecting Create React App Configuration with npm Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/react-js/README.md This command is a one-way operation that removes the single build dependency (Create React App) and copies all underlying configuration files (webpack, Babel, ESLint) directly into the project. This provides full control over the build setup but means the project is no longer managed by Create React App. ```npm npm run eject ``` -------------------------------- ### Installing Project Dependencies with pnpm Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/nest-ts/README.md This command installs all project dependencies using pnpm, a fast and disk-space efficient package manager. It ensures all required packages are available for development and production environments. ```Shell $ pnpm install ``` -------------------------------- ### Ejecting Create React App Configuration with npm Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/react-ts/README.md This command performs a one-way operation that removes the single build dependency (react-scripts) and copies all underlying configuration files (webpack, Babel, ESLint) directly into the project. This grants full control over the build setup but means the project is no longer managed by Create React App's abstractions. ```Shell npm run eject ``` -------------------------------- ### Basic Usage of create-ccc-app CLI Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/README.md This command demonstrates the fundamental way to invoke the `create-ccc-app` CLI tool, allowing users to specify a project name and various options for project setup. ```bash npx create-ccc-app@latest [project-name] [options] ``` -------------------------------- ### Starting the Application in Production Mode Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/nest-ts/README.md This command starts the NestJS application in production mode, typically after building the application for optimized performance and stability. It's used for deploying the application to a live environment. ```Shell $ pnpm run start:prod ``` -------------------------------- ### Starting the Application in Watch Mode Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/nest-ts/README.md This command starts the NestJS application in watch mode, which automatically recompiles and restarts the server upon file changes. This is ideal for continuous development and rapid iteration. ```Shell $ pnpm run start:dev ``` -------------------------------- ### Launching Test Runner with npm in React Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/react-js/README.md This command launches the test runner in interactive watch mode, allowing developers to run tests and see results as code changes. It's used for continuous testing during development. ```npm npm test ``` -------------------------------- ### Interactive Project Creation with create-ccc-app Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/README.md These commands initiate an interactive session with `create-ccc-app`, guiding the user through prompts to configure a new CKB application project, including framework and language choices. ```bash npx create-ccc-app@latest # or yarn create ccc-app # or pnpm create ccc-app # or bunx create-ccc-app ``` -------------------------------- ### Running Development Server with npm, yarn, pnpm, or bun (Bash) Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/next14-js/README.md This snippet provides commands to start the development server for a Next.js application using various package managers. It allows developers to choose their preferred tool to run the application locally, making the development server accessible via http://localhost:3000. ```bash npm run dev # or yarn dev # or pnpm dev # or bun dev ``` -------------------------------- ### Non-interactive Usage of create-ccc-app CLI Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/README.md This command shows the syntax for non-interactive project creation using `create-ccc-app`, where all configuration is passed via command-line arguments, providing a streamlined setup process. ```bash npx create-ccc-app@latest [project-name] [options] ``` -------------------------------- ### Creating Next.js 14 JavaScript Project with Yarn and Skip Install Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/README.md This command shows how to non-interactively create a new Next.js 14 project named `my-ckb-app` using JavaScript, explicitly setting `yarn` as the package manager and skipping the automatic installation of dependencies. ```bash yarn create ccc-app my-ckb-app --js --next14 --skip-install ``` -------------------------------- ### Running End-to-End Tests Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/nest-ts/README.md This command executes the end-to-end (e2e) tests for the application. E2E tests simulate real user scenarios to ensure the entire system works as expected from start to finish, including integrations. ```Shell $ pnpm run test:e2e ``` -------------------------------- ### Creating Create React App JavaScript Project with pnpm Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/README.md This command illustrates how to non-interactively create a new Create React App project named `my-ckb-app` using JavaScript, with `pnpm` explicitly specified as the package manager for dependency installation. ```bash pnpm create ccc-app my-ckb-app --js --cra ``` -------------------------------- ### Creating Next.js 14 TypeScript Project with npm Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/README.md This command demonstrates how to non-interactively create a new Next.js 14 project named `my-ckb-app` using TypeScript, with `npm` as the default package manager for dependency installation. ```bash npx create-ccc-app@latest my-ckb-app --ts --next14 ``` -------------------------------- ### Running Unit Tests Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/nest-ts/README.md This command executes the unit tests for the application. Unit tests verify the smallest testable parts of an application, ensuring individual components function correctly in isolation. ```Shell $ pnpm run test ``` -------------------------------- ### Generating Test Coverage Report Source: https://github.com/ckb-devrel/create-ccc-app/blob/master/app-templates/nest-ts/README.md This command runs tests and generates a test coverage report, indicating which parts of the code are exercised by the tests. It helps identify untested areas for further testing and improve code quality. ```Shell $ pnpm run test:cov ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.