Skip to content

Instantly share code, notes, and snippets.

View spring8904's full-sized avatar

Nguyễn Xuân Lâm spring8904

View GitHub Profile
@spring8904
spring8904 / package.json
Created December 29, 2023 04:03
build babel
"scripts": {
"start": "npm run build && node build/app.js",
"dev": "nodemon --exec babel-node src/app.js",
"build": "npm run clean && npm run build-babel",
"build-babel": "babel src -d build",
"clean": "rm -rf build && mkdir build"
}
Rename-Item -Path "./data" -NewName "./data_old"
Copy-Item -Path "./backup" -Destination "./data" -Recurse
Remove-Item "./data/test" -Recurse
$dbPaths = Get-ChildItem -Path "./data_old" -Exclude ('mysql', 'performance_schema', 'phpmyadmin') -Recurse -Directory
Copy-Item -Path $dbPaths.FullName -Destination "./data" -Recurse
Copy-Item -Path "./data_old/ibdata1" -Destination "./data/ibdata1"

Prettier

Config

Add to .prettierrc:

{
  "printWidth": 80,
 "tabWidth": 2,