Installation
Installation using npx:
Node.js installation required. It is used to access npm and npx in the terminal.
To create an application, it is better to use the official cample-start
command to generate a “starting point”, choosing from two currently available templates.
npx cample-start
The main two templates are based on two module bundlers such as Webpack and Parcel. To select one of them from the list in the terminal, you can select the most suitable one. All of them have official support.
Project template:
webpack-app
parcel-app
After selecting a template, there is an option to create a name for the project.
Project name:new-app
The name may include "-" and "_" characters.
Afterwards, the process of installing the necessary files should begin in a folder with the name that you typed. If the installation was successful, the following message should appear:
Project ${projectName} installed successfully!
To subsequently install the application, enter the following command while in the project folder:
npm install
Also, any other package manager can be selected for such an installation. The "node_modules" folder is not automatically generated when installing the application via npx.
Installation using npm:
For this installation the following command is assumed:
npm i cample
With this installation, functions will still be available directly from the module. Installation using cample-start
simply specifies the start files for the application.