Releases: jonathonhawkins92/React-Module-Generator
Releases · jonathonhawkins92/React-Module-Generator
0.2.4
Abstracting VS Code specific code and generally tidying up shop.
0.2.3
Adding relationship mapping for later use with custom templates.
0.2.2
Adding template validation for later use with custom templates.
0.2.1
I forgot to bump the package.json version, so here is a minor...
0.2.0
- Large refactor of both the commands and the templates ready for future extensions.
- New settings for each type of file
rmg.{FileType}.include: Enable/disable the addition of a {FileType} file.- Note
rmg.component.includeisn't a thing as it is a special case.
- Note
rmg.{FileType}.imports: A list of imports, egimport * as React from "react";rmg.{FileType}.export.type: How we will export and then import your file.rmg.{FileType}.export.extension: Enable/disable the file extension when importing.rmg.{FileType}.export.alias: The name used when importing the {FileType}, we fallback to{FileType}.rmg.{FileType}.file.name: The name given to your {FileType}'s file, we fallback toindexthen to the module's name.rmg.{FileType}.file.extension: The type of file you are creating, we fallback to.ts.
- New FileTypes:
barrel: A interface file for your module.component: A functional React component.style: Created with.css|.less|.scssfiles in mind.test: A Jest / React Testing Library test file.translation: A internationalization file.
- Renamed
rmg.endOfLineSequencetormg.global.endOfLineSequencefor clearer usage / namespace. rmg.{FileType}.file.nameaccepts{{moduleName}}as a template for the module's name.- If
rmg.{FileType}.file.nameincludes/or\it will create sub folders. - Auto opening the component once the module is created, this might become a setting in future.
0.1.0
Minor bump due to removal of settings, in future this will be a Major bump but until we hit 1.0.0 breaking changes are more likely.
- Removed
rmg.createExplorerin favour ofrmg.create. - Removed
rmg.addExplorerin favour ofrmg.add. - Removed
defaultModuleName. - Removed
defaultImportsin favour of extendable template methods. - Added auto opening created file, I might add to settings.
- Added
includeStylesetting. - Added
includeTranslationsetting. - Added
includeTestsetting. - Added run time setting checkboxes.
- Added folder picker for use outside of explorer, I might always show this in future if requested or if it annoys me!
- Renamed
fileExtensionstoincludeFileExtension.