How to install the dependencies of a Durandal project using Mimosa?

10

Let me explain the question. I would know the answer if the question were:

"Como instalar as dependências de um projeto Laravel usando Composer?"

In the PHP world, using Composer , we can create a project from a skeleton ready, using the command composer create-project . In the case of framework Laravel , we can create a project with the command:

composer create-project laravel/laravel

Similarly, in the front-end world, using Mimosa , the People can create a project from a ready skeleton using the command mimosa skel:new . In the case of the framework Durandal , we can create a project with the command:

mimosa skel:new durandal

In both cases, the "skeleton" is obtained from a repository (in GitHub or other site ) duly registered (at Packagist or another local ), and then the dependencies are automatically processed and installed.

But when copying the project to another place, we do not copy the entire paraphernalia of the dependencies together (the vendors folder or equivalent). We only copy the project files. (There is .gitignore that leaves this paraphernalia out of commits .)

Well, with the project copied to another location, in the case of Composer, the command to make it usable is:

composer install

This is the command that create-project executes automatically after getting the skeleton.

My question is: What command to install the dependencies of a project in the case of Mimosa? What is the command that runs automatically after obtaining the skeleton? What do I need to run on my copy to make it equal to the original after skel:new ?

    
asked by anonymous 22.02.2014 / 00:34

1 answer

10

Originally this response was written in English and the author with the best of intentions to help excused himself for not being able to answer it in Portuguese.

I saw traffic from this issue flowing into the Mimosa website and would like to try to help you.

mimosa skel:new only makes a git clone . link

If you run mimosa skel:new durandal durandal you will get a Durandal project within a folder durandal.

Within this folder, to start, you need to run npm install . This will install all dependencies contained in package.json . So when you run mimosa watch or mimosa build the first time, Mimosa will install any required Mimosa module.

I hope you have helped!

    
22.02.2014 / 05:09