Repository: bevry/staticsitegenerators-website Branch: master Commit: 8fe784028d08 Files: 17 Total size: 21.9 KB Directory structure: gitextract_xrhql29y/ ├── .dependabot/ │ └── config.yml ├── .editorconfig ├── .github/ │ └── FUNDING.yml ├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE.md ├── README.md ├── components/ │ └── project.tsx ├── next-env.d.ts ├── next.config.js ├── now.json ├── package.json ├── pages/ │ └── index.tsx ├── public/ │ ├── robots.txt │ └── style.css └── tsconfig.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .dependabot/config.yml ================================================ version: 1 update_configs: - package_manager: javascript directory: / update_schedule: weekly allowed_updates: - match: update_type: security automerged_updates: - match: dependency_type: all update_type: all ================================================ FILE: .editorconfig ================================================ # 2018 September 26 # https://github.com/bevry/base root = true [*] end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = false indent_style = tab [{*.mk,*.py}] indent_style = tab indent_size = 4 [*.md] indent_style = space indent_size = 4 [{*.json,*.lsrules,*.yml,*.bowerrc,*.babelrc}] indent_style = space indent_size = 2 [{*.json,*.lsrules}] insert_final_newline = true ================================================ FILE: .github/FUNDING.yml ================================================ github: [balupton] patreon: bevry open_collective: bevry ko_fi: balupton liberapay: bevry custom: ['https://bevry.me/fund'] ================================================ FILE: .gitignore ================================================ # 2019 January 26 # https://github.com/bevry/base # System Files **/.DS_Store # Temp Files **/.docpad.db **/*.log **/*.cpuprofile **/*.heapsnapshot # Editor Files .c9/ .vscode/ # Private Files .env .idea .cake_task_cache # Build Caches build/ bower_components/ node_modules/ .next/ .pnp/ .pnp.js # Build Outputs **/out.* **/*.out.* **/out/ **/output/ edition*/ coffeejs/ coffee/ es5/ es2015/ esnext/ docs/ # ===================================== # CUSTOM # None ================================================ FILE: .travis.yml ================================================ sudo: false language: node_js node_js: - '12' matrix: fast_finish: true allow_failures: [] cache: npm install: - eval "$(curl -fsSL https://raw.githubusercontent.com/bevry/awesome-travis/c91c9d5eef34ecb0e92029667fd5052640225fa3/scripts/node-install.bash)" before_script: - eval "$(curl -fsSL https://raw.githubusercontent.com/bevry/awesome-travis/c91c9d5eef34ecb0e92029667fd5052640225fa3/scripts/node-verify.bash)" notifications: email: recipients: secure: EIbhoOvzvqgkAkdnx19xBfE3QtGfn1tEpHF5lgWfnC+3JOQh5DQQtdsIwI/TiZ1b6q9Xwbr9xZTEhKdFE2c/6j0Xoz+x64XcNROo9VDXArZ2H6K43c97DXC56rkAITWZ6VYrMr7SpBsd+TG75LZ8CIYW0ywSKIn84A/irf/jKV0= ================================================ FILE: CONTRIBUTING.md ================================================ # Before You Post! ## Support We offer support through our [Official Support Channels](https://bevry.me/support). Do not use GitHub Issues for support, your issue will be closed. ## Contribute Our [Contributing Guide](https://bevry.me/contribute) contains useful tips and suggestions for how to contribute to this project, it's worth the read. ## Development ### Setup 1. [Install Node.js](https://bevry.me/install/node) 1. Fork the project and clone your fork - [guide](https://help.github.com/articles/fork-a-repo/) 1. Setup the project for development ```bash npm run our:setup ``` ### Developing 1. Compile changes ```bash npm run our:compile ``` 1. Run tests ```bash npm test ``` ### Publishing Follow these steps in order to implement your changes/improvements into your desired project: #### Preparation 1. Make sure your changes are on their own branch that is branched off from master. 1. You can do this by: `git checkout master; git checkout -b your-new-branch` 1. And push the changes up by: `git push origin your-new-branch` 1. Ensure all tests pass: ```bash npm test ``` > If possible, add tests for your change, if you don't know how, mention this in your pull request 1. Ensure the project is ready for publishing: ``` npm run our:release:prepare ``` #### Pull Request To send your changes for the project owner to merge in: 1. Submit your pull request 1. When submitting, if the original project has a `dev` or `integrate` branch, use that as the target branch for your pull request instead of the default `master` 1. By submitting a pull request you agree for your changes to have the same license as the original plugin #### Publish To publish your changes as the project owner: 1. Switch to the master branch: ```bash git checkout master ``` 1. Merge in the changes of the feature branch (if applicable) 1. Increment the version number in the `package.json` file according to the [semantic versioning](http://semver.org) standard, that is: 1. `x.0.0` MAJOR version when you make incompatible API changes (note: DocPad plugins must use v2 as the major version, as v2 corresponds to the current DocPad v6.x releases) 1. `x.y.0` MINOR version when you add functionality in a backwards-compatible manner 1. `x.y.z` PATCH version when you make backwards-compatible bug fixes 1. Add an entry to the changelog following the format of the previous entries, an example of this is: ```markdown ## v6.29.0 2013 April 1 - Progress on [issue #474](https://github.com/bevry/docpad/issues/474) - DocPad will now set permissions based on the process's ability - Thanks to [Avi Deitcher](https://github.com/deitch), [Stephan Lough](https://github.com/stephanlough) for [issue #165](https://github.com/bevry/docpad/issues/165) - Updated dependencies ``` 1) Commit the changes with the commit title set to something like `v6.29.0. Bugfix. Improvement.` and commit description set to the changelog entry 1. Ensure the project is ready for publishing: ``` npm run our:release:prepare ``` 1. Prepare the release and publish it to npm and git: ```bash npm run our:release ``` ================================================ FILE: LICENSE.md ================================================

License

Unless stated otherwise all works are: and licensed under:

MIT License

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 (including the next paragraph) 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.
================================================ FILE: README.md ================================================

staticsitegenerators-website

Travis CI Build Status
GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button Website rendering of staticsitegenerators-list This project is a website rendering of the [Static Site Generators Listing](http://github.com/bevry/staticsitegenerators-list/issues). The website is created using the following: - [Zeit Now v2](https://zeit.co/docs/v2/) - [Zeit Next.js](https://nextjs.org/docs/) - [React Hooks](https://reactjs.org/docs/hooks-intro.html) - [TypeScript](http://npmjs.com/package/@zeit/next-typescript) The project is maintained using the following: - [Boundation](https://github.com/bevry/boundation) - [Projectz](https://github.com/bevry/projectz)

License

Unless stated otherwise all works are: and licensed under: ================================================ FILE: components/project.tsx ================================================ import React from 'react' import moment from 'moment' export default function Project({ project }: { project: any }) { const stars = project.stars ? ( {project.stars} ⭐️ ) : ( '' ) const name = project.website ? ( {project.name} ) : ( project.name ) const github = project.github ? ( ) : ( '' ) return ( {stars} {project.description} {project.license || ''} {project.language || ''} {project.created_at ? moment(project.created_at).fromNow() : ''} {project.updated_at ? moment(project.updated_at).fromNow() : ''} ) } ================================================ FILE: next-env.d.ts ================================================ /// /// ================================================ FILE: next.config.js ================================================ module.exports = { target: 'serverless' } ================================================ FILE: now.json ================================================ { "version": 2, "name": "staticsitegenerators-website", "alias": "staticsitegenerators.net", "routes": [ { "src": "/", "headers": { "Cache-Control": "s-maxage=1800" } }, { "src": "/raw(.json)?", "status": 301, "headers": { "Location": "https://unpkg.com/staticsitegenerators@next/raw.json" } }, { "src": "/(list|hydrated)(.json)?", "status": 301, "headers": { "Location": "https://unpkg.com/staticsitegenerators@next/hydrated.json" } } ], "builds": [{ "src": "next.config.js", "use": "@now/next" }] } ================================================ FILE: package.json ================================================ { "name": "staticsitegenerators-website", "version": "1.0.0", "private": true, "description": "Website rendering of staticsitegenerators-list", "homepage": "https://github.com/bevry/staticsitegenerators-website", "license": "MIT", "keywords": [ "static site generators", "ssgs", "static sites", "website", "static", "site" ], "badges": { "list": [ "travisci", "---", "githubsponsors", "patreon", "flattr", "liberapay", "buymeacoffee", "opencollective", "crypto", "paypal", "wishlist" ], "config": { "githubSponsorsUsername": "balupton", "buymeacoffeeUsername": "balupton", "cryptoURL": "https://bevry.me/crypto", "flattrUsername": "balupton", "liberapayUsername": "bevry", "opencollectiveUsername": "bevry", "patreonUsername": "bevry", "paypalURL": "https://bevry.me/paypal", "wishlistURL": "https://bevry.me/wishlist" } }, "funding": "https://bevry.me/fund", "author": "Benjamin Lupton (http://balupton.com)", "maintainers": [ "Benjamin Lupton (http://balupton.com)" ], "contributors": [ "Benjamin Lupton (http://balupton.com)", "Misha Koryak (http://dogself.com)", "Michael Westbom (https://github.com/totallymike)", "Dirk Ginader (http://ginader.com)", "George Erickson (gee.io)", "Matteo Bertini (http://www.slug.it/naufraghi/)", "dependabot-preview[bot] (http://github.com/apps/dependabot-preview)" ], "bugs": { "url": "https://github.com/bevry/staticsitegenerators-website/issues" }, "repository": { "type": "git", "url": "https://github.com/bevry/staticsitegenerators-website.git" }, "engines": { "node": ">=12" }, "editions": [ { "description": "source", "directory": ".", "tags": [ "website", "typescript", "react", "jsx", "html", "css", "import" ] } ], "type": "commonjs", "dependencies": { "@types/react": "^16.9.16", "@types/react-dom": "^16.9.4", "isomorphic-unfetch": "^3.0.0", "moment": "^2.24.0", "next": "9.3.2", "react": "^16.12.0", "react-dom": "^16.12.0" }, "devDependencies": { "@types/next": "^9.0.0", "@typescript-eslint/eslint-plugin": "^2.11.0", "@typescript-eslint/parser": "^2.11.0", "@zeit/next-typescript": "1.1.2-canary.0", "assert-helpers": "^5.8.0", "eslint": "^6.7.2", "eslint-config-bevry": "^2.3.0", "eslint-config-prettier": "^6.7.0", "eslint-plugin-prettier": "^3.1.2", "eslint-plugin-react": "^7.17.0", "eslint-plugin-react-hooks": "^2.3.0", "kava": "^4.4.0", "now": "16.6.4-canary.6", "prettier": "^1.19.1", "projectz": "^1.16.0", "typescript": "^3.7.3" }, "scripts": { "our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next", "our:compile": "npm run our:compile:next", "our:compile:next": "next build", "our:deploy": "echo no need for this project", "our:meta": "npm run our:meta:projectz", "our:meta:projectz": "projectz compile", "our:release": "npm run our:release:push", "our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta", "our:release:push": "git push origin master && git push origin --tags", "our:setup": "npm run our:setup:install", "our:setup:install": "npm install", "our:test": "npm run our:verify && npm test", "our:verify": "npm run our:verify:eslint && npm run our:verify:prettier && npm run our:verify:stylelint && npm run our:verify:typescript", "our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx .", "our:verify:prettier": "prettier --write ./**", "our:verify:stylelint": "echo 'disabled due to https://spectrum.chat/zeit/general/resolved-deployments-fail-with-enospc-no-space-left-on-device-write~d1b9f61a-65e8-42a3-9042-f9c6a6fae6fd'", "our:verify:typescript": "tsc --noEmit --project tsconfig.json", "start": "npm run our:verify && next dev", "test": "npm run build", "dev": "next", "build": "next build", "now-build": "npm run our:compile:next" }, "eslintConfig": { "extends": [ "bevry" ] }, "prettier": { "semi": false, "singleQuote": true } } ================================================ FILE: pages/index.tsx ================================================ import React, { useState } from 'react' import Head from 'next/head' import fetch from 'isomorphic-unfetch' import moment from 'moment' import Project from '../components/project' type List = Array type Direction = -1 | 1 const numericCompare = (a: number, b: number) => a - b const alphaCompare = (a: any, b: any) => (a < b ? -1 : a > b ? 1 : 0) const lower = (value: any) => String(value || '').toLowerCase() const number = (value: any) => value || 0 const date = (value: any) => moment(value || 0).unix() interface Column { id: string name: string parse: (value: any) => any compare: (a: any, b: any) => number direction?: Direction } interface Table { columns: Column[] list: List last?: string } export default function IndexPage({ listing }: { listing: List }) { const [table, setTable] = useState({ columns: [ { id: 'stars', name: 'Stars', parse: number, compare: numericCompare }, { id: 'name', name: 'Name', parse: lower, compare: alphaCompare }, { id: 'license', name: 'License', parse: lower, compare: alphaCompare }, { id: 'language', name: 'Language', parse: lower, compare: alphaCompare }, { id: 'created_at', name: 'Created', parse: date, compare: numericCompare }, { id: 'updated_at', name: 'Updated', parse: date, compare: numericCompare } ], list: listing }) function updateOrder(key: string) { const columns = table.columns.slice() const column = columns.find(column => column.id === key) if (!column) throw new Error('could not find the column') column.direction = column.direction === -1 ? 1 : -1 const list = table.list.sort(function(A, B) { const a = column.parse(A[column.id]) const b = column.parse(B[column.id]) const z = column.compare(a, b) * (column.direction as number) return z }) setTable({ columns, list, last: key }) } function handleOrder(key: string) { return () => updateOrder(key) } function getDirectionIcon(value: Direction) { return value === -1 ? '⬇️' : '⬆️' } const items = table.list.map(project => ( )) return (
Static Site Generators

Static Site Generators

The definitive listing of Static Site Generators — all{' '} {table.list.length} of them!

{table.columns.map(column => ( ))} {items}
{column.name}{' '} {table.last === column.id ? getDirectionIcon(column.direction as Direction) : ''}
) } IndexPage.getInitialProps = async function() { const url = '/list.json' const res = await fetch(url) const json = await res.json() return { listing: json } } ================================================ FILE: public/robots.txt ================================================ # robotstxt.org/ User-agent: * ================================================ FILE: public/style.css ================================================ body { font-family: -apple-system-body, sans-serif; } h1, h2, th { font-family: -apple-system-headline, serif; } h1, h2 { margin: 0; padding: 0; } h1 { font-size: 1.5em; } h2 { font-size: 1em; } th { font-size: 110%; } a { text-decoration: none; } a:hover { text-decoration: underline; } footer { margin: 2em; } footer a { margin: 1em; } table { cursor: default; border-collapse: collapse; } thead { background-color: #eee; color: #666; font-weight: bold; cursor: pointer; } th { color: #000; padding: 0.4em 0.5em; border: 1px solid #999; border-right: 0; } td { padding: 1em 0; border-bottom: 1px solid #eee; } tr:hover { background: #eee; } .name { width: 100%; text-align: left; padding: 0.5em 0.5em; } .name label { font-weight: bold; display: block; } tr:not(:hover) .name span { color: #777; } .stars { min-width: 4em; } td.stars { text-align: right; font-family: monospace; } .license, .language, .created_at, .updated_at { text-align: center; } .license { min-width: 7em; } .created_at, .updated_at { min-width: 6em; } .icon { height: 16px; width: 16px; display: inline-block; color: #111; overflow: hidden; vertical-align: top; box-sizing: border-box; fill: currentColor; margin: 0 0.5em; opacity: 0.2; } .icon.github { background-image: url('./github.svg'); } a:hover .icon { opacity: 1; } ================================================ FILE: tsconfig.json ================================================ { "compilerOptions": { "allowJs": true, "allowSyntheticDefaultImports": true, "jsx": "preserve", "lib": ["dom", "esnext"], "maxNodeModuleJsDepth": 5, "module": "esnext", "moduleResolution": "node", "sourceMap": true, "strict": true, "target": "esnext", "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "noEmit": true, "esModuleInterop": true, "resolveJsonModule": true, "isolatedModules": true }, "include": ["client", "pages", "scripts", "server", "shared"], "exclude": ["node_modules"] }