The task would be to add the nucleotide-count exercise to this track, copying files from the JavaScript track and adapting the code to the ECMAScript 6 standard.
Basic steps would include:
- Copy all files from
<javascript repo>/exercises/nucleotide-count (https://github.com/exercism/javascript) to <ecmascript repo>/exercises/nucleotide-count (https://github.com/exercism/ecmascript)
- Copy the main
package.json file (it's in the root folder of the ecmascript repo https://github.com/exercism/ecmascript/blob/master/package.json) to the <ecmascript repo>/exercises/nucleotide-count folder
- Adapt the code in
nucleotide-count.spec.js file to use ECMAScript 6 features (import modules, arrow functions, const and/or let, any other feature you think will make the code better). Additionally, the JavaScript track uses Jasmine where the ECMAScript track uses Jest. So, it and xit must be translated to test and xtest. Feel free to adapt example.js as well, just for fun (as long as tests pass)
- We have a standard set of test cases that the problem should cover in all languages on exercism in the common problem specifications repo. Check if all test-cases from here are covered. If there are any cases missing or additional cases, please comment in the PR regarding them.
- In the
README.md of the exercise, replace sections from Setup and below (Setup, Making the test suite pass, Source and Submitting incomplete solutions) with similar sections from any ECMAScript exercise, for example accumulate README. They'll include Setup, Requirements, Making the test suite pass, Source and Submitting incomplete solutions.
- Copy some exercise information from JavaScript
config.json file to the ECMAScript config.json file. This information is an object in the exercises array property with a slug property equals to nucleotide-count. Copy that object and place it in the same (or most similar) position in the ECMAScript config.json file. Both config.json files are in the root folder of the repo.
The task would be to add the
nucleotide-countexercise to this track, copying files from the JavaScript track and adapting the code to the ECMAScript 6 standard.Basic steps would include:
<javascript repo>/exercises/nucleotide-count(https://github.com/exercism/javascript) to<ecmascript repo>/exercises/nucleotide-count(https://github.com/exercism/ecmascript)package.jsonfile (it's in the root folder of theecmascriptrepo https://github.com/exercism/ecmascript/blob/master/package.json) to the<ecmascript repo>/exercises/nucleotide-countfoldernucleotide-count.spec.jsfile to use ECMAScript 6 features (importmodules, arrow functions,constand/orlet, any other feature you think will make the code better). Additionally, the JavaScript track usesJasminewhere the ECMAScript track usesJest. So,itandxitmust be translated totestandxtest. Feel free to adaptexample.jsas well, just for fun (as long as tests pass)README.mdof the exercise, replace sections from Setup and below (Setup, Making the test suite pass, Source and Submitting incomplete solutions) with similar sections from any ECMAScript exercise, for exampleaccumulateREADME. They'll include Setup, Requirements, Making the test suite pass, Source and Submitting incomplete solutions.config.jsonfile to the ECMAScriptconfig.jsonfile. This information is an object in theexercisesarray property with aslugproperty equals tonucleotide-count. Copy that object and place it in the same (or most similar) position in the ECMAScriptconfig.jsonfile. Bothconfig.jsonfiles are in the root folder of the repo.