forked from mui/mui-x
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Use main repo as source of truth (mui#144)
- Loading branch information
1 parent
f710e86
commit 1e17c08
Showing
108 changed files
with
6,097 additions
and
2,180 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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
/.git | ||
/docs/.next | ||
/docs/export | ||
/packages/demo-app/public/static-data | ||
/packages/grid/lib/lodash | ||
/packages/grid/x-grid-modules/lib/autosizer | ||
/packages/grid/x-grid-modules/lib/lodash | ||
CHANGELOG.md | ||
dist | ||
node_modules | ||
packages/demo-app/public/static-data | ||
packages/grid/lib/lodash | ||
packages/grid/x-grid-modules/lib/autosizer | ||
packages/grid/x-grid-modules/lib/lodash |
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 |
---|---|---|
|
@@ -9,5 +9,7 @@ __diff_output__ | |
/.eslintcache | ||
/.nyc_output | ||
/coverage | ||
/docs/.next | ||
/docs/export | ||
dist | ||
node_modules |
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 @@ | ||
# Material-UI docs | ||
|
||
This is the documentation website of Material-UI. | ||
|
||
To start the docs site in development mode, from the project root, run: | ||
|
||
```sh | ||
yarn && yarn docs:dev | ||
``` | ||
|
||
If you do not have yarn installed, select your OS and follow the instructions on the [Yarn website](https://yarnpkg.com/lang/en/docs/install/#mac-stable). | ||
|
||
_DO NOT USE NPM, use Yarn to install the dependencies._ | ||
|
||
## How can I add a new demo to the documentation? | ||
|
||
[You can follow this guide](https://github.com/mui-org/material-ui/blob/next/CONTRIBUTING.md) | ||
on how to get started contributing to Material-UI. | ||
|
||
## How do I help to improve the translations? | ||
|
||
Please visit https://translate.material-ui.com/ where you will be able to select a language and edit the translations. | ||
Please don't submit pull requests directly. |
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,69 @@ | ||
const bpmr = require('babel-plugin-module-resolver'); | ||
const fse = require('fs-extra'); | ||
const path = require('path'); | ||
|
||
const errorCodesPath = path.resolve(__dirname, './public/static/error-codes.json'); | ||
|
||
function resolvePath(sourcePath, currentFile, opts) { | ||
if (sourcePath === 'markdown') { | ||
const base = currentFile.substring(__dirname.length).slice(0, -3); | ||
return `${__dirname}/docs/src/${base}/`; | ||
} | ||
|
||
return bpmr.resolvePath(sourcePath, currentFile, opts); | ||
} | ||
|
||
const alias = { | ||
'@material-ui/data-grid': '../packages/grid/data-grid/src', | ||
'@material-ui/x-grid-modules': '../packages/grid/x-grid-modules/src', | ||
'@material-ui/x-grid': '../packages/grid/x-grid/src', | ||
'@material-ui/x-license': '../packages/license/src', | ||
docs: './node_modules/@material-ui/monorepo/docs', | ||
docsx: './', | ||
modules: './node_modules/@material-ui/monorepo/modules', | ||
// 'typescript-to-proptypes': './node_modules/@material-ui/monorepo/packages/typescript-to-proptypes', | ||
}; | ||
|
||
const { version: transformRuntimeVersion } = fse.readJSONSync( | ||
require.resolve('@babel/runtime-corejs2/package.json'), | ||
); | ||
|
||
module.exports = { | ||
presets: [ | ||
// backport of https://github.com/zeit/next.js/pull/9511 | ||
['next/babel', { 'transform-runtime': { corejs: 2, version: transformRuntimeVersion } }], | ||
], | ||
plugins: [ | ||
[ | ||
'babel-plugin-macros', | ||
{ | ||
muiError: { | ||
errorCodesPath, | ||
}, | ||
}, | ||
], | ||
'babel-plugin-optimize-clsx', | ||
// for IE 11 support | ||
'@babel/plugin-transform-object-assign', | ||
'babel-plugin-preval', | ||
[ | ||
'babel-plugin-module-resolver', | ||
{ | ||
alias, | ||
transformFunctions: ['require', 'require.context'], | ||
resolvePath, | ||
}, | ||
], | ||
], | ||
ignore: [/@babel[\\|/]runtime/], // Fix a Windows issue. | ||
env: { | ||
production: { | ||
plugins: [ | ||
'@babel/plugin-transform-react-constant-elements', | ||
'babel-plugin-transform-dev-warning', | ||
['babel-plugin-react-remove-properties', { properties: ['data-mui-test'] }], | ||
['babel-plugin-transform-react-remove-prop-types', { mode: 'remove' }], | ||
], | ||
}, | ||
}, | ||
}; |
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,2 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/types/global" /> |
Oops, something went wrong.