All notable changes to the "react-typescript-toolbox" extension will be documented in this file.
- Create experimental feature to generate a context with provider and consumer
- Semicolon Support in generated files
- Typo in ComponentTest
- add support for double, single quotemarks for imports and exports in files
- add support for double, single and back-tick quotemarks for strings
- Components and Models where not created when the test options was set to false
-
Test Creation in Folder Structure didn't work when the test folder wasn't in the root directory. Now the extension is searching for all
package.jsonfiles in the workspace and checks if the package json is in a subfolder of the created component. Iftruethen the test will generated with this folder as root and generate the test in the /test folder. -
Test template structure update, no semicolons and double quotes until preferences are up for this
- Test Creation for Model Classes
- Updated the test file to work correctly with updated enzyme / jest configurations
- Created new Feature that delete semicolons from import in ts and tsx files on save, this is still an experimental feature, it's disabled by default. You can activated it with the option: removeSemicolonsFromImportsOnSave.
- Refactored Code to make this project a bit more maintainable
- Support for root/test folders, there are now 3 options to genereate tests: same | flat | structured, the "same" option has the same behauvior like in the previous versions, the test file is created in the same directory as the component file. The "flat" options will create the testfile in
workspaceroot/test/*directly. The "structured" options will create the test file in theworkspaceroot/test/componentfileFolder, like you create a new component inworkspaceroot/src/Components/called MyComponent, the Testfile for MyComponent will be created inworkspaceroot/test/Components/*.
- Support for editor.Tabsize Option by Mika Andrianarijaona - Thanks. :)
- Support the preferences for Tabs/Spaces as indent
- Implement Generate Model Class
- Update Readme
Fixed 0.10.2 PathIssue reported by jimfilippou
- Linux filesystem wasn't supported, using path.resolve now for all path variables
- empty rows after the layer declaration in index export files
- generate export index for directory root
- sort for root index
- categories for root index
- boolean options where not correct
- single to double quotes
- some unnecessary code in the generation of the componen
- Enum generator
- Index generator
- Root index appends the component
- Regex Classname Check
- Regex Settings option
- Fix Initial Settings
- NPM Dependencies for Mkdir and FS
- Badges
- Updated readme
- Configuration for stylesheet and test.
- Less and Testfiles
- Context Menu added
- Basic Error and Info handling added
- Initial empty commit.
- Initial release