### Project Setup and Development Server Start (Bun) Source: https://v3.vuejs.org/guide/installation.html These commands navigate into the newly created Vue project directory, install all necessary dependencies using Bun, and then start the development server to run the application. ```bash cd bun install bun run dev ``` -------------------------------- ### Project Setup and Development Server Start (Yarn) Source: https://v3.vuejs.org/guide/installation.html These commands navigate into the newly created Vue project directory, install all necessary dependencies using Yarn, and then start the development server to run the application. ```bash cd yarn yarn dev ``` -------------------------------- ### Project Setup and Development Server Start (npm) Source: https://v3.vuejs.org/guide/installation.html These commands navigate into the newly created Vue project directory, install all necessary dependencies using npm, and then start the development server to run the application. ```bash cd npm install npm run dev ``` -------------------------------- ### Project Setup and Development Server Start (pnpm) Source: https://v3.vuejs.org/guide/installation.html These commands navigate into the newly created Vue project directory, install all necessary dependencies using pnpm, and then start the development server to run the application. ```bash cd pnpm install pnpm run dev ``` -------------------------------- ### On-Premises - Installation Source: https://ckeditor.com/docs/trial/latest/guides/export-to-pdf/quick-start.html Guides for installing CKEditor components on-premises. ```APIDOC ## On-Premises Installation ### Description Instructions for installing various CKEditor components on-premises. ### Key Areas - **Overview**: General installation information. - **Quick start**: Expedited installation guide. ``` -------------------------------- ### Install Dependencies and Start Demo with pnpm Source: https://github.com/ckeditor/ckeditor5-collaboration-samples/tree/master/collaboration-for-vue This command installs the necessary project dependencies using pnpm and then starts the development server to run the demo application. Ensure pnpm is installed globally. ```bash pnpm i && pnpm run dev ``` -------------------------------- ### Run Nuxt Development Server with Package Managers Source: https://nuxt.com/docs/getting-started/installation Commands to start the Nuxt development server. The '-- -o' or '--open' flag automatically opens the application in your default browser. Compatible with npm, yarn, pnpm, bun, and deno. ```bash npm run dev -- -o ``` ```bash yarn dev --open ``` ```bash pnpm dev -o ``` ```bash bun run dev -o # To use the Bun runtime during development # bun --bun run dev -o ``` ```bash deno run dev -o ``` -------------------------------- ### Vue.js Global Build with Composition API (CDN) Source: https://v3.vuejs.org/guide/installation.html Example of using Vue.js global build with the Composition API from a CDN. This setup is for enhancing static HTML or integrating with backend frameworks, and does not require a build step. ```html
Hello, {props.name} ); } const root = ReactDOM.createRoot(document.getElementById('root')); const element = ; root.render(element); ``` -------------------------------- ### Troubleshooting pnpm Installation on Windows Source: https://pnpm.io/installation This section guides users through manually removing broken pnpm installations on Windows when 'pnpm install' fails with a MODULE_NOT_FOUND error. It involves finding the pnpm executable's location and deleting related files before reinstalling. ```shell C:\src>pnpm install internal/modules/cjs/loader.js:883 throw err; ^ Error: Cannot find module 'C:\Users\Bence\AppData\Roaming\npm\pnpm-global\4\node_modules\pnpm\bin\pnpm.js' ←[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)←[39m ←[90m at Function.Module._load (internal/modules/cjs/loader.js:725:27)←[39m ←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)←[39m ←[90m at internal/main/run_main_module.js:17:47←[39m { code: ←[32m'MODULE_NOT_FOUND'←[39m, requireStack: [] } ``` ```shell where.exe pnpm.* ``` ```shell /c/Program Files/nodejs/pnpm ``` -------------------------------- ### NPM Pre/Post Script Example Source: https://docs.npmjs.com/cli/v7/using-npm/scripts Demonstrates how to define 'pre' and 'post' scripts in package.json to execute commands before and after a main script. 'npm run compress' will trigger 'precompress', then 'compress', and finally 'postcompress' if they exist. ```json { "scripts": { "precompress": "echo Executing pre-compress script", "compress": "echo Compressing files...", "postcompress": "echo Executing post-compress script" } } ``` -------------------------------- ### Vue.js Module Splitting with Separate JS Files Source: https://v3.vuejs.org/guide/installation.html Splitting Vue.js application code into separate JavaScript files for better manageability. This example shows how to import a component from an external file ('my-component.js') into the main application file ('index.html'). ```html
import { createApp } from 'vue' import MyComponent from './my-component.js' createApp(MyComponent).mount('#app') ``` -------------------------------- ### Example npm package.json Scripts Configuration (JSON Example) Source: https://docs.npmjs.com/cli/v7/using-npm/scripts Illustrates a typical package.json configuration for npm scripts, including lifecycle events like 'install', 'postinstall', and 'uninstall'. It shows how to specify the script files to be executed for each event. ```json { "scripts": { "install": "scripts/install.js", "postinstall": "scripts/install.js", "uninstall": "scripts/uninstall.js" } } ``` -------------------------------- ### oEmbed Provider Configuration Example Source: https://oembed.com/ Illustrative examples of URL schemes and API endpoints configuration for oEmbed providers, showing valid and invalid wildcard usage. ```text * URL scheme: `http://www.flickr.com/photos/*` * API endpoint: `http://www.flickr.com/services/oembed/` ``` ```text * `http://www.flickr.com/photos/*` OK ``` ```text * `http://www.flickr.com/photos/*/foo/` OK ``` ```text * `http://*.flickr.com/photos/*` OK ``` ```text * `http://*.com/photos/*` NOT OK ``` ```text * `*://www.flickr.com/photos/*` NOT OK ``` -------------------------------- ### Vue.js Import Maps with Composition API Source: https://v3.vuejs.org/guide/installation.html Demonstrates using Vue.js with the Composition API, utilizing Import Maps for cleaner module resolution. This setup enhances readability by aliasing the Vue CDN path, simplifying import statements in your HTML. ```html
import { createApp, ref } from 'vue' createApp({ setup() { const message = ref('Hello Vue!') return { message } } }).mount('#app') ``` -------------------------------- ### Development Installation and Scripts Source: https://www.npmjs.com/package/dompurify Provides instructions for setting up the development environment for DOMPurify. It covers installation using npm and outlines key npm scripts for development tasks such as watching for changes, running tests, and building assets. ```bash npm i ``` ```bash npm run dev ``` ```bash npm run test ``` -------------------------------- ### Scaffold a New Vue Project using Yarn Source: https://v3.vuejs.org/guide/installation.html This command employs Yarn to install and execute the official Vue project scaffolding tool, 'create-vue'. It provides an alternative method for creating a new Vue.js Single Page Application with Vite. ```bash yarn create vue ``` ```bash yarn create vue@latest ``` ```bash yarn dlx create-vue@latest ``` -------------------------------- ### Creating a React App with npm init Source: https://github.com/facebook/create-react-app This code snippet shows how to create a new React application using the `npm init` command, which is available in npm 6 and later. This is an alternative to using npx for project initialization. ```bash npm init react-app my-app ``` -------------------------------- ### install Option Source: https://www.npmjs.com/package/npm-check-updates Controls the auto-install behavior after upgrades. ```APIDOC ## install ### Description Controls the auto-install behavior after upgrades. ### Method N/A (CLI Option) ### Endpoint N/A ### Parameters #### Query Parameters - **value** (string) - Install behavior: `always`, `never`, or `prompt`. ### Request Example ```bash ncu --install always ncu --install never ncu --install prompt ``` ### Response #### Success Response (200) - **(No direct response, affects post-run behavior)** #### Response Example N/A ``` -------------------------------- ### Vue.js Composition API Component in Separate JS File Source: https://v3.vuejs.org/guide/installation.html Defines a Vue.js component using the Composition API within a separate JavaScript file. This component utilizes the 'ref' function for reactivity and exports its setup function for use in the main application. ```js import { ref } from 'vue' export default { setup() { const count = ref(0) return { count } }, template: `

Count is: {{ count }}

` } ``` -------------------------------- ### Scaffold a New Vue Project using pnpm Source: https://v3.vuejs.org/guide/installation.html This command utilizes pnpm to install and execute the official Vue project scaffolding tool, 'create-vue'. It serves the same purpose as the npm command, creating a new Vue.js Single Page Application with Vite. ```bash pnpm create vue@latest ``` -------------------------------- ### Install pnpm using Volta Source: https://pnpm.io/installation Installs pnpm using Volta, a JavaScript toolchain manager. Volta handles the installation and management of pnpm across different projects. ```bash volta install pnpm ``` -------------------------------- ### Install pnpm using Homebrew Source: https://pnpm.io/installation Installs pnpm on macOS or Linux systems that have Homebrew package manager installed. This command uses Homebrew to download and set up pnpm. ```bash brew install pnpm ``` -------------------------------- ### Create New Laravel Project with Sail on Windows (WSL2) Source: https://laravel.com/docs/10.x/installation On Windows with WSL2 and Docker Desktop configured, use curl and bash within a WSL2 terminal to create a new Laravel project named 'example-app'. Ensure the application name adheres to the specified naming conventions. ```bash curl -s https://laravel.build/example-app | bash ```