# Configurar Gulp

gulp --> herramienta para automatizar el proceso de desarrollo de una app.

para ejecutar las tareas en gulp, por ejemplo

```
gulp.task('build', function() {
    process.env.NODE_ENV = 'production';
    let args = Object.assign({}, browserifyconf, { debug: true });
    const bundler = createBundler(args);
    return bundle(bundler);
});
```

se debe usar el comando

```
$ gulp build
```

Para poder usar browserify, se debe añadir al archivo **package.json**&#x20;

```
"browser": {
    "vue": "vue/dist/vue.common.js",
    "jquery": "jquery/dist/jquery.slim.js"
},
"browserify-shim": {}
```

jquery/dist/jquery.slim.js -> Señala donde se encuentra el archivo slim(sin animaciones, ajax, etc.)

Para correr el proyecto, instalar globalmente gulp

```
npm install gulp-cli -g
```

Correr servidor

```
gulp serve
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://laura-schiatti-siso.gitbook.io/intro-a-javascript-y-vue-js/configurar-gulp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
