├── src └── main.js ├── .babelrc ├── tests └── main.spec.js ├── .eslintrc.json ├── .editorconfig ├── CONTRIBUTING.md ├── .gitignore ├── LICENSE.md ├── package.json └── README.md /src/main.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['env'] 3 | } 4 | -------------------------------------------------------------------------------- /tests/main.spec.js: -------------------------------------------------------------------------------- 1 | import { expect } from 'chai'; 2 | 3 | describe('Main', () => { 4 | 5 | }); 6 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "airbnb-base", 3 | "plugins": [ 4 | "import" 5 | ] 6 | } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | 1. Fork it! 4 | 2. Create your feature branch: `git checkout -b my-new-feature` 5 | 3. Commit your changes: `git commit -m 'Add some feature'` 6 | 4. Push to the branch: `git push origin my-new-feature` 7 | 8 | *Remember that we have a pre-push hook with steps that analyzes and prevents mistakes.* 9 | 10 | **After your pull request is merged**, you can safely delete your branch. -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | *.pid.lock 11 | 12 | # Directory for instrumented libs generated by jscoverage/JSCover 13 | lib-cov 14 | 15 | # Coverage directory used by tools like istanbul 16 | coverage 17 | 18 | # nyc test coverage 19 | .nyc_output 20 | 21 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 22 | .grunt 23 | 24 | # node-waf configuration 25 | .lock-wscript 26 | 27 | # Compiled binary addons (http://nodejs.org/api/addons.html) 28 | build/Release 29 | 30 | # Dependency directories 31 | node_modules 32 | jspm_packages 33 | 34 | # Optional npm cache directory 35 | .npm 36 | 37 | # Optional eslint cache 38 | .eslintcache 39 | 40 | # Optional REPL history 41 | .node_repl_history 42 | 43 | # Output of 'npm pack' 44 | *.tgz 45 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | Copyright (c) 2016 - Willian Justen 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 5 | 6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "js-tdd-course", 3 | "version": "1.0.0", 4 | "description": "Nossa biblioteca do curso de JS com TDD na prática.", 5 | "main": "index.js", 6 | "scripts": { 7 | "clear": "rimraf lib", 8 | "build": "npm run clear && ./node_modules/.bin/babel --out-dir lib src", 9 | "build:watch": "npm run build -- --watch", 10 | "lint": "./node_modules/.bin/eslint src/*.js", 11 | "prepush": "npm run lint", 12 | "test": "./node_modules/.bin/mocha tests/**/*.spec.js --require babel-register", 13 | "test:tdd": "./node_modules/.bin/mocha tests/**/*.spec.js --require babel-register --watch", 14 | "test:coverage": "nyc npm test" 15 | }, 16 | "nyc": { 17 | "reporter": [ 18 | "text", 19 | "html" 20 | ], 21 | "exclude": [ 22 | "tests/**" 23 | ] 24 | }, 25 | "repository": { 26 | "type": "git", 27 | "url": "git+https://github.com/willianjusten/js-tdd-course.git" 28 | }, 29 | "keywords": [ 30 | "js", 31 | "tdd", 32 | "library" 33 | ], 34 | "author": "Willian Justen (https://willianjusten.com.br/)", 35 | "license": "MIT", 36 | "bugs": { 37 | "url": "https://github.com/willianjusten/js-tdd-course/issues" 38 | }, 39 | "homepage": "https://github.com/willianjusten/js-tdd-course#readme", 40 | "devDependencies": { 41 | "babel-cli": "^6.24.1", 42 | "babel-preset-env": "^1.3.2", 43 | "babel-register": "^6.24.0", 44 | "chai": "^3.5.0", 45 | "eslint": "^4.0.0", 46 | "eslint-config-airbnb-base": "^11.2.0", 47 | "eslint-plugin-import": "^2.6.1", 48 | "husky": "^0.11.9", 49 | "mocha": "^3.2.0", 50 | "nyc": "^10.2.0", 51 | "rimraf": "^2.6.1" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Project Title 2 | 3 | One Paragraph of project description goes here 4 | 5 | ## Getting Started 6 | 7 | These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. 8 | 9 | ### Prerequisities 10 | 11 | What things you need to install the software and how to install them 12 | 13 | ``` 14 | Give examples 15 | ``` 16 | 17 | ### Installing 18 | 19 | A step by step series of examples that tell you have to get a development env running 20 | 21 | Say what the step will be 22 | 23 | ``` 24 | Give the example 25 | ``` 26 | 27 | And repeat 28 | 29 | ``` 30 | until finished 31 | ``` 32 | 33 | End with an example of getting some data out of the system or using it for a little demo 34 | 35 | ## Running the tests 36 | 37 | Explain how to run the automated tests for this system 38 | 39 | ### Break down into end to end tests 40 | 41 | Explain what these tests test and why 42 | 43 | ``` 44 | Give an example 45 | ``` 46 | 47 | ### And coding style tests 48 | 49 | Explain what these tests test and why 50 | 51 | ``` 52 | Give an example 53 | ``` 54 | 55 | ## Deployment 56 | 57 | Add additional notes about how to deploy this on a live system 58 | 59 | ## Built With 60 | 61 | * Dropwizard - Bla bla bla 62 | * Maven - Maybe 63 | * Atom - ergaerga 64 | 65 | ## Contributing 66 | 67 | Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us. 68 | 69 | ## Versioning 70 | 71 | We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags). 72 | 73 | ## Authors 74 | 75 | * **Billie Thompson** - *Initial work* - [PurpleBooth](https://github.com/PurpleBooth) 76 | 77 | See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project. 78 | 79 | ## License 80 | 81 | This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details 82 | 83 | ## Acknowledgments 84 | 85 | * Hat tip to anyone who's code was used 86 | * Inspiration 87 | * etc 88 | --------------------------------------------------------------------------------