Skip to content

Instantly share code, notes, and snippets.

@shanelau
Created June 28, 2016 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanelau/5e7ca4cf7584fb8ea7ea7376a4ddc02e to your computer and use it in GitHub Desktop.
Save shanelau/5e7ca4cf7584fb8ea7ea7376a4ddc02e to your computer and use it in GitHub Desktop.
node babel
{
"presets": [
"es2015",
"stage-0",
"react"
],
"plugins": [
"syntax-export-extensions",
"transform-export-extensions",
"add-module-exports"
],
"ignore": [
]
}
{
// 使用 jquery 编码风格规范
"preset": "airbnb",
"fix": true,
"maxErrors": 50,
"fileExtensions": [".js", ".jsx"],
"excludeFiles": []
// 改变 requireCurlyBraces 规则
//"requireCurlyBraces": null // or false
}
{
"name": "babel-demo",
"private": true,
"version": "2.0.0",
"description": "",
"apidoc": {
"title": " data api docs"
},
"keywords": [],
"dependencies": {
"autoprefixer": "^6.3.6",
"babel-cli": "^6.7.5",
"babel-core": "^6.4.0",
"babel-eslint": "^6.0.2",
"babel-loader": "^6.2.4",
"babel-plugin-add-module-exports": "^0.1.2",
"babel-plugin-syntax-export-extensions": "^6.5.0",
"babel-plugin-transform-export-extensions": "^6.5.0",
"babel-polyfill": "^6.7.4",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-0": "^6.5.0",
"bluebird": "^2.9.25",
"bull": "~1.0.0-rc1",
"cacheman": "^1.1.1",
"cacheman-redis": "^0.2.0",
"connect-redis": "^3.0.1",
"cron": "^1.0.9",
"dotenv": "^2.0.0",
"ejs": "~0.8.4",
"express-mysql-session": "^0.4.1",
"express-session": "^1.11.3",
"include-all": "~0.1.3",
"ip": "^1.1.3",
"jsonwebtoken": "^5.4.0",
"lodash": "^3.10.1",
"moment": "~2.10.3",
"mongoose": "~4.4.4",
"morgan": "^1.5.3",
"node-forge": "^0.6.38",
"uuid": "^2.0.1",
"webpack": "^1.12.15",
"webpack-node-externals": "^1.0.0",
"winston": "^2.1.1"
},
"scripts": {
"start": "node app.js",
"debug": "node debug app.js",
"test": "mocha test/bootstrap.test.js test/unit/**/*.test.js test/unit/**/**/*.test.js",
"postinstall": "npm run build-prod",
"build": "babel src --out-dir api --copy-files",
"build-prod": "NODE_ENV=production& babel src --out-dir api --copy-files",
"build-watch": "babel src --watch --out-dir api --copy-files"
},
"main": "app.js",
"repository": {
"type": "git",
"url": "git://gitlab.meizu.com/MZMonster/lifekit-data.git"
},
"author": "Tracy",
"license": "",
"devDependencies": {
"chance": "^1.0.3",
"faker": "^3.1.0",
"muk": "^0.3.2",
"rewire": "^2.3.4",
"should": "^7.0.2",
"should-promised": "^0.3.0",
"supertest": "^1.0.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment