@moustacherepublic/mr-init-project
v0.6.15
Published
Initialises MR projects for local development.
Maintainers
Readme
MR Project Init Package
Setup Guide
To download,
npm i -g @moustacherepublic/mr-init-project@latestRun
mrito instantly start up your local if you already have your local credentials and config file set upFor fresh local setup, use
mri -fsYou are also able to pass in the various flags:
Common Flags (assume node_modules already present):
-d|--dev : fetches DEVELOPMENT credentials only
-p|--prod : fetches PRODUCTION credentials only
-sd|--start-dev : fetches DEVELOPMENT credentials and starts up local only
-sp|--start-prod : fetches PRODUCTION credentials and starts up local only
Useful Flags:
-h|--help : show help.
-fs|--full-setup : full setup with fresh node_modules and config file
-ip|--install-prod : full setup with fresh node_modules and PRODUCTION credentials
-id|--install-dev : full setup with fresh node_modules and DEVELOPMENT credentials
-u|--update : updates this package to latest
Other Flags:
-is|--install-skip : installs node modules only
-a|--append-script : takes in 2 other arguments (1st is the script to be added, 2nd is the script of this global package which the 1st will be added to)
To-do
- Add profiles handler to handle more than 1 presets based on various projects.
Misc
NPM Package: https://www.npmjs.com/package/@moustacherepublic/mr-init-project
Repo: https://bitbucket.org/moustacherepublic/mr-project-init-package/src/master/
Feedback: https://magikecommerce.atlassian.net/browse/MRIP-908
- Please change status to "PENDING" if adding new feedback.
Changelog
v0.6.0 - v0.6.14 - 23 Apr 2021
Updated script logic to load files if not present when not using any flags.
Updated config format and parsing logic.
Implemented logic to recognise existing env files when not using any flags.
Implemented help commands and added help flags.
Updated husky pre-commit to only add package.json instead of all files.
v0.5.0 - v0.5.8 - 20 Apr 2021
Changed up flags functionalities and added new flag -fs -u.
Updated config filename to be dynamic.
Updated script logic to accommodate flags update.
Shortened command for script.
Added husky hooks.
Removed unnecessary file and packages.
Fixed json file format.
Set default to be staging_config.
v0.1.0 to v0.4.4 - 19 Apr 2021
Set up package.
Implemented script to init and process project variables.
Added ascii art.
Updated script for flag commands.
Updated script to edit .gitignore if not already updated.
Fixed colour encodings in script.
Added append-script flag.
Separated out install-and-updated-modules into a separate script for advanced script editing.
Added global package paths as variables.
Migrated package from @kaikoh95 to @moustacherepublic.
Fixed script error for -is and -a flags.
Updated command to remove node_modules that was causing override error.
Added CircleCI, npmignore.
Added script to update package version automatically.
Installed request and fs modules.
