This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1c3203e
Showing
7 changed files
with
508 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# A Config ⚙️ Tool For Cool Kids Like Me and You 🕶️ | ||
|
||
This is a repo/tool to track all the tools and configs I use in my Dev environment and day to day work so it's easy to update/reinstall operating systems and tools. | ||
|
||
Feel free to make recommendations via PRs or throw up Issues if you think I should change my setup. Friends don't let friends use software with well known security exploits or embedded crypto miners right? | ||
|
||
One should be able to install the below using | ||
|
||
```bash | ||
coolkid --[flag] | ||
``` | ||
|
||
where flag is the thing you're trying to setup. | ||
|
||
## VS Code Extensions | ||
|
||
### Functionality (There is a lot Bruv): | ||
|
||
- Auto Close Tag | ||
- Auto Rename Tag | ||
- Prettier | ||
- Path IntelliSense | ||
- npm IntelliSense | ||
- npm | ||
- Node.js Modules Intellisense | ||
- Markdown All In One | ||
- Jest | ||
- Indenticator | ||
- GraphQL (by Prisma) | ||
- ESLint | ||
- Color Highlight | ||
- Code Spell Checker | ||
- Apollo GraphQL | ||
- Document This | ||
- Bracket Pair Colorizer 2 | ||
- vscode-styled-components | ||
- Babel JavaScript | ||
- Auto Import | ||
- Debugger for Chrome | ||
- HTML CSS Support | ||
- Javascript Code Snippets | ||
- Duplicate action | ||
- markdownlint | ||
- Markdown Preview Enhanced | ||
- SVG Viewer | ||
- Surround | ||
- Git Lens | ||
- VS Live Share | ||
- Import Cost | ||
|
||
### Fashion: | ||
|
||
- Nyu Theme | ||
- Palenight Theme | ||
- Horizon Theme | ||
- Noctis Theme | ||
- Material Icon Theme | ||
|
||
### Language Support: | ||
|
||
- Go | ||
- Bash IDE | ||
- Python | ||
- Rust (rls) | ||
- SVG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
const { MultiSelect } = require('enquirer'); | ||
const installer = require('./vscode-extensions'); | ||
const ora = require('ora'); | ||
|
||
const prompt = new MultiSelect({ | ||
name: 'setup', | ||
message: 'Which aspects of the system need to be setup?', | ||
hint: '(Use <space> to select, <a> for all, and <return> to submit)', | ||
choices: [ | ||
{ | ||
name: 'Node Environment', | ||
value: 'nodeenv', | ||
hint: '\t\tinstall node, yarn, nvm', | ||
}, | ||
{ | ||
name: 'VS Code Extensions', | ||
value: 'vscode-extensions.js', | ||
hint: '\t\tinstall my fav extensions', | ||
}, | ||
{ | ||
name: 'Global Node Packages', | ||
value: 'globalnpm', | ||
hint: '\t\tglobally install things like CRA and Gatsby', | ||
}, | ||
], | ||
result(names) { | ||
return this.map(names); | ||
}, | ||
}); | ||
|
||
prompt.run().then(async answers => { | ||
const running_man; | ||
for (const answer of Object.values(answers)) { | ||
const aspect = require(answer); | ||
running_man = ora({ | ||
spinner: 'runner', | ||
text: `Running ${answer}`, | ||
}).start(); | ||
await aspect(); | ||
running_man.stop(); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#!/usr/bin/env node | ||
|
||
const util = require('util'); | ||
const exec = util.promisify(require('child_process').exec); | ||
const chalk = require('chalk'); | ||
|
||
extensions = [ | ||
'apollographql.vscode-apollo', | ||
'bungcip.better-toml', | ||
'christian-kohler.npm-intellisense', | ||
'christian-kohler.path-intellisense', | ||
'cssho.vscode-svgviewer', | ||
'davidanson.vscode-markdownlint', | ||
'dbaeumer.vscode-eslint', | ||
'eamodio.gitlens', | ||
'ecmel.vscode-html-css', | ||
'ms-vscode.vscode-typescript-tslint-plugin', | ||
'eg2.vscode-npm-script', | ||
'equinusocio.vsc-material-theme', | ||
'esbenp.prettier-vscode', | ||
'formulahendry.auto-close-tag', | ||
'formulahendry.auto-rename-tag', | ||
'jpoissonnier.vscode-styled-components', | ||
'leizongmin.node-module-intellisense', | ||
'mads-hartmann.bash-ide-vscode', | ||
'ms-python.python', | ||
'ms-vscode.go', | ||
'ms-vscode.node-debug2', | ||
'ms-vscode.powershell', | ||
'MS-vsliveshare.vsliveshare', | ||
'msjsdiag.debugger-for-chrome', | ||
'naumovs.color-highlight', | ||
'oderwat.indent-rainbow', | ||
'orta.vscode-jest', | ||
'pkief.material-icon-theme', | ||
'prisma.vscode-graphql', | ||
'rust-lang.rust', | ||
'SirTori.indenticator', | ||
'streetsidesoftware.code-spell-checker', | ||
'teabyii.ayu', | ||
'whizkydee.material-palenight-theme', | ||
'xabikos.javascriptsnippets', | ||
'yzhang.markdown-all-in-one', | ||
'zignd.html-css-class-completion', | ||
'yatki.vscode-surround', | ||
'shd101wyy.markdown-preview-enhanced', | ||
'mgmcdermott.vscode-language-babel', | ||
'mrmlnc.vscode-duplicate', | ||
'steoates.autoimport', | ||
'CoenraadS.bracket-pair-colorizer-2', | ||
'jolaleye.horizon-theme-vscode', | ||
'liviuschera.noctis', | ||
'wix.vscode-import-cost', | ||
]; | ||
|
||
module.exports = async () => { | ||
const { err } = await exec('code --version'); | ||
|
||
if (!err) { | ||
console.log(chalk.green(`✓✓✓ VS Code found, installing extensions...`)); | ||
for (const ext of extensions) { | ||
const { err } = await exec(`code --install-extension ${ext}`); | ||
err | ||
? console.log(chalk.green(`✓ Installed ${ext} successfully!`)) | ||
: console.log(chalk.red(`✗ Failed to install ${ext}!`)); | ||
} | ||
} else { | ||
console.log( | ||
chalk.red( | ||
`✗✗✗ VS Code not detected on system, please install VS Code first.`, | ||
), | ||
); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "coolkid", | ||
"version": "1.0.0", | ||
"description": "A setup tool to help me automate assembling a new environment.", | ||
"bin": { | ||
"coolkid": "bin/function-junction.js" | ||
}, | ||
"scripts": { | ||
"start": "node bin/function-junction.js" | ||
}, | ||
"author": "Connor Minielly", | ||
"license": "MIT", | ||
"dependencies": { | ||
"chalk": "^2.4.2", | ||
"enquirer": "^2.3.0", | ||
"ora": "^3.1.0", | ||
"shelljs": "^0.8.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"workbench.iconTheme": "material-icon-theme", | ||
"workbench.colorTheme": "Ayu Mirage", | ||
"workbench.startupEditor": "newUntitledFile", | ||
"editor.tabSize": 2, | ||
"files.trimTrailingWhitespace": true, | ||
"files.insertFinalNewline": true, | ||
"window.zoomLevel": 0, | ||
// If on windows using WSL | ||
// "terminal.integrated.shell.windows": "C:\\Windows\\System32\\bash.exe", | ||
// If using arduino | ||
// "arduino.path": "C:\\Program Files (x86)\\Arduino", | ||
"terminal.integrated.fontFamily": "'Meslo LG S DZ for Powerline'", | ||
"editor.fontFamily": "'FuraCode Nerd Font Mono', Consolas, 'Courier New', monospace", | ||
"editor.fontLigatures": true, | ||
"prettier.eslintIntegration": true, | ||
"prettier.semi": true, | ||
"prettier.singleQuote": true, | ||
"prettier.trailingComma": "all", | ||
"editor.formatOnSave": true, | ||
"emmet.showSuggestionsAsSnippets": true, | ||
"emmet.triggerExpansionOnTab": true, | ||
"emmet.syntaxProfiles": { | ||
"javascript": "html" | ||
}, | ||
"editor.snippetSuggestions": "top", | ||
"diffEditor.ignoreTrimWhitespace": false, | ||
"editor.quickSuggestions": { | ||
"other": true, | ||
"comments": true, | ||
"strings": true | ||
}, | ||
"files.associations": { | ||
"*.js": "javascriptreact" | ||
}, | ||
"files.eol": "\n", | ||
"cSpell.userWords": [ | ||
"Cylon", | ||
"Jackalope", | ||
"antd", | ||
"bookstack", | ||
"borderless", | ||
"connor", | ||
"filepath", | ||
"minielly", | ||
"netlify", | ||
"wsib" | ||
], | ||
"javascript.updateImportsOnFileMove.enabled": "always", | ||
"eslint.autoFixOnSave": true, | ||
"window.titleBarStyle": "custom", | ||
"breadcrumbs.enabled": false, | ||
"editor.minimap.enabled": true, | ||
"eslint.packageManager": "yarn" | ||
} |
Oops, something went wrong.