Requiring global installation of any tools is not the best practice, as it can introduce situations when one project requires one version of e.g. gulp and another application requires another version. To combat that, npm provides a great way to encapsulate dependencies inside `node_modules` directory and includes all binaries in PATH whenever `npm ...` commands are ran. In this commit, `rollup` was added as a dependency to `package.json` so that global installation is not required. Additionally, npm scripts for common operations were added: `npm start` for development and `npm run build` for one-time building. README was updated to match the updates. Took 5 minutes
21 lines
429 B
JSON
21 lines
429 B
JSON
{
|
|
"name": "potree",
|
|
"private": true,
|
|
"version": "0.0.1",
|
|
"description": "WebGL point cloud viewer",
|
|
"scripts": {
|
|
"start": "gulp watch",
|
|
"build": "gulp build pack"
|
|
},
|
|
"dependencies": {
|
|
"gulp": "^4.0.2",
|
|
"gulp-concat": "^2.6.1",
|
|
"gulp-connect": "^5.7.0",
|
|
"gulp-util": "^3.0.8",
|
|
"rollup": "^1.27.14",
|
|
"through": "~2.3.4"
|
|
},
|
|
"author": "Markus Schütz",
|
|
"license": "BSD-2-CLAUSE"
|
|
}
|