-
Notifications
You must be signed in to change notification settings - Fork 504
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 #808 from jtpio/monorepo
Adopt monorepo structure
- Loading branch information
Showing
47 changed files
with
6,922 additions
and
20,019 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
lint-staged.config.js | ||
.eslintrc.js | ||
|
||
node_modules | ||
**/build | ||
**/lib | ||
**/node_modules | ||
**/mock_packages | ||
**/static | ||
**/labextension | ||
**/typings | ||
**/schemas | ||
**/themes | ||
**/templates | ||
coverage | ||
*.map.js | ||
*.bundle.js | ||
|
||
# jetbrains IDE stuff | ||
.idea/ | ||
|
||
# ms IDE stuff | ||
.history/ | ||
.vscode/ |
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,56 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es6: true, | ||
commonjs: true, | ||
node: true, | ||
'jest/globals': true | ||
}, | ||
root: true, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:prettier/recommended', | ||
'plugin:react/recommended', | ||
'plugin:jest/recommended' | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: 'tsconfig.eslint.json', | ||
sourceType: 'module' | ||
}, | ||
plugins: ['@typescript-eslint', 'jest'], | ||
rules: { | ||
'@typescript-eslint/naming-convention': [ | ||
'error', | ||
{ | ||
selector: 'interface', | ||
format: ['PascalCase'], | ||
custom: { | ||
regex: '^I[A-Z]', | ||
match: true | ||
} | ||
} | ||
], | ||
'@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }], | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-namespace': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'@typescript-eslint/no-empty-interface': 'off', | ||
'@typescript-eslint/quotes': [ | ||
'error', | ||
'single', | ||
{ avoidEscape: true, allowTemplateLiterals: false } | ||
], | ||
curly: ['error', 'all'], | ||
eqeqeq: 'error', | ||
'prefer-arrow-callback': 'error' | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect' | ||
} | ||
} | ||
}; |
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,9 @@ | ||
node_modules | ||
**/node_modules | ||
**/lib | ||
**/package.json | ||
**/labextension | ||
**/static | ||
build | ||
notebooks/ | ||
.vscode/ |
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 @@ | ||
{ | ||
"singleQuote": 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
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,8 +1,8 @@ | ||
.wy-nav-content { | ||
max-width: 1000px; | ||
margin: auto; | ||
max-width: 1000px; | ||
margin: auto; | ||
} | ||
|
||
.wy-nav-content img { | ||
margin: 5px auto 25px; | ||
} | ||
margin: 5px auto 25px; | ||
} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"NotebookApp": { | ||
"nbserver_extensions": { | ||
"voila.server_extension": true | ||
} | ||
"NotebookApp": { | ||
"nbserver_extensions": { | ||
"voila.server_extension": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"ServerApp": { | ||
"jpserver_extensions": { | ||
"voila.server_extension": true | ||
} | ||
"ServerApp": { | ||
"jpserver_extensions": { | ||
"voila.server_extension": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"load_extensions": { | ||
"voila/extension": true | ||
} | ||
"load_extensions": { | ||
"voila/extension": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"npmClient": "yarn", | ||
"version": "independent", | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const escape = require('shell-quote').quote; | ||
const fs = require('fs'); | ||
const isWin = process.platform === 'win32'; | ||
|
||
const escapeFileNames = filenames => | ||
filenames | ||
.filter(filename => fs.existsSync(filename)) | ||
.map(filename => `"${isWin ? filename : escape([filename])}"`) | ||
.join(' '); | ||
|
||
module.exports = { | ||
'**/*{.css,.json,.md}': filenames => { | ||
const escapedFileNames = escapeFileNames(filenames); | ||
return [ | ||
`prettier --write ${escapedFileNames}`, | ||
`git add -f ${escapedFileNames}` | ||
]; | ||
}, | ||
'**/*{.ts,.tsx,.js,.jsx}': filenames => { | ||
const escapedFileNames = escapeFileNames(filenames); | ||
return [ | ||
`prettier --write ${escapedFileNames}`, | ||
`eslint --fix ${escapedFileNames}`, | ||
`git add -f ${escapedFileNames}` | ||
]; | ||
} | ||
}; |
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,56 @@ | ||
{ | ||
"private": true, | ||
"homepage": "https://github.com/voila-dashboards/voila", | ||
"bugs": { | ||
"url": "https://github.com/voila-dashboards/voila/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/voila-dashboards/voila" | ||
}, | ||
"license": "BSD-3-Clause", | ||
"author": "Voilà contributors", | ||
"workspaces": { | ||
"packages": [ | ||
"packages/*" | ||
] | ||
}, | ||
"scripts": { | ||
"build": "lerna run build", | ||
"build:prod": "lerna run build:prod", | ||
"build:test": "lerna run build:test", | ||
"clean": "lerna run clean", | ||
"eslint": "eslint . --ext .ts,.tsx,.js,.jsx --fix", | ||
"eslint:check": "eslint . --ext .ts,.tsx,.js,.jsx", | ||
"install": "lerna bootstrap", | ||
"prettier": "prettier --write \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"", | ||
"prettier:check": "prettier --list-different \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"", | ||
"test": "lerna run test" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^4.2.0", | ||
"@typescript-eslint/parser": "^4.2.0", | ||
"eslint": "^7.10.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
"eslint-plugin-jest": "^24.1.3", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-plugin-react": "^7.21.5", | ||
"husky": "^3", | ||
"jest": "^26.4.2", | ||
"jest-junit": "^11.1.0", | ||
"jest-raw-loader": "^1.0.1", | ||
"jest-summary-reporter": "^0.0.2", | ||
"lerna": "^3.22.1", | ||
"lint-staged": "^10.4.0", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^1.19.0", | ||
"rimraf": "^3.0.2", | ||
"shell-quote": "^1.7.2", | ||
"typescript": "~4.1.3" | ||
} | ||
} |
Oops, something went wrong.