oldman
October 1, 2023, 11:33am
1
Sorry, I know this is a repeat from other as well as me.
(1) I have downloaded the zip distribution from theejs.org
(2) I have unzipped in a folder and run npm install
(3) I now want to access the examples page using my locally running SERVEZ web server
Question is: where do I point the SERVEZ starting page to?
Thanks much
OLDMAN
The build macros used in three.js development are defined here:
"scripts": {
"start": "npm run dev",
"test": "npm run lint && npm run test-unit",
"build": "rollup -c utils/build/rollup.config.js",
"build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule",
"dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080 --ssl\"",
"lint-core": "eslint src",
"lint-addons": "eslint examples/jsm --ext .js --ignore-pattern libs --ignore-pattern ifc",
"lint-examples": "eslint examples --ext .html",
"lint-docs": "eslint docs --ignore-pattern prettify.js",
"lint-editor": "eslint editor --ignore-pattern libs",
"lint-playground": "eslint playground --ignore-pattern libs",
"lint-manual": "eslint manual --ignore-pattern 3rdparty --ignore-pattern prettify.js --ignore-pattern shapefile.js",
"lint-test": "eslint test --ignore-pattern vendor",
"lint-utils": "eslint utils",
"lint": "npm run lint-core",
"lint-fix": "npm run lint-core -- --fix && npm run lint-addons -- --fix && npm run lint-examples -- --fix && npm run lint-docs -- --fix && npm run lint-editor -- --fix && npm run lint-playground -- --fix && npm run lint-manual -- --fix && npm run lint-test -- --fix && npm run lint-utils -- --fix",
"test-unit": "qunit -r failonlyreporter -f !-webonly test/unit/three.source.unit.js",
"test-e2e": "node test/e2e/puppeteer.js",
"test-e2e-cov": "node test/e2e/check-coverage.js",
This file has been truncated. show original
Usually you should just need to run…
npm install
npm run dev
… and then it will print a URL for testing to the CLI, which should look like the one @Hans_Beemsterboer shared above.
jrlazz
October 1, 2023, 7:53pm
4
Hi oldman ,
When unzipped, the downloaded files are in a subdir with the name:
three.js-master
I don´t know where npm created this place.
If You find it …
Hope this helps…
PS: Servez will list all the files inside the path…then click in examples and choose one to run…
You wrote
(2) I have unzipped in a folder and run npm install
So, If You unzipped the file in a path… that is the path to write in Servez.