JavaScript training repository used to practice and learn by solving some common katas.
- ES6 Katas.
- FizzBuzz.
- String calculator.
- Find the right triangle.
- Rock paper scissors.
- Bingo.
- Potter.
- Roman numerals.
- Prime factors.
- Fibonacci.
- Maxibon.
- Greeting.
This project contains some tests written using Mocha. You can easily run the tests by executing any of the following commands:
yarn test //Executes every test.
yarn test -w //Waits for code changes and executes every test.
yarn test -g "String calculator spec*" //Executes tests matching with the regex passed as param.
If you are using IntelliJ IDEA, WebStorm or any other IDE to run your tests you'll need to configure the mocha execution options adding the following configuration:
--recursive --require ./test/bootload.js --require babel-register
This configuration is the same you can find in the project package.json
configuration.
This project uses webpack and babel in order to pack a simple bundle.js
file, with all the repository code, fully backward compatible with some old JavaScript versions. If you want to pack all this code into a single file you can easily do it by just running:
yarn webpack
This repository uses eslint in order to check if the js code written matches the checkstyle configured. You can check if everything is ok by executing yarn eslint src
and automatically fix the issues by executing yarn eslint --fix src
if needed.
- Pedro Vicente Gómez Sánchez - pedrovicente.gomez@gmail.com
Copyright 2017 Pedro Vicente Gómez Sánchez
Licensed under the GNU General Public License, Version 3 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.gnu.org/licenses/gpl-3.0.en.html
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.