Skip to content

Commit

Permalink
switch to monorepo (#1)
Browse files Browse the repository at this point in the history
* switch to monorepo

Signed-off-by: Łukasz Sentkiewicz <lukasz@sentkiewicz.pl>

* add pub script

Signed-off-by: Łukasz Sentkiewicz <lukasz@sentkiewicz.pl>
  • Loading branch information
lstkz committed Feb 20, 2019
1 parent 40e7878 commit 3105828
Show file tree
Hide file tree
Showing 37 changed files with 3,077 additions and 90 deletions.
6 changes: 6 additions & 0 deletions lerna.json
@@ -0,0 +1,6 @@
{
"packages": [
"packages/*"
],
"version": "0.0.9"
}
63 changes: 8 additions & 55 deletions package.json
@@ -1,16 +1,15 @@
{
"name": "typeless",
"version": "0.0.5",
"version": "0.0.0",
"description": "",
"main": "index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"sideEffects": false,
"private": true,
"scripts": {
"lint": "tslint -t codeFrame 'src/**/*.ts' '__tests__/**/*.ts'",
"jest": "jest",
"test": "yarn run lint && tsc --noEmit && yarn run jest --coverage --no-cache"
"test": "lerna run test",
"pub": "lerna publish --contents dist"
},
"workspaces": [
"packages/*"
],
"author": "Łukasz Sentkiewicz <lukasz@sentkiewicz.pl>",
"license": "MIT",
"repository": {
Expand All @@ -21,53 +20,7 @@
"url": "https://github.com/typeless-js/typeless/issues"
},
"homepage": "https://github.com/typeless-js/typeless#readme",
"jest": {
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testURL": "http://localhost",
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/"
],
"coverageThreshold": {
"global": {
"branches": 50,
"functions": 50,
"lines": 50,
"statements": 50
}
}
},
"devDependencies": {
"@types/jest": "^22.0.0",
"@types/node": "^10.12.10",
"@types/react": "^16.8.3",
"@types/redux-mock-store": "^1.0.0",
"jest": "^22.0.2",
"react": "^16.8.2",
"redux": "^4.0.1",
"redux-mock-store": "^1.5.3",
"rimraf": "^2.6.1",
"rxjs": "^6.3.3",
"ts-jest": "^22.0.0",
"ts-node": "^5.0.1",
"tslint": "5.11.0",
"typescript": "^3.3.3"
},
"peerDependencies": {
"react": "^16.8.2",
"redux": "^4.0.1",
"rxjs": "^6.3.3"
},
"dependencies": {
"immer": "^1.8.0",
"redux-react-hook": "^3.1.0"
"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.
74 changes: 74 additions & 0 deletions packages/typeless/package.json
@@ -0,0 +1,74 @@
{
"name": "typeless",
"version": "0.0.9",
"description": "",
"main": "index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"sideEffects": false,
"scripts": {
"lint": "tslint -t codeFrame 'src/**/*.ts' '__tests__/**/*.ts'",
"jest": "jest",
"test": "yarn run lint && tsc --noEmit && yarn run jest --coverage --no-cache",
"prepare": "./scripts/build.sh"
},
"author": "Łukasz Sentkiewicz <lukasz@sentkiewicz.pl>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/typeless-js/typeless.git"
},
"bugs": {
"url": "https://github.com/typeless-js/typeless/issues"
},
"homepage": "https://github.com/typeless-js/typeless#readme",
"jest": {
"transform": {
".(ts|tsx)": "ts-jest/preprocessor.js"
},
"testURL": "http://localhost",
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/"
],
"coverageThreshold": {
"global": {
"branches": 50,
"functions": 50,
"lines": 50,
"statements": 50
}
}
},
"devDependencies": {
"@types/jest": "^22.0.0",
"@types/node": "^10.12.10",
"@types/react": "^16.8.3",
"@types/redux-mock-store": "^1.0.0",
"jest": "^22.0.2",
"react": "^16.8.2",
"redux": "^4.0.1",
"redux-mock-store": "^1.5.3",
"rimraf": "^2.6.1",
"rxjs": "^6.3.3",
"ts-jest": "^22.0.0",
"ts-node": "^5.0.1",
"tslint": "5.11.0",
"typescript": "^3.3.3"
},
"peerDependencies": {
"react": "^16.8.2",
"redux": "^4.0.1",
"rxjs": "^6.3.3"
},
"dependencies": {
"immer": "^1.8.0",
"redux-react-hook": "^3.1.0"
}
}
2 changes: 1 addition & 1 deletion scripts/build.sh → packages/typeless/scripts/build.sh
Expand Up @@ -3,5 +3,5 @@ mkdir dist
yarn run tsc --declaration true --module esnext --outDir "./dist/es"
yarn run tsc --declaration true --module commonjs --outDir "./dist"
cp package.json ./dist/package.json
cp README.md ./dist/README.md
cp ../../README.md ./dist/README.md
rm -rf ./dist/__tests__
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.
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.
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.

0 comments on commit 3105828

Please sign in to comment.