Typescript rewire of react-scripts where you can extend the webpack config. This is not a fork of react-script but it builds on top of any published react-scripts libary.
npm install @ords/react-tclinpm config set python "path/to/python"npm install @ords/react-tcli or do a global install npm install @ords/react-tcli -g.You can then setup a new project with: react-tcli init. This will create a new folder called sampleProject.
If you have an exisiting project then modify your _package.json_ you can add the following scripts:
"test": "react-tcli --src customPath/To/Src --withLatestReactEnzyme",
"start": "react-tclit --src customPath/To/Src",
"build": "react-tclit --src customPath/To/Src"
{
"extends": [
"./node_modules/@ords/react-tcli/dist/defaultConfigurations/tslint.json"
]
}
{
"extends": "./node_modules/@ords/react-tcli/dist/defaultConfigurations/tsconfig.json"
}
| Prop | Default | Description |
|-----------------|---------|--------------------------------|
| --src | src | Location of test source files |
| --env | undefined | please specify jsdom to use mount in jest |
| --setupTestFile | undefined | Location of jest setupTestFile |
| --withLatestReactEnzyme | undefined | Using setupTestFile from this project |
| Prop | Default | Description |
|-----------------|---------|--------------------------------|
| --src | src | Location of source files |
| --public | public | Location of react public dir |
| --extendWebpackFile | undefined | Location of file to extend webpack config |
| Prop | Default | Description |
|-----------------|---------|--------------------------------|
| --src | src | Location of source files |
| --public | public | Location of react public dir |
| --extendWebpackFile | undefined | Location of file to extend webpack config |