- [] ssh keys
- [] keychain
- [] homebrew
- [] xcode
- [] xcode tools
- [] upgrade git
| find ./build -type f -name "*.css" -o -name "*.js" -exec gzip -k "{}" \; |
| npm install -g parcel-bundler | |
| npm init -y | |
| npm i react react-dom @types/react @types/react-dom | |
| tsc --init | |
| ======tsconfig.json======= | |
| uncomment and set jsx to "react" | |
| leave rest as default |
| import * as fs from 'fs'; | |
| import * as Koa from 'koa'; | |
| import * as sass from 'node-sass'; | |
| import * as path from 'path'; | |
| import * as url from 'url'; | |
| import * as util from 'util'; | |
| const sassRenderAsync = util.promisify(sass.render); | |
| const fileExistsAsync = util.promisify(fs.exists); | |
| export default (options: ISassOptions) => { |
| find ~/Library/Application\ Support/Firefox -name '*.db' -delete |
| find . -name 'package-lock.json' -delete |
| node -e "require('http').createServer().listen(8086)" |
| const glob = require('glob'); | |
| const fs = require('fs'); | |
| glob('**/*.component.ts', (err, files) => { | |
| files.forEach((file) => { | |
| let lessFileName = file.replace('.component.ts', '.less'); | |
| try { | |
| fs.statSync(lessFileName); | |
| } | |
| catch (e) { | |
| console.log(`Writing ${lessFileName}`); |
Install node through https://github.com/coreybutler/nvm-windows
use latest node with nvm install latest
Install python 2.7
npm config set python python2.7
Install Visual Studio Community 2015 Edition. (Custom Install, Select Visual C++ during the installation)