Articulos publicados: 75 Visitas hoy: 45,102
Aviso del sistema de notificaciones de Pirulug Tech.

Publishing Extensions

Publicado en Sin categoría por pirulug.

Lectura del Articulo

Tu primera extensión

En este tema, le enseñaremos los conceptos fundamentales para crear extensiones. Asegúrese de tener Node.js y Git instalados, luego instale Yeoman y VS Code Extension Generator con:

<span class="token function">npm</span> <span class="token function">install</span> -g yo generator-code

El generador construye un proyecto de TypeScript o JavaScript listo para el desarrollo. Ejecute el generador y complete algunos campos para un proyecto de TypeScript:

yo code

<span class="token comment"># ? What type of extension do you want to create? New Extension (TypeScript)</span>
<span class="token comment"># ? What's the name of your extension? HelloWorld</span>
<span class="token comment">### Press <Enter> to choose default for all options below ###</span>

<span class="token comment"># ? What's the identifier of your extension? helloworld</span>
<span class="token comment"># ? What's the description of your extension? LEAVE BLANK</span>
<span class="token comment"># ? Initialize a git repository? Yes</span>
<span class="token comment"># ? Bundle the source code with webpack? No</span>
<span class="token comment"># ? Which package manager to use? npm</span>

<span class="token comment"># ? Do you want to open the new folder with Visual Studio Code? Open with `code`</span>

vsce

vsce, short for “Visual Studio
Code Extensions”, is a command-line tool for packaging, publishing and
managing VS Code extensions.

Installation

Make sure you have Node.js installed. Then
run:

npm install -g vsce

Usage

You can use vsce to easily
package
and
publish
your extensions:

$ <span class="token function">cd</span> myExtension
$ vsce package
<span class="token comment"># myExtension.vsix generated</span>
$ vsce publish
<span class="token comment"># <publisherID>.myExtension published to VS Code Marketplace</span>

vsce can also search, retrieve metadata, and unpublish
extensions. For a reference on all the available vsce commands,
run vsce --help.

Comentarios de los Lectores (0)

No hay comentarios aun. ¡Se el primero en comentar!

Escribir un Comentario