diff --git a/.babelrc b/.babelrc deleted file mode 100644 index ef44916..0000000 --- a/.babelrc +++ /dev/null @@ -1,10 +0,0 @@ -{ - "presets": [ - "env", - "react" - ], - "plugins": [ - "transform-class-properties", - "transform-object-rest-spread" - ] -} diff --git a/.circleci/config.yml b/.circleci/config.yml index fcad492..1b5c642 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -52,6 +52,5 @@ workflows: - deploy: filters: branches: - ignore: - - gh-pages + only: - master diff --git a/.github/banner.svg b/.github/banner.svg deleted file mode 100644 index 6aaa610..0000000 --- a/.github/banner.svg +++ /dev/null @@ -1 +0,0 @@ -Dominican Open SourceDiscover the open source ecosystem related to the Dominican Republic! \ No newline at end of file diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 367ce9d..0000000 --- a/.gitignore +++ /dev/null @@ -1,75 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# Typescript v1 declaration files -typings/ - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Visual Studio Code -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env - -config/development.json -public/* -!public/404.html -!public/data - -# mac os ds store files -.DS_Store - -\.idea/ diff --git a/public/404.html b/404.html similarity index 100% rename from public/404.html rename to 404.html diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 6c00d4a..0000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,46 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at rubens@mariuzzo.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 31a15b2..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,9 +0,0 @@ -

Thank you for your time, effort and willingness

-
“I see you're a man or woman of culture as well”
- -## A few notes to consider... - - 1. Create your PRs pointing to `develop` branch. - 2. Respect the code-style already in-place. - -That's it! I told you it was just a “few notes”. Happy coding! diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 9d33241..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Developers Dominicanos - -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: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -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. diff --git a/README.md b/README.md deleted file mode 100644 index 2e451c9..0000000 --- a/README.md +++ /dev/null @@ -1,52 +0,0 @@ -![Dominican Open Source - Discover the open source ecosystem related to the Dominican Republic!](.github/banner.svg) - -[![GitHub license](https://img.shields.io/github/license/developersdo/opensource.svg)](https://github.com/developersdo/opensource/blob/develop/LICENSE) -[![CircleCI](https://circleci.com/gh/developersdo/opensource.svg?style=svg)](https://circleci.com/gh/developersdo/opensource) - -**Dominican Open Source** is an initiative to gather all possible public data about projects and their contributors related to the Dominican Republic in GitHub using the [GraphQL API](https://developer.github.com/v4/). - -## Want to join? - -There are different ways to participate in this local effort: - - - You can include your GitHub users by adding the term “Dominican” to your profile's location. (Note: Dominicana is also accepted) - - You can improve the code of the [public website](src/client) or [the scraper](src/server). - - And if you don't code you can check the grammar, the UX, the graphic design, [report bugs](https://github.com/developersdo/opensource/issues/new) - it is up to you ;) - -## Development - -If you want to run this project locally you will need: [NodeJS 8+](https://nodejs.org/en/). After git-cloning this project do: - -**Note:** If you just want to develop the website then skip step 3 and 4. - - 1. `npm install` - 2. Copy `config/default.json` to `config/development.json`. - 3. [Generate a GitHub personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/). - 4. Add your GitHub personal access token to `config/development.json` (this file is [git-ignored](.gitignore)). - 5. `npm run serve` and open http://localhost:8080/opensource - -That's it! Happy coding. - -### Scripts - - - `npm run scrape` – scrape for all GitHub users and repos as configured. - - `npm run scrape -- --only=users` – scrape for all GitHub repos. - - `npm run scrape -- --only=repos` – scrape for all GitHub users. - - `npm run generate-data` – generate GitHub users and repos for front-end usage. - - `npm run generate-data -- --only users` – generate JSON data for users. - - `npm run generate-data -- --only repos` – generate JSON data for repos. - - `npm run sequelize` – to use sequelize, pass cli args as follow: `npm run sequelize -- db:migrate`. - - `npm run sequelize -- db:migrate` – Run all pending database migrations. - - `npm run sequelize -- db:migrate:undo` – Rollback last database migration. - - `npm run sequelize -- db:migrate:undo:all` – Rollback all database migrations. - - `npm run sequelize:debug` – to use sequelize in debug mode. - - `npm run refresh` – to run the scraper and generate frontend data. - - `npm run build` – to run static assets for production usage. - -### Deployment - -The deployment is done by [CirceCI](https://circleci.com/gh/developersdo/opensource) which listen to pushes in [`master`](https://github.com/developersdo/opensource/tree/master) branch, then build website assets and finally pushes the site into [`gh-pages`](https://github.com/developersdo/opensource/tree/gh-pages) branch. All details are specified at [.circleci/config.yml](.circleci/config.yml). - -
-With ♥︎ from all contributors. -
diff --git a/app.js b/app.js new file mode 100644 index 0000000..6e89a8d --- /dev/null +++ b/app.js @@ -0,0 +1 @@ +webpackJsonp([0],[,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=r(0),n=function(e){return e&&e.__esModule?e:{default:e}}(l),o=function(){return n.default.createElement("div",{className:"progress white"},n.default.createElement("div",{className:"indeterminate blue"}))};t.default=o},,function(e,t,r){"use strict";function l(e){return new Promise(function(t,r){return h.getUsers().then(function(r){var l=(0,u.find)(r.items,{login:e.name.split("/")[0]});return l||(l={},console.warn("Could not find user by login: "+e.name+", probably the user changed his login. More details at: https://github.com/developersdo/opensource/issues/89")),t((0,u.merge)(e,{normalizedName:i.default.unicodeNormalize(e.name),normalizedDescription:i.default.unicodeNormalize(e.description),languages:o(e.languages),languageNames:e.languages,user:l,createdAt:new Date(e.createdAt)}))}).catch(r)})}function n(e){return(0,u.merge)(e,{normalizedName:i.default.unicodeNormalize(e.name),githubUrl:"https://github.com/"+e.login,createdAt:new Date(e.createdAt)})}function o(e){var t=(0,u.compact)(e.split(/\ +/g)),r=t.map(function(e){return{name:e,color:(0,c.languageColor)(e).backgroundColor}});return(0,u.orderBy)(r,["name"],["asc"])}Object.defineProperty(t,"__esModule",{value:!0}),r(74);var u=r(2),a=r(19),i=function(e){return e&&e.__esModule?e:{default:e}}(a),c=r(29),s="https://developersdo.github.io/opensource-data/",d={repos:null,users:null},p={repos:null,users:null},h={getRepos:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{force:!1},t=e.force;return d.repos&&!t?Promise.resolve(d.repos):p.repos?p.repos:(p.repos=fetch(s+"/repos.json").then(function(e){return e.json()}).then(function(e){return Promise.all(e.map(l))}).then(function(e){return d.repos={error:!1,ready:!0,items:e},d.repos}).catch(function(e){return console.error("Cannot fetch repos data.",e),{error:e,ready:!1,items:[]}}),p.repos)},getUsers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{force:!1},t=e.force;return d.users&&!t?Promise.resolve(d.users):p.users?p.users:(p.users=fetch(s+"/users.json").then(function(e){return e.json()}).then(function(e){return e.map(n)}).then(function(e){return d.users={error:!1,ready:!0,items:e},d.users}).catch(function(e){return console.error("Cannot fetch users data.",e),{error:e,ready:!1,items:[]}}),p.users)}};t.default=h},,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=r(76),n=function(e){return e&&e.__esModule?e:{default:e}}(l),o={escapeRegExp:function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},unicodeNormalize:function(e){return n.default.nfkd(e).replace(/[\u0300-\u036F]/g,"")}};t.default=o},function(e,t,r){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r125?"black":"white"};t.languageColor=function(e){if(l[e]){var t=l[e].color||"#000000";return{backgroundColor:t,textColor:o(n(t))}}return{background:"white",color:"black"}}},function(e,t,r){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r=0||Object.prototype.hasOwnProperty.call(e,l)&&(r[l]=e[l]);return r}Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t10}).length,n=t.filter(function(e){return e.stargazers>1}).length,o=t.reduce(function(e,t){return t.languages.forEach(function(t){e[t.name]||(e[t.name]=0),e[t.name]++}),e},{}),u=(0,d.map)(o,function(e,r){return{name:r,total:e,percentage:(e/t.length*100).toFixed(2)}});return u.sort(function(e,t){return t.total-e.total}),s.default.createElement("div",null,s.default.createElement("h4",null,"Statistics"),s.default.createElement("ul",{className:"collection"},s.default.createElement("li",{className:"collection-item"},s.default.createElement("h4",null,s.default.createElement("i",{className:"material-icons"},"perm_identity"),r.length.toLocaleString()," developers ",s.default.createElement("small",null,"are contributing to open source.")),s.default.createElement("p",null,"(organizations are not counted)"),s.default.createElement("p",null,"Among that number of developers, ",s.default.createElement("strong",null,l.toLocaleString()," have more 10 repos"),".")),s.default.createElement("li",{className:"collection-item"},s.default.createElement("h4",null,s.default.createElement("i",{className:"material-icons"},"code"),t.length.toLocaleString()," repos ",s.default.createElement("small",null,"created on GitHub. In average, each user contribute with ",(t.length/r.length).toFixed(1).toLocaleString()," repos.")),s.default.createElement("p",null,"(excluding forks)"),s.default.createElement("p",null,"Interesting, the fact that there are ",s.default.createElement("strong",null,n.toLocaleString()," repos with more than one star"),".")),s.default.createElement("li",{className:"collection-item"},s.default.createElement("h4",null,s.default.createElement("i",{className:"material-icons"},"assessment"),u.length.toLocaleString()," programming languages ",s.default.createElement("small",null,"in use across ",t.length.toLocaleString()," repos.")),s.default.createElement("p",null,"The ",s.default.createElement("strong",null,"less used languages")," among dominican developers in open source via GitHub are: ",u.slice(-10).map(function(e){return e.name}).join(", "),"."))))}}]),t}(s.default.Component);t.default=m},function(e,t,r){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r