Files
freeCodeCamp/curriculum/challenges/portuguese/05-apis-and-microservices/managing-packages-with-npm/add-a-version-to-your-package.json.portuguese.md
Beau Carnes b85e849482 fix: Add Api challenges - Portuguese translation (#35165)
* fix: Add Api challenges - Portuguese translation

* fix: md formatting
2019-05-06 06:31:59 -05:00

1014 B

id, title, localeTitle, challengeType
id title localeTitle challengeType
587d7fb4367417b2b2512bff Add a Version to Your package.json Adicione uma versão ao seu pacote.json 2

Description

A versão é junto com o nome de um dos campos obrigatórios em um package.json. Este campo descreve a versão atual do seu projeto. Exemplo "version": "1.2", Instruções Adicione uma versão ao pacote.json no seu projeto Glitch.

Instructions

Tests

tests:
  - text: 'package.json deve ter uma chave "version" válida'
    testString: 'getUserInput => $.get(getUserInput(''url'') + ''/_api/package.json'').then(data => { var packJson = JSON.parse(data); assert(packJson.version, ''"version" is missing''); }, xhr => { throw new Error(xhr.responseText); })'

Challenge Seed

Solution

// solution required