K
K
Kenars2020-12-24 14:30:32
npm
Kenars, 2020-12-24 14:30:32

Is it possible to unpack html bootstrap template without npm?

Please do not judge strictly my old-fashionedness for all the time of my freelance work, I have always adhered to the classical scheme: the server (LAMP) is configured, the host is configured. The file structure of the project is poured into the root, a database is created in phpmyadmin and development has begun. I have never dealt with any npm, composers, as it was not necessary. And now it looks like this hour has come ((
The customer requested to implement CRM and threw off the template that he would like to see in development. I, as usual, threw this template on the host, launched Denver and ... it did not open (errors fell in the console that the specified files (js css) don't exist) opened the documentation and saw the following:
Download and install Node.js from nodejs.org/en/download/.The suggested version to install is 12.18.x LTS.

Start command prompt window or terminal and change directory to [metronic]/theme/html/tools/

cd theme/html/tools
Install the latest npm.

npm install --global [email protected]
Install yarn via the npm.

npm install --global yarn
Don't forget to run yarn upgrade after every Metronic updates released in order to install newly added or updated 3rd-party plugins.
Use npm cache clean --force command, if installation had failed at any step. Retry from start after it done.

Gulp is a toolkit that helps you automate your time-consuming tasks in development workflow. To install gulp globally.

npm install --global gulp-cli
If you have previously installed a version of gulp globally, remove it to make sure old version doesn't collide with new gulp-cli.

npm rm --global gulp
Verify that gulp in successfully installed, and version of installed gulp will appear.

gulp --version
Install yarn dependencies. Must execute in [metronic]/theme/html/tools/ folder.

yarn
This below command will compile all the assets(sass, js, media) to [metronic]/theme/html/[demo]/dist/assets folder. State which demo to compile and append at the of the command. Eg. --demo1

gulp --demo1
Start the localhost server.

gulp localhost --demo1
Keep the console open. Open this link to run localhost:8080. It will take a few seconds for the build to finish.

When I carefully studied all this in my head, a question arose as a flash of a nuclear bomb, but we are intelligent people and therefore decided to turn to the public. Tell me, is it possible to unpack this miracle without installing the node js development environment? I just need the template itself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-12-24
@firedragon

Do something like
gulp build
see the docs for details.
That is, you will collect everything in a virtual machine, otherwise you will copy what happens to the server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question