前端nodejs
开发平台
安装nodejs
开发环境
1 | // 安装`npm`淘宝源 |
安装git
工具
前端模块
- cnpm
- node-tinypng
- usage:
tinypng *.png(or folder)
- usage:
- json-server
- usage: 快速构建
REST API
本地服务
- usage: 快速构建
- bower
- babel-cli
- usage:
babel example.js -o compiled.js
- usage:
- phantomjs
- typescript , ts-node 与 typings
- usage:
tsc file.ts
- usage:
- react-native
- React UI构建工具 react-storybook
- usage:
npm i -g getstorybook
- usage:
- pm2 node应用进程管理工具
- spy-debugger
- gulp
- create-react-app
- create-react-native-app
- dawn
- 阿里前端构建和工程化工具
- prepack
- usage:
prepack script.js
- usage:
- jsmonkey
- stylus
- usage:
stylus -w style.styl -o style.css
- usage:
- less
- usage:
lessc styles.less > styles.css
- usage:
- serve
- usage:
Yarn
推荐本地静态服务
- usage:
- serve-here
- usage:
here [-p 8888][-S][here -d directory][-w 3]
- usage:
- pushstate-server
- usage:
pushstate-server [directory] [port]
- usage:
- yarn
- usage: 设置国内镜像
yarn config set registry https://registry.npm.taobao.org
- usage: 设置国内镜像
- pnpm
- npm-home
- apollo-client 面向UI框架的GraphQL客户端
- nodemon
- usage:
npm install -g nodemon
- usage:
- webpack
- koa-generator
- postcss-cli
- autoprefixer
- usage:
postcss --use autoprefixer *.css -d build/
- usage:
- npm-check
- gatsby
- requirejs (r.js)
- browserify
- express
- fkill-cli
- parcel
- n
- nrm npm源快速切换