-
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
Showing
9 changed files
with
1,009 additions
and
22 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,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = crlf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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,32 @@ | ||
{ | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module" | ||
}, | ||
"env": { | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended" | ||
], | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
2, | ||
{ | ||
"SwitchCase": 1, | ||
"ignoredNodes": [ | ||
"MemberExpression" | ||
] | ||
} | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
] | ||
} | ||
} |
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 @@ | ||
package-lock=false |
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 |
---|---|---|
@@ -1,15 +1,36 @@ | ||
# power-my-vscode | ||
install some of my personal preferred extensions and my prefered theme | ||
<div align="center"> | ||
<h1>Power-My-VScode 🚀</h1> | ||
<p> | ||
<b>Make VS Code great again! </b> | ||
</p> | ||
<br> | ||
</div> | ||
<img src="https://img.shields.io/npm/v/power-my-vscode.svg"/> | ||
|
||
|
||
My personal list : | ||
I made this package to synchronize my VS Code setup across my computers (home's laptop, at work, fresh installations, ...). | ||
It powers VS Code with my preferred extensions and preferred theme. | ||
|
||
import cost | ||
debugger-for-chrome | ||
eslint | ||
tslint | ||
CodeMetrics | ||
Bracket Pair Colorizer 2 | ||
mikestead.dotenv | ||
Live server | ||
Prefered Theme : nightowl | ||
## Usage : | ||
⚡ Zero config! one simple command line to upgrade VS Code : ⚡ | ||
``` | ||
npx power-my-vscode | ||
``` | ||
|
||
|
||
|
||
List of extensions : | ||
|
||
- **[Import cost](https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost)** | ||
- **[Debugger for chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome)** | ||
- **[Eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)** | ||
- **[TSLint](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin)** | ||
- **[CodeMetrics](https://marketplace.visualstudio.com/items?itemName=kisstkondoros.vscode-codemetrics)** | ||
- **[Bracket Pair Colorizer 2](https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2)** | ||
- **[DotENV syntax highlighting](https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv)** | ||
- **[Live server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer)** | ||
- My prefered theme : **[Nightowl](https://marketplace.visualstudio.com/items?itemName=sdras.night-owl)** | ||
|
||
## License | ||
|
||
MIT © [Mohamed EL BARCHANY](https://melbarch.com) |
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,58 @@ | ||
#!/usr/bin/env node | ||
'use strict'; | ||
|
||
const exec = require('child_process').exec; | ||
const promisify = require('util').promisify; | ||
const asyncExec = promisify(exec); | ||
|
||
const chalk = require('chalk'); | ||
const log = console.log; | ||
|
||
// TODO : move this into another file : | ||
const vsMarketPlaceItems = [ | ||
// Linters : | ||
'dbaeumer.vscode-eslint', | ||
'ms-vscode.vscode-typescript-tslint-plugin', | ||
|
||
// utilities : | ||
'wix.vscode-import-cost', | ||
'msjsdiag.debugger-for-chrome', | ||
'kisstkondoros.vscode-codemetrics', | ||
'CoenraadS.bracket-pair-colorizer-2', | ||
'mikestead.dotenv', | ||
'ritwickdey.LiveServer', | ||
|
||
// theme : | ||
'sdras.night-owl' | ||
]; | ||
|
||
let failures = 0; | ||
|
||
const installExtension = async extentionId => { | ||
const command = `code --install-extension ${extentionId}`; | ||
const { stdout, stderr } = await asyncExec(command); | ||
log(chalk.blue('Begin installing ') + chalk.green(extentionId)); | ||
if (stdout) { | ||
log(stdout); | ||
} | ||
if (stderr) { | ||
log(chalk.bold.red('Error : ') + stderr); | ||
failures++; | ||
} | ||
}; | ||
|
||
(async () => { | ||
log(chalk.bold.green('Let\'s make your VS Code great again!')); | ||
const elementsCount = vsMarketPlaceItems.length; | ||
// TODO : we can try to install only uninstalled extensions as code cli provide list of already installed extensions | ||
for (let index = 0; index < elementsCount; index++) { | ||
await installExtension(vsMarketPlaceItems[index]); | ||
} | ||
if (failures === 0) { | ||
log(chalk.bold.green('Your VSCode have been given super powers successfully!')); | ||
} else { | ||
log(chalk.yellowBright( | ||
`Only ${elementsCount - failures} out of ${elementsCount} have been installed successfully!` | ||
)); | ||
} | ||
})(); |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.