Skip to content
This repository was archived by the owner on Jul 28, 2019. It is now read-only.

chore: go full monorepo #67

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package.json
examples/**/out
examples/**/.next
packages/phox/**/*.js
1 change: 1 addition & 0 deletions examples/simple/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "phox-examples-simple",
"version": "0.1.0",
"private": true,
"description": "A simple phox site",
"main": "server.js",
"scripts": {
Expand Down
15 changes: 15 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "0.8.0-rc.1",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
"version": {
"forcePublish": true
},
"publish": {
"message": "chore: release %s",
"exact": true,
"conventionalCommits": true
}
}
}
111 changes: 10 additions & 101 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
{
"name": "phox",
"version": "0.8.0-rc.1",
"description": "Create a static photo site powered by Next.js",
"keywords": [
"next",
"next.js",
"react",
"website",
"photography",
"exif",
"iptc",
"gallery",
"jekyll",
"markdown",
"generator"
],
"main": "index.js",
"name": "phox-root",
"version": "0.1.0",
"private": true,
"scripts": {
"build": "tsc",
"clean": "./script/clean",
"dev": "tsc --watch",
"prepublishOnly": "npm-run-all clean build",
"lint:examples": "eslint --quiet './examples/simple/'",
"lint:phox": "tslint --format stylish --project tsconfig.json",
"lint:phox": "tslint --format stylish --project packages/spec/tsconfig.json",
"fmt": "prettier --config ./.prettierrc --ignore-path ./.prettierignore --write \"**/**.{js,jsx,ts,tsx}\"",
"fmt:ci": "prettier --config ./.prettierrc --ignore-path ./.prettierignore --list-different \"**/**.{js,jsx,ts,tsx}\"",
"test": "./script/test"
Expand All @@ -39,84 +21,11 @@
"engines": {
"node": ">=8.10"
},
"homepage": "https://github.com/herschel666/phox#readme",
"dependencies": {
"@types/express": "^4.16.1",
"chokidar": "^2.1.2",
"deepmerge": "^3.2.0",
"exif": "^0.6.0",
"express": "^4.16.4",
"front-matter": "^3.0.1",
"globby": "^9.1.0",
"imagemin": "^6.1.0",
"imagemin-jpegtran": "^6.0.0",
"imagemin-pngquant": "^7.0.0",
"marked": "^0.6.1",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"node-iptc": "^1.0.5",
"pretty-ms": "^4.0.0",
"probe-image-size": "^4.0.0",
"rimraf": "^2.6.3",
"slug": "^1.0.0",
"utf8": "^3.0.0",
"waait": "^1.0.4"
},
"bin": {
"phox": "./bin/phox.js"
},
"workspaces": [
"examples/*",
"packages/*"
],
"devDependencies": {
"@types/chokidar": "^2.1.3",
"@types/debug": "^4.1.2",
"@types/jest": "23.3.6",
"@types/marked": "^0.6.3",
"@types/minimist": "^1.2.0",
"@types/mkdirp": "^0.5.1",
"@types/next": "^8.0.1",
"@types/node": "8.0.26",
"@types/node-fetch": "^2.1.6",
"@types/pretty-ms": "^4.0.0",
"@types/rimraf": "^2.0.2",
"@types/slug": "^0.9.1",
"@types/utf8": "^2.1.6",
"debug": "^4.1.1",
"eslint": "^5.15.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.12.4",
"jest": "^24.5.0",
"next": "^8.0.3",
"node-fetch": "^2.3.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.16.4",
"ts-jest": "^24.0.0",
"tslint": "^5.13.1",
"tslint-config-prettier": "^1.18.0",
"tslint-microsoft-contrib": "^6.1.0",
"typescript": "^3.3.3"
},
"peerDependencies": {
"next": "^8.0.3",
"react": "^16.6.0",
"react-dom": "^16.6.0"
},
"jest": {
"testRegex": "(/test/.*|(\\.|/)(test|spec))\\.tsx?$",
"testPathIgnorePatterns": [
"node_modules",
"__snapshots__",
"test/.*/.*\\.js$"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"preset": "ts-jest/presets/js-with-ts",
"testMatch": null
},
"typings": "./typings.d.ts"
"lerna": "^3.13.0"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
93 changes: 93 additions & 0 deletions packages/phox/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"name": "phox",
"version": "0.8.0-rc.1",
"description": "Create a static photo site powered by Next.js",
"keywords": [
"next",
"next.js",
"react",
"website",
"photography",
"exif",
"iptc",
"gallery",
"jekyll",
"markdown",
"generator"
],
"scripts": {
"build": "tsc",
"clean": "rm -f ./{bin,lib,lib/definitions,lib/handlers,}/*.js",
"prepublishOnly": "npm-run-all clean build"
},
"main": "index.js",
"author": "Emanuel Kluge (https://www.emanuel-kluge.de/)",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/herschel666/phox.git"
},
"bugs": {
"url": "https://github.com/herschel666/phox/issues"
},
"engines": {
"node": ">=8.10"
},
"workspaces": [
"examples/*",
"packages/*"
],
"homepage": "https://github.com/herschel666/phox#readme",
"dependencies": {
"@types/express": "^4.16.1",
"chokidar": "^2.1.2",
"deepmerge": "^3.2.0",
"exif": "^0.6.0",
"express": "^4.16.4",
"front-matter": "^3.0.1",
"globby": "^9.1.0",
"imagemin": "^6.1.0",
"imagemin-jpegtran": "^6.0.0",
"imagemin-pngquant": "^7.0.0",
"marked": "^0.6.1",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"node-iptc": "^1.0.5",
"pretty-ms": "^4.0.0",
"probe-image-size": "^4.0.0",
"rimraf": "^2.6.3",
"slug": "^1.0.0",
"utf8": "^3.0.0",
"waait": "^1.0.4"
},
"bin": {
"phox": "./bin/phox.js"
},
"devDependencies": {
"@types/chokidar": "^2.1.3",
"@types/debug": "^4.1.2",
"@types/jest": "23.3.6",
"@types/marked": "^0.6.3",
"@types/minimist": "^1.2.0",
"@types/mkdirp": "^0.5.1",
"@types/next": "^8.0.1",
"@types/node": "8.0.26",
"@types/node-fetch": "^2.1.6",
"@types/pretty-ms": "^4.0.0",
"@types/rimraf": "^2.0.2",
"@types/slug": "^0.9.1",
"@types/utf8": "^2.1.6",
"debug": "^4.1.1",
"next": "^8.0.3",
"node-fetch": "^2.3.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.16.4",
"typescript": "^3.3.3"
},
"peerDependencies": {
"next": "^8.0.3",
"react": "^16.6.0",
"react-dom": "^16.6.0"
},
"typings": "./typings.d.ts"
}
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions packages/spec/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "phox-spec",
"version": "0.8.0-rc.1",
"private": true,
"scripts": {
"test": "jest"
},
"engines": {
"node": ">=8.10.0"
},
"devDependencies": {
"@types/jest": "23.3.6",
"jest": "^24.5.0",
"phox": "*",
"ts-jest": "^24.0.0"
},
"jest": {
"preset": "ts-jest/presets/js-with-ts",
"testMatch": null
},
"typings": "./typings.d.ts"
}
File renamed without changes.