Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

web-ifc

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-ifc - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

web-ifc-api-node.js

40

package.json
{
"name": "web-ifc",
"version": "0.0.14",
"version": "0.0.15",
"description": "ifc loading on the web",

@@ -9,21 +9,33 @@ "main": "web-ifc-api.js",

"patterns": [
"./viewer"
"./examples/viewer"
],
"extensions": "ts"
},
"build-web-ifc-api-mjs": {
"patterns": [
"./src"
],
"extensions": "ts"
}
},
"scripts": {
"gen-schema": "cd schema && node gen.js",
"gen-schema": "cd src/schema && node gen.js",
"setup-env": "emsdk_env",
"init-repo": "git clone https://github.com/g-truc/glm ./wasm/deps/glm && git clone https://github.com/mapbox/earcut.hpp ./wasm/deps/earcut && npm run gen-schema",
"build-wasm-debug": "em++ --bind -O3 -g4 --source-map-base http://localhost:5000/web-ifc-js/wasm-lib/ -flto -fno-exceptions wasm/web-ifc-api.cpp -s ALLOW_MEMORY_GROWTH=1 -s FORCE_FILESYSTEM=1 -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 -O3 -o lib/web-ifc.js",
"build-wasm-release": "em++ --bind -O3 -flto -fno-exceptions wasm/web-ifc-api.cpp -s ALLOW_MEMORY_GROWTH=1 -s FORCE_FILESYSTEM=1 -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 -O3 -o lib/web-ifc.js",
"build-web-ifc-api": "esbuild lib/web-ifc-api.ts --bundle --platform=node --outfile=./dist/web-ifc-api.js",
"build-ts-api": "tsc --emitDeclarationOnly && npm run build-web-ifc-api",
"copy-to-dist": "cpy lib/*.wasm dist && cpy lib/*.map dist && cpy lib/*.js dist && cpy README.md dist && cpy package.json dist",
"build-release": "npm run build-wasm-release && npm run build-ts-api && npm run copy-to-dist",
"init-repo": "git clone https://github.com/g-truc/glm ./src/wasm/deps/glm && git clone https://github.com/mapbox/earcut.hpp ./src/wasm/deps/earcut && npm run gen-schema",
"build-release": "npm run build-wasm-release && npm run build-api",
"release_publish": "npm run build-release && cd dist && npm publish",
"build-viewer": "esbuild viewer/web-ifc-viewer.ts --bundle --platform=node --outfile=./dist/web-ifc-viewer.js && cpy viewer/index.html dist",
"deploy-viewer": "npm run build-viewer && cpy dist/*.js pages/viewer && cpy dist/*.wasm pages/viewer && cpy dist/index.html pages/viewer",
"serve-viewer": "serve dist",
"build-wasm-debug": "em++ --bind -O3 -g4 -std=c++17 --source-map-base http://localhost:5000/web-ifc-js/wasm-lib/ -flto -fno-exceptions ./src/wasm/web-ifc-api.cpp -s ALLOW_MEMORY_GROWTH=1 -s FORCE_FILESYSTEM=1 -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 -O3 -o dist/web-ifc.js",
"build-wasm-release": "em++ --bind -O3 -std=c++17 -flto -fno-exceptions ./src/wasm/web-ifc-api.cpp -s ALLOW_MEMORY_GROWTH=1 -s FORCE_FILESYSTEM=1 -s EXPORT_NAME=WebIFCWasm -s MODULARIZE=1 -O3 -o dist/web-ifc.js",
"build-api": "cpy src/web-ifc-api.ts dist && npm run build-ts-api && npm run build-web-ifc-api-mjs && npm run build-web-ifc-api-node && npm run copy-to-dist",
"build-ts-api": "tsc --emitDeclarationOnly",
"build-web-ifc-api-mjs": "esbuild dist/web-ifc-api.ts --bundle --format=esm --external:path --external:fs --outfile=./dist/web-ifc-api.js",
"build-web-ifc-api-node": "esbuild dist/web-ifc-api.ts --bundle --platform=node --outfile=./dist/web-ifc-api-node.js",
"copy-to-dist": "cpy README.md dist && cpy package.json dist",
"build-viewer": "npm run bundle-viewer && npm run copy-wasm-viewer",
"bundle-viewer": "esbuild ./examples/viewer/web-ifc-viewer.ts --bundle --platform=node --outfile=./examples/viewer/web-ifc-viewer.js",
"copy-wasm-viewer": "cpy dist/web-ifc.wasm examples/viewer",
"serve-viewer": "serve examples/viewer",
"dev": "concurrently --kill-others \"npm-watch\" \"npm run serve-viewer\""

@@ -34,3 +46,3 @@ },

"web-ifc.wasm",
"web-ifc.js",
"web-ifc-api-node.js",
"web-ifc-api.js",

@@ -37,0 +49,0 @@ "web-ifc-api.d.ts"

@@ -9,3 +9,3 @@ # web-ifc

[Example viewer application using ThreeJS](https://tomvandig.github.io/web-ifc/pages/viewer/index.html)
[Example viewer application using ThreeJS](https://tomvandig.github.io/web-ifc/examples/viewer/index.html)

@@ -49,2 +49,4 @@ ## Installing the library as an npm dependency

Run `npm install` to install all dependencies.
Run `npm run init-repo` to download both dependencies of the project (glm and earcut.hpp) to the correct location. This only needs to happen once.

@@ -51,0 +53,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc