UNPKG

openfl

Version:

A fast, productive library for 2D cross-platform development.

116 lines (115 loc) 5.71 kB
{ "name": "openfl", "version": "9.4.1", "description": "A fast, productive library for 2D cross-platform development.", "keywords": [ "openfl", "openfl.js", "openfl-js", "game", "animation", "sound", "flash", "graphics" ], "homepage": "http://www.openfl.org", "bugs": { "url": "https://github.com/openfl/openfl-js/issues" }, "license": "MIT", "contributors": [ "Joshua Granick", "Other OpenFL contributors" ], "main": "dist/openfl.min.js", "bin": { "openfljs": "bin/openfl.js" }, "types": "lib/openfl/index.d.ts", "sideEffects": [ "./lib-esm/openfl/utils/AssetLibrary.js", "./lib/openfl/utils/AssetLibrary.js" ], "files": [ "bin", "dist", "lib", "scripts", "src" ], "repository": { "type": "git", "url": "https://github.com/openfl/openfl-js.git" }, "scripts": { "build": "npm run build-lib && npm run build-lib-esm && npm run build-dist && npm run build-tools && npm run build-swc", "build-dist": "npm run build-dist:dev && npm run build-dist:prod", "build-dist:dev": "webpack --config webpack.dev.js", "build-dist:prod": "webpack --config webpack.prod.js", "build-docs": "typedoc --out docs scripts/importAll.ts --allowJs --entryPoint openfl --mode file --target es5 --module commonjs --plugins none --exclude \"**/{node_modules,test}/**/*.ts\" --readme none --theme default --includeDeclarations --disableOutputCheck --ignoreCompilerErrors", "build-lib": "cd scripts && haxe build.hxml", "build-lib-esm": "cd scripts && node generate-es2015 gen", "build-lib-esm-reexports-barrels": "cd scripts && node generate-es2015 non-gen", "build-swc": "compc -load-config=node_modules/@apache-royale/royale-js/royale-asjs/frameworks/js-config.xml -keep-as3-metadata=JSModule -include-sources=lib -compiler.targets=SWF,JS -warnings=false -output=dist/openfl.swc", "build-tools": "cd scripts && haxe tools.hxml", "build-test-es5": "cd test/es5 && webpack", "build-test-es6": "cd test/es6 && webpack", "build-test-haxe": "cd test/haxe && haxe build.hxml && webpack", "build-test-typescript": "cd test/typescript && tsc -p tsconfig.json && webpack", "dev-link": "npm link lime && npm link hxgenjs && npm link hxnodejs && npm link hxp && npm link format", "prepublishOnly": "npm run build", "serve": "http-server -c-1 --cors", "test": "npm run build-test-es5 && npm run build-test-es6 && npm run build-test-haxe && npm run build-test-typescript && mocha-chrome test/index.html --old-and-busted", "test-es5": "npm run build-test-es5 && mocha-chrome test/es5/index.html --old-and-busted", "test-es6": "npm run build-test-es6 && mocha-chrome test/es6/index.html --old-and-busted", "test-haxe": "npm run build-test-haxe && mocha-chrome test/haxe/index.html --old-and-busted", "test-typescript": "npm run build-test-typescript && mocha-chrome test/typescript/index.html --old-and-busted", "docker-build": "cd scripts && node docker-run.js openfl/ci-openfl-js:0.0.2 \"npm run build; chmod -R 777 dist; chmod -R 777 lib/_gen\"", "docker-build-dist": "cd scripts && node docker-run.js openfl/ci-openfl-js:0.0.2 \"npm run build-dist; chmod -R 777 dist\"", "docker-build-lib": "cd scripts && node docker-run.js openfl/ci-openfl-js:0.0.2 \"npm run build-lib; chmod -R 777 lib/_gen\"", "docker-build-test-es5": "cd scripts && node docker-run.js openfl/ci-openfl-js:0.0.2 \"npm run build-test-es5 -s; chmod -R 777 test/es5\"", "docker-build-test-es6": "cd scripts && node docker-run.js openfl/ci-openfl-js:0.0.2 \"npm run build-test-es6 -s; chmod -R 777 test/es6\"", "docker-build-test-haxe": "cd scripts && node docker-run.js openfl/ci-openfl-js:0.0.2 \"npm run build-test-haxe -s; chmod -R 777 test/haxe\"", "docker-build-test-typescript": "cd scripts && node docker-run.js openfl/ci-openfl-js:0.0.2 \"npm run build-test-typescript -s; chmod -R 777 test/typescript\"", "docker-test": "cd scripts && node docker-run.js openfl/ci-openfl-js:0.0.2 \"npm run test -s; chmod -R 777 test\"", "docker-test-es5": "cd scripts && node docker-run.js openfl/ci-openfl-js:0.0.2 \"npm run test-es5 -s\"", "docker-test-es6": "cd scripts && node docker-run.js openfl/ci-openfl-js:0.0.2 \"npm run test-es6 -s\"", "docker-test-haxe": "cd scripts && node docker-run.js openfl/ci-openfl-js:0.0.2 \"npm run test-haxe -s\"", "docker-test-typescript": "cd scripts && node docker-run.js openfl/ci-openfl-js:0.0.2 \"npm run test-typescript -s\"", "start": "npm run watch", "watch": "watch \"echo watch: Compiling... && npm run build-lib -s && echo watch: Compiled successfully.\" ./src ./scripts ./node_modules/lime/src" }, "devDependencies": { "@apache-royale/royale-js": "0.9.8", "@types/mocha": "^10.0.1", "brotli-webpack-plugin": "^1.1.0", "chai": "^4.3.7", "compression-webpack-plugin": "^10.0.0", "format": "github:jgranick/format", "globby": "^11.1.0", "haxe": "^5.2.1", "hxgenjs": "github:kevinresol/hxgenjs", "hxnodejs": "github:haxefoundation/hxnodejs", "hxp": "github:openfl/hxp#1.3.0", "jpeg-js": "^0.4.4", "lime": "github:openfl/lime#8.2.2", "mocha": "^10.2.0", "mocha-chrome": "github:Telroshan/mocha-chrome", "openfl-haxelib": "github:openfl/openfl#9.4.1", "swf": "github:openfl/swf#3.2.0", "typedoc": "^0.11.1", "typescript": "^5.0.4", "watch": "^1.0.2", "webpack": "^5.79.0", "webpack-cli": "^5.0.1", "webpack-merge": "^5.8.0" }, "dependencies": { "file-saver": "^1.3.8", "howler": "^2.0.15", "pako": "^1.0.6" }, "haxeDependencies": { "haxe": "4.0.5" } }