A collection of recommended development configuration files
- Git
- Misc
- Linters
- PHP CodeSniffer
- Show hidden files
- Install Git
- Install Node & NPM & PNPM
- Configure npm to allow global installs without admin rights
- Check if you have pnpm installed:
$ pnpm -v
- If the terminal outputs a version number, skip to step 5.
- Install pnpm:
$ npm install -g pnpm
$ pnpm install -g eslint babel-eslint postcss stylelint htmllint-cli @linthtml/linthtml
- Download the config files
$ cd ~/ && git clone https://github.com/mivaecommerce/mvps-configs.git
$ cd mvps-configs && pnpm install
- Install MAMP (or the following languages individually)
- Add the php, apache, python, mysql binaries to your PATH
- Install Composer
- Configure composer to allow global installs without admin rights?
$ composer global require "squizlabs/php_codesniffer=*"
- Optionally, install python, pip, & mkdocs (Coming Soon)
- Install VS Code
- Install Miva IDE for syntax highlighting, snippets and tools for building websites with Miva.
- Install the language specific linter-packages
- Update your VS Code Settings,
Command Prompt > Preferences Open Settings (JSON)
, and update them with settings indicated in vs-code.settings.json
- Configure the linters to use the
mvps-configs
files.- This method is preferred because it supports unique linting settings for each repo you work with and it does not require configuring VS Code link at all.
- Windows Users: Locate and update your
~/.bashrc
file and append withexport MSYS=winsymlinks:nativestrict
to enable symlinking. Launch Git Bash as administrator and perform the following step's command. - Symlink the linter files in your
mvps-configs
directory to~/
by running$ cd path/to/mvps-configs && pnpm run symlink:all
then perform your development in any subfolder of~/
(ex.~/Documents/Development/Clients/www.example.com/
)
- Configure
git init
command to create repos based off of our config (which contains a git-hook to add Jira IDs to commits and set the default branch of new repos tomain
)git config --global init.templateDir ~/mvps-configs/git/templates
- Note: You may need to change
~/
with the full path to where you cloned the mvps-configs repo (ex.C:\Users\username\mvps-configs\git/templates
)
- Note: You may need to change