Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
2,454 additions
and
217 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,5 +6,6 @@ | |
build/ | ||
dist/ | ||
coverage/ | ||
coverage-local/ | ||
node_modules/ | ||
storybook-static/ |
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 was deleted.
Oops, something went wrong.
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,4 @@ | ||
/* eslint-env node */ | ||
module.exports = { | ||
presets: ['@babel/react', '@babel/preset-typescript'], | ||
}; |
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 @@ | ||
/* eslint-env node */ | ||
|
||
module.exports = { | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest', | ||
}, | ||
testRegex: '(/__tests__/.*|/tests/.*|(\\.|/)(test|spec))\\.[jt]sx?$', | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
modulePathIgnorePatterns: ['dist/'], | ||
collectCoverage: true, | ||
coverageReporters: ['json', 'html'], | ||
}; |
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,7 @@ | ||
/* eslint-env node */ | ||
const baseConfig = require('./jest-base.config'); | ||
|
||
module.exports = { | ||
...baseConfig, | ||
projects: ['<rootDir>/packages/*/'], | ||
}; |
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,7 @@ | ||
{ | ||
"lerna": "3.20.2", | ||
"packages": ["packages/*"], | ||
"version": "0.0.2", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true | ||
} |
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,23 @@ | ||
# Unless https://github.com/prettier/prettier/issues/4081 is ever resolved, | ||
# this MUST be copied into each package dir for local runs to work. | ||
|
||
# Whitelist supported files only | ||
**/*.* | ||
!**/*.css | ||
!**/*.html | ||
!**/*.js | ||
!**/*.jsx | ||
!**/*.json | ||
!**/*.less | ||
!**/*.md | ||
!**/*.scss | ||
!**/*.ts | ||
!**/*.tsx | ||
|
||
# Unless they're somewhere we can ignore | ||
build/ | ||
dist/ | ||
coverage/ | ||
coverage-local/ | ||
node_modules/ | ||
storybook-static/ |
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,68 @@ | ||
{ | ||
"name": "react-hibernate-dev-helpers", | ||
"version": "0.0.2", | ||
"description": "A react-router Switch which can leave inactive routes mounted-but-inactive until you navigate back", | ||
"keywords": [], | ||
"license": "MIT", | ||
"homepage": "https://github.com/spautz/react-router-hibernate/packages/dev-helpers#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/spautz/react-router-hibernate.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/spautz/react-router-hibernate/issues" | ||
}, | ||
"author": "Steven Pautz <spautz@gmail.com>", | ||
"files": [ | ||
"dist/", | ||
"src/", | ||
"LICENSE", | ||
"README.md" | ||
], | ||
"source": "src/index.ts", | ||
"main": "dist/index.js", | ||
"module": "dist/index.esm.js", | ||
"jsnext:main": "dist/index.esm.js", | ||
"types": "dist/react-hibernate-dev-helpers/src/index.d.ts", | ||
"sideEffects": false, | ||
"scripts": { | ||
"____ BASE COMMANDS _________________________________________________": "", | ||
"build": "microbundle build --jsx React.createElement", | ||
"build:watch": "microbundle watch --jsx React.createElement", | ||
"clean": "rimraf dist/", | ||
"format": "prettier --write \"**/*.*\"", | ||
"format:checkup": "prettier --list-different \"**/*.*\"", | ||
"lint": "eslint \"**/*.{js,jsx,json,ts,tsx}\"", | ||
"test": "echo \"@TODO: tests for dev-helpers\"", | ||
"test:clean": "rimraf coverage/", | ||
"test:coverage": "echo \"@TODO: tests for dev-helpers\"", | ||
"test:watch": "echo \"@TODO: tests for dev-helpers\"", | ||
"types": "tsc --noEmit --p tsconfig.json --jsx react", | ||
"____ HOOKS _________________________________________________________": "", | ||
"prepare": "yon build", | ||
"prebuild": "yon clean", | ||
"prerelease": "yon clean", | ||
"prepublishOnly": "yon checkup && yon build", | ||
"pretest": "yon test:clean", | ||
"____ INTEGRATION ___________________________________________________": "", | ||
"dev": "yon run format && yon run types && yon run lint", | ||
"checkup": "yon format:checkup && yon run types && yon run lint", | ||
"all": "yon run dev && yon run test:coverage && yon run build" | ||
}, | ||
"dependencies": { | ||
"@material-ui/core": "^4.9.4", | ||
"@testing-library/react": "^9.4.1", | ||
"history": "^4.10.1", | ||
"react-is": "^16.13.0", | ||
"react-redux": "^7.2.0", | ||
"react-router": "^5.1.2", | ||
"redux": "^4.0.5", | ||
"redux-devtools-extension": "^2.13.8", | ||
"typeface-roboto": "^0.0.75" | ||
}, | ||
"devDependencies": {}, | ||
"peerDependencies": { | ||
"react": ">=16.8.0", | ||
"react-dom": ">=16.8.0" | ||
} | ||
} |
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,4 @@ | ||
/* eslint-env node */ | ||
const baseConfig = require('../../prettier.config'); | ||
|
||
module.exports = baseConfig; |
File renamed without changes.
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,3 @@ | ||
export * from './components'; | ||
export * from './jest'; | ||
export * from './redux'; |
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,3 @@ | ||
export * from './components'; | ||
export * from './jest'; | ||
export * from './redux'; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
{ | ||
"extends": "../../tsconfig" | ||
} |
Oops, something went wrong.