Created
October 2, 2017 09:58
-
-
Save tonybolanyo/88c71f2465328428f4227d71746e4940 to your computer and use it in GitHub Desktop.
npm-paralelo (blog Tony G. Bolaño)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"posts": [{ | |
"id": 1, | |
"title": "json-server", | |
"author": "typicode" | |
}], | |
"comments": [{ | |
"id": 1, | |
"body": "some comment", | |
"postId": 1 | |
}], | |
"profile": { | |
"name": "typicode" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>NPM: scripts en paralelo</title> | |
</head> | |
<body> | |
<h1>Probando ejecución en paralelo con NPM</h1> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "npm-paralelo", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"browser-sync": "browser-sync start --server --serveStatic html", | |
"json-server": "json-server --watch db.json --port 3003", | |
"dev": "concurrently \"npm run browser-sync\" \"npm run json-server\"" | |
}, | |
"keywords": [], | |
"author": "Tony G. Bolaño (https://tonygb.com)", | |
"license": "MIT", | |
"devDependencies": { | |
"browser-sync": "^2.18.13", | |
"concurrently": "^3.5.0", | |
"json-server": "^0.12.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment