archematics/package.json5
Glen Whitney a236e15990 feat: Get extension working in the Edge browser (#42)
To accomplish this, it needed to be bundled up in a zip file, so
  code to do that was added. (Quite possibly the zip will be able to
  be renamed as an .xpi file to create the file needed for Firefox.
  At the moment, you must extract this zip and "sideload" the extension
  into Edge by selected the extracted folder. I read that Edge will
  handle the packing into a single extension file itself.

  Also, some of the features used in the extension had to be polyfilled
  into Edge. And the final major change is that the "Xray" feature is
  not available in Edge, so data passed from the content script to the
  script injected into the page had to be moved from Xray to attributes
  of the script element. This all represents more progress on #28,
  Chrome(ium) is next.

Reviewed-on: #42
Co-authored-by: Glen Whitney <glen@studioinfinity.org>
Co-committed-by: Glen Whitney <glen@studioinfinity.org>
2023-10-10 03:17:19 +00:00

51 lines
1.6 KiB
Plaintext

{
name: 'archematics',
version: '0.1.0',
description: 'Uncovering lost digital mathematical treasures',
scripts: {
test: 'echo "Error: no test specified" && exit 1',
// Obtain additional source code needed:
prebuild: 'bash tools/fetchDeps.bash',
// Use civet to create .ts files from the source...
build_ts1: 'mkdir -p tsbuild && civet -c -o tsbuild/.ts src/*.civet',
// ... but also grab other existing files:
build_ts2: 'cp -r etc/deps tsbuild',
build_ts3: 'bash tools/copyDeps.bash tsbuild/deps',
// Use the Typescript compiler to create the final .js files:
build_js: 'tsc && mkdir -p public/js && cp -r jsbuild/* public/js',
build_deps: 'bash tools/copyDeps.bash public/js/deps',
build_plugin: 'bash tools/makePlugin.bash archematics',
build: 'pnpm --sequential /build_/',
start: 'node public/js',
go: 'pnpm --sequential "/build|start/"',
serve: 'pnpm build && http-server',
clean: 'rm -rf tsbuild jsbuild public/js archematics archematics.zip',
},
packageManager: 'pnpm',
keywords: [
'math',
'browser',
'plugin',
],
author: 'Glen Whitney',
license: 'MIT',
repository: {
type: 'git',
url: 'https://code.studioinfinity.org/glen/archematics.git',
},
devDependencies: {
'@danielx/civet': '^0.6.43',
'@types/firefox-webext-browser': '^111.0.2',
'@types/jquery': '^3.5.22',
'@webcomponents/custom-elements': '^1.6.0',
'http-server': '^14.1.1',
rollup: '^4.0.2',
typescript: '^5.2.2',
'webextension-polyfill': '^0.10.0',
},
dependencies: {
colorsea: '^1.2.1',
vrml1to97: '^0.2.2',
},
}