-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from ericclemmons/34-remove-workspaces
Remove workspaces
- Loading branch information
Showing
65 changed files
with
1,275 additions
and
3,817 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.next | ||
examples/**/*.lock | ||
dist | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"private": true, | ||
"name": "404-example", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"dev": "polydev", | ||
"start": "NODE_ENV=production polydev" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"private": true, | ||
"name": "404-example", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"dev": "polydev", | ||
"start": "NODE_ENV=production polydev" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module.exports = async (req, res) => { | ||
module.exports = (req, res) => { | ||
throw new Error("💥 Whoopsiedoodle! 🤷♂️ ") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"private": true, | ||
"name": "custom-server-example", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"dev": "polydev", | ||
"start": "NODE_ENV=production polydev" | ||
}, | ||
"dependencies": { | ||
"express": "^4.16.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"private": true, | ||
"name": "dev-only-example", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"dev": "polydev", | ||
"start": "NODE_ENV=production polydev" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"private": true, | ||
"name": "logo-example", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"dev": "polydev", | ||
"start": "NODE_ENV=production polydev" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"private": true, | ||
"name": "missing-module-example", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"dev": "polydev", | ||
"start": "NODE_ENV=production polydev" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
routes/missing-module/index.js → examples/missing-module/routes/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const express = require("express") | ||
const next = require("next") | ||
|
||
const dev = process.env.NODE_ENV !== "production" | ||
const pages = next({ dev }) | ||
const handle = pages.getRequestHandler() | ||
|
||
module.exports = pages.prepare().then(() => { | ||
return express().get("*", (req, res) => handle(req, res)) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"private": true, | ||
"name": "params-example", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"dev": "polydev", | ||
"start": "NODE_ENV=production polydev" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = (req, res) => res.redirect("/users/howdy") |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"private": true, | ||
"name": "typescript-example", | ||
"version": "0.0.0", | ||
"devDependencies": { | ||
"ts-node": "^8.0.3", | ||
"typescript": "^3.3.3333" | ||
}, | ||
"scripts": { | ||
"dev": "polydev --require ts-node/register", | ||
"prestart": "tsc", | ||
"start": "cd dist && NODE_ENV=production polydev" | ||
}, | ||
"dependencies": { | ||
"@types/express": "^4.16.1", | ||
"react": "^16.8.4", | ||
"react-dom": "^16.8.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Request, Response } from "express" | ||
import * as React from "react" | ||
import { renderToStaticMarkup } from "react-dom/server" | ||
|
||
let hits = 0 | ||
|
||
export default (req: Request, res: Response) => { | ||
hits++ | ||
|
||
res.send( | ||
renderToStaticMarkup( | ||
<> | ||
<link | ||
href="https://fonts.googleapis.com/css?family=Quicksand:300,500" | ||
rel="stylesheet" | ||
/> | ||
<link href="/_polydev/styles.css" rel="stylesheet" /> | ||
|
||
<div id="splash" /> | ||
|
||
<section> | ||
<main> | ||
<h1> | ||
👋 Howdy from <kbd>TypeScript</kbd> | ||
</h1> | ||
|
||
<p> | ||
<kbd>{hits}</kbd> {hits ? "hits" : "hit"} | ||
</p> | ||
</main> | ||
|
||
<footer> | ||
<a href="/">« Back</a> | ||
</footer> | ||
</section> | ||
</> | ||
) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"jsx": "react", | ||
"outDir": "dist", | ||
"rootDir": "." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,39 @@ | ||
{ | ||
"private": true, | ||
"name": "polydev", | ||
"version": "1.5.0", | ||
"bin": "./bin/polydev", | ||
"main": "./src/index.js", | ||
"repository": "[email protected]:ericclemmons/polydev.git", | ||
"author": "Eric Clemmons <[email protected]>", | ||
"license": "MIT", | ||
"files": [ | ||
"bin", | ||
"src" | ||
], | ||
"scripts": { | ||
"postinstall": "yarn workspace polydev link", | ||
"dev": "DEBUG=polydev polydev -r ts-node/register", | ||
"dev:server": "DEBUG=polydev node server", | ||
"release": "cd packages/polydev && npx np --yolo", | ||
"prestart": "yarn workspace next-example build", | ||
"prestart:server": "yarn workspace next-example build", | ||
"start": "NODE_ENV=production polydev", | ||
"start:server": "NODE_ENV=production node server" | ||
"dev": "./scripts/dev.js", | ||
"start": "./scripts/start.js", | ||
"postinstall": "yarn link", | ||
"release": "np --yolo" | ||
}, | ||
"workspaces": ["packages/*"] | ||
"dependencies": { | ||
"ansi-to-html": "^0.6.10", | ||
"chokidar": "^2.0.4", | ||
"common-tags": "^1.8.0", | ||
"debug": "^4.1.1", | ||
"express": "^4.16.4", | ||
"fs-jetpack": "^2.2.0", | ||
"hot-module-replacement": "^3.0.3", | ||
"hot-replacement-module": "https://github.com/ericclemmons/hot-module-replacement.git", | ||
"opn": "^5.4.0", | ||
"strip-ansi": "^5.1.0", | ||
"uuid": "^3.3.2", | ||
"wait-on": "^3.2.0", | ||
"wait-port": "^0.2.2", | ||
"youch": "^2.0.10", | ||
"youch-terminal": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"np": "^4.0.2" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.