Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
chore: start conversion to monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
strothj committed Mar 11, 2018
1 parent 48bbc1b commit ec4ab50
Show file tree
Hide file tree
Showing 35 changed files with 3,390 additions and 230 deletions.
66 changes: 16 additions & 50 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,68 +1,34 @@
{
"name": "react-docgen-typescript-loader",
"version": "2.0.2",
"description": "Webpack loader to generate docgen information from TypeScript React components.",
"keywords": [
"storybook",
"react",
"docgen",
"typescript",
"webpack",
"loader"
],
"homepage": "https://github.com/strothj/react-docgen-typescript-loader",
"bugs": "https://github.com/strothj/react-docgen-typescript-loader/issues",
"repository": "https://github.com/strothj/react-docgen-typescript-loader.git",
"author": "strothj (https://github.com/strothj)",
"main": "dist/index.js",
"license": "MIT",
"private": true,
"workspaces": {
"packages": [
"packages/*"
]
},
"engines": {
"node": ">= 8.9",
"yarn": ">= 1.3.2"
},
"pre-commit": [
"prepublishOnly"
],
"files": [
"dist/*"
"precommit": [
"lint"
],
"scripts": {
"build": "tsc -p tsconfig.publish.json",
"clean": "rimraf dist",
"lint": "tslint -p ./",
"prepublishOnly": "npm-run-all lint test clean build",
"start": "tsc -p tsconfig.publish.json -w",
"test": "jest"
"lint": "tslint -p ./"
},
"devDependencies": {
"@types/jest": "^22.1.1",
"@types/jest": "^22.2.0",
"@types/memory-fs": "^0.3.0",
"@types/node": "^8.9.1",
"@types/react": "^16.0.36",
"@types/webpack": "^3.8.5",
"jest": "^22.2.1",
"memory-fs": "^0.4.1",
"npm-run-all": "^4.1.2",
"@types/node": "^9.4.7",
"@types/react": "^16.0.40",
"@types/webpack": "^4.1.0",
"pre-commit": "^1.2.2",
"prettier": "^1.10.2",
"react": "^16.2.0",
"rimraf": "^2.6.2",
"ts-jest": "^22.0.3",
"ts-loader": "^3.5.0",
"prettier": "^1.11.1",
"tslint": "^5.9.1",
"tslint-config-airbnb": "^5.6.0",
"tslint-config-prettier": "^1.7.0",
"tslint-language-service": "^0.9.8",
"tslint-plugin-prettier": "^1.3.0",
"typescript": "^2.7.1",
"typescript-snapshots-plugin": "^1.1.0",
"webpack": "^3.10.0"
},
"dependencies": {
"ajv": "^6.1.1",
"react-docgen-typescript": "^1.2.3"
},
"peerDependencies": {
"typescript": "*"
"typescript": "^2.7.2",
"typescript-snapshots-plugin": "^1.1.0"
}
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"private": true,
"name": "example",
"version": "1.0.0",
"main": "index.js",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
46 changes: 46 additions & 0 deletions packages/loader-webpack-3/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "react-docgen-typescript-loader",
"version": "2.0.2",
"description": "Webpack loader to generate docgen information from TypeScript React components.",
"keywords": [
"storybook",
"react",
"docgen",
"typescript",
"webpack",
"loader"
],
"homepage": "https://github.com/strothj/react-docgen-typescript-loader",
"bugs": "https://github.com/strothj/react-docgen-typescript-loader/issues",
"repository": "https://github.com/strothj/react-docgen-typescript-loader.git",
"author": "strothj (https://github.com/strothj)",
"main": "dist/index.js",
"license": "MIT",
"files": [
"dist/*"
],
"scripts": {
"build": "tsc -p ./",
"clean": "rimraf dist",
"start": "tsc -p ./ -w",
"test": "jest"
},
"devDependencies": {
"jest": "^22.2.1",
"memory-fs": "^0.4.1",
"npm-run-all": "^4.1.2",
"react": "^16.2.0",
"rimraf": "^2.6.2",
"ts-jest": "^22.0.3",
"ts-loader": "^3.5.0",
"typescript": "^2.7.2",
"webpack": "^3.10.0"
},
"dependencies": {
"ajv": "^6.1.1",
"react-docgen-typescript": "^1.2.3"
},
"peerDependencies": {
"typescript": "*"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function validateOptions(options?: LoaderOptions) {
const valid = validate(options);

if (!valid) {
const errorMessage = validate.errors!
.map(e => {
const errorMessage = validate
.errors!.map(e => {
let message: string = e.message!;
if (e.dataPath) message = `${e.dataPath} ${message}`;
return message;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"extends": "./tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "./dist",
"declaration": true
},
"exclude": [
"node_modules",
"example",
"dist",
"**/*.spec.ts",
"**/__fixtures__",
Expand Down
5 changes: 2 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"rootDir": "./src",
"rootDir": "./",
"target": "es5",
"module": "commonjs",
"lib": ["esnext"],
Expand All @@ -15,6 +15,5 @@
{ "name": "tslint-language-service" },
{ "name": "typescript-snapshots-plugin" }
]
},
"exclude": ["node_modules", "example", "dist"]
}
}

0 comments on commit ec4ab50

Please sign in to comment.