2023-09-01 15:20:34 +00:00
|
|
|
{
|
|
|
|
name: 'vrml1to97',
|
|
|
|
version: '0.0.1',
|
|
|
|
description: 'JavaScript converter from VRML 1 to VRML97',
|
|
|
|
scripts: {
|
|
|
|
test: 'echo "Error: no test specified" && exit 1',
|
2023-09-01 21:32:25 +00:00
|
|
|
// Use civet to create .ts files from the source:
|
|
|
|
build_ts: 'mkdir -p build && civet -c -o build/.ts src/*civet',
|
|
|
|
// These next three steps get all dependencies into one place for convenience:
|
|
|
|
build_deps1: 'mkdir -p deps',
|
|
|
|
// Strip the UMD header so that es6 can import:
|
|
|
|
build_deps2: 'node tools/modulize.mjs < node_modules/moo/moo.js > deps/moo.js',
|
|
|
|
// Give Typescript the info it needs:
|
|
|
|
build_deps3: 'cp node_modules/@types/moo/index.d.ts deps/moo.d.ts',
|
|
|
|
// Use the Typescript compiler to create the final .js files:
|
|
|
|
build_js: 'tsc && mkdir -p dist/deps && cp deps/*.js dist/deps',
|
|
|
|
// And finally add the executable and minimal package.json
|
2023-09-01 15:20:34 +00:00
|
|
|
build_etc: 'cp etc/*.js* dist',
|
|
|
|
build: 'pnpm --sequential /build_/',
|
2023-09-01 21:32:25 +00:00
|
|
|
try: 'pnpm build && node dist/vrml1to97/example.js',
|
2023-09-04 17:31:44 +00:00
|
|
|
clean: 'rm -r build dist deps',
|
2023-09-01 15:20:34 +00:00
|
|
|
},
|
|
|
|
keywords: [
|
|
|
|
'javascript',
|
|
|
|
'vrml',
|
|
|
|
'VRML97',
|
|
|
|
'wrl',
|
|
|
|
],
|
|
|
|
author: 'Glen Whitney',
|
|
|
|
license: 'MIT',
|
|
|
|
repository: {
|
|
|
|
type: 'git',
|
|
|
|
url: 'https://code.studioinfinity.org/glen/vrml1to97.git',
|
|
|
|
},
|
|
|
|
bin: {
|
|
|
|
vrml1to97: 'dist/vrml1to97.js',
|
|
|
|
},
|
|
|
|
devDependencies: {
|
2023-09-04 17:31:44 +00:00
|
|
|
'@danielx/civet': '^0.6.30',
|
2023-09-01 21:32:25 +00:00
|
|
|
'@types/moo': '^0.5.6',
|
2023-09-01 15:20:34 +00:00
|
|
|
'http-server': '^14.1.1',
|
|
|
|
typescript: '^5.2.2',
|
|
|
|
},
|
2023-09-01 21:32:25 +00:00
|
|
|
dependencies: {
|
|
|
|
moo: '^0.5.2',
|
|
|
|
},
|
2023-09-01 15:20:34 +00:00
|
|
|
}
|