Skip to content

Instantly share code, notes, and snippets.

@kahlil
Last active March 25, 2016 14:42
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 kahlil/15d184cf632e8dcc8fa6 to your computer and use it in GitHub Desktop.
Save kahlil/15d184cf632e8dcc8fa6 to your computer and use it in GitHub Desktop.
A simple package.json to quickstart and build out any JavaScript project.

JavaScript Quickstart

If you want to quickly try out an idea use this package.json. Just npm install create an index.js file, write ES2015 code if you want and see what it does in the browser by typing npm start on the command line.

As a foundation for a build-out you have xo installed for linting and ava for testing.

{
"name": "",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "budo index.js -l -o",
"test": "ava"
},
"author": "",
"license": "MIT",
"devDependencies": {
"ava": "^0.13.0",
"babel-preset-es2015": "^6.6.0",
"babelify": "^7.2.0",
"budo": "^8.1.0",
"xo": "^0.13.0"
},
"babel": {
"presets": [
"ES2015",
"stage-2"
]
},
"browserify": {
"transform": [
"babelify"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment