Learn how to included npm scripts to automate your time-consuming tasks in your development workflow with Gulp toolkit.
Geeks uses NPM scripts for its build system. Our package.json includes convenient methods for working with the framework, including compiling code, running tests, and more.
To use our build system and run our documentation locally, you ll need a copy of Geeks s source files and Node. Follow these steps and you should be ready to rock:
Almost all tooling for modern JavaScript projects is based in Node.js. The download page has prebuilt installation packages for all platforms.
Node is bundled with npm, the package manager for JavaScript.
To verify the installation, open a new terminal window and run:
$ node --version
$ npm --version
Please note, first Gulp should be installed globally and for that reason -g command is used.
$ npm install --global gulp-cli
To verify the installation, open a new terminal window and run:
$ gulp --version
Please note, Bun should be installed globally and for macOS & Linux.
$ curl -fsSL https://bun.com/install | bash
Please note, Bun should be installed globally and for windows
$ powershell -c "irm bun.sh/install.ps1|iex"
To verify the installation, open a new terminal window and run:
$ bun --version
Please note, Yarn should be installed globally and for that reason -g command is used.
$ npm install --global yarn
To verify the installation, open a new terminal window and run:
$ yarn --version
Navigate to the root /Geeks directory and run npm installto install
our local dependencies listed in package.json.
xampp/htdocs foldersrc directorylocalhost/project_name/src after running Apache server locallyYou can run this app using any following package manager: Bun, Yarn or NPM:
If you don't have bun installed on your PC, use the npm i -g bun or
sudo npm i -g bun to install
| Command | Description |
|---|---|
|
This would install all the required dependencies in the
node_modules
folder.
|
|
Changes terminal's directory to move inside the src directory. |
|
Starts the PHP server on 127.0.0.1:8000 address |
|
It bundles with production mode. Your app is now ready to be deployed. |
If you don't have yarn installed on your PC, use the npm i -g bun or
sudo npm i -g bun to install
| Command | Description |
|---|---|
|
This would install all the required dependencies in the
node_modules
folder.
|
|
Changes terminal's directory to move inside the src directory. |
|
Starts the PHP server on 127.0.0.1:8000 address |
|
It bundles with production mode. Your app is now ready to be deployed. |
npm comes preinstalled when you install Nodejs
| Command | Description |
|---|---|
|
This would install all the required dependencies in the
node_modules
folder.
|
|
Changes terminal's directory to move inside the src directory. |
|
Starts the PHP server on 127.0.0.1:8000 address |
|
It bundles with production mode. Your app is now ready to be deployed. |