Skip to content

Instantly share code, notes, and snippets.

@caraya
Forked from surma/package.json
Created April 19, 2018 05:45
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 caraya/8e9e7f01becf1823cac3cf3d20742a15 to your computer and use it in GitHub Desktop.
Save caraya/8e9e7f01becf1823cac3cf3d20742a15 to your computer and use it in GitHub Desktop.
Boilerplate for quick one-off TypeScript projects. Just run `npm start`
{
"name": "tsquickstart",
"version": "1.0.0",
"description": "Boilerplate for quick one-off TypeScript projects. Just run `npm start`",
"scripts": {
"init": "test -f tsconfig.json || (tsc --init -t ESNext -m ESNext && npm install)",
"start": "npm run init && concurrently \"npm run watch\" \"npm run serve\"",
"serve": "http-server",
"watch": "tsc -p . --watch",
"build": "tsc -p ."
},
"author": "Surma <surma@google.com>",
"license": "Apache-2.0",
"devDependencies": {
"concurrently": "^3.5.1",
"http-server": "^0.11.1",
"typescript": "^2.8.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment