UNPKG

atma-io

Version:
313 lines (312 loc) 10.4 kB
{ "name": "atma-io", "description": "File / Directory Classes", "author": { "name": "Alex Kit", "email": "alex.kit@atmajs.com" }, "version": "1.3.8", "main": "./lib/umd/node/io.js", "types": "./lib/io.d.ts", "browser": "./lib/umd/browser/io.js", "exports": { "node": { "types": "./lib/io.d.ts", "import": "./lib/esm/node/io.mjs", "require": "./lib/umd/node/io.js" }, "browser": { "types": "./lib/io.d.ts", "import": "./lib/esm/browser/io.mjs", "require": "./lib/umd/browser/io.js" }, "default": { "types": "./lib/io.d.ts", "import": "./lib/esm/node/io.mjs", "require": "./lib/umd/node/io.js" } }, "repository": { "type": "git", "url": "https://github.com/atmajs/atma-io.git" }, "license": "MIT", "devDependencies": { "@types/node": "^18.11.9", "app-bundler": "^0.2.8", "atma": "^0.15.23", "atma-io-middleware-condcomments": "^1.2.8", "atma-io-middleware-importer": "^1.1.38", "atma-io-middleware-uglify": "^1.1.25", "atma-io-middleware-yml": "^1.1.25", "atma-loader-ts": "^1.2.4", "atma-server": "^0.5.16", "atma-utils": "^0.2.60", "body-parser": "^1.20.0", "dts-bundle": "^0.7.3", "express-fileupload": "^1.3.1", "node-fetch": "^2.6.7", "shellbee": "^0.5.29", "typedoc": "^0.25.7", "typescript": "^5.3.3" }, "scripts": { "test": "atma test", "build": "app-bundler && npm run build-dts", "watch": "app-bundler --watch", "build-io": "app-bundler --app io", "server": "atma server --TEST --BROWSER", "release": "echo \"atma pub -m \"message\"\"", "build-dts": "tsc -p tsconfig-build.json && atma run tools/build-dts", "typedoc": "typedoc --tsconfig ./tsconfig-typedoc.json && atma task copy" }, "app-bundler": { "apps": { "node-esm": { "outputMain": "lib/esm/node/io.mjs", "js": [], "package": { "module": "commonjs", "moduleName": "appcfg", "moduleWrapper": "esm", "commonjs": { "output": "simplified" } }, "settings": { "atma-io-middleware-condcomments": { "defines": { "BROWSER": false, "ESM": true } }, "atma-loader-ts": { "typescript": { "compilerOptions": { "module": "CommonJS", "target": "ES2015" } } } } }, "node-umd": { "outputMain": "lib/umd/node/io.js", "js": [], "settings": { "atma-io-middleware-condcomments": { "defines": { "BROWSER": false, "ESM": false } } }, "package": { "module": "commonjs", "commonjs": { "output": "simplified" } } }, "browser-umd": { "outputMain": "lib/umd/browser/io.js", "js": [], "package": { "module": "commonjs", "moduleName": "io", "moduleWrapper": "umd", "commonjs": { "output": "simplified" } }, "settings": { "atma-io-middleware-condcomments": { "defines": { "BROWSER": true, "ESM": false } }, "atma-io-middleware-uglify": { "uglify": { "mangle": false, "compress": { "unused": true, "dead_code": true }, "output": { "beautify": true } } }, "atma-loader-ts": { "extensions": [ "ts" ], "typescript": { "compilerOptions": { "baseUrl": "./", "paths": { "@src/*": [ "src/*" ] }, "target": "es6", "module": "commonjs", "sourceMap": false } } } }, "dynamicDependencies": [], "middlewares": { "js": [ "atma-io-middleware-uglify:write" ], "ts": [ "atma-io-middleware-condcomments:read", "atma-loader-ts:read" ] } }, "browser-esm": { "outputMain": "lib/esm/browser/io.mjs", "js": [], "package": { "module": "commonjs", "moduleName": "io", "moduleWrapper": "esm", "commonjs": { "output": "simplified" } }, "settings": { "atma-io-middleware-condcomments": { "defines": { "BROWSER": true, "ESM": true } }, "atma-io-middleware-uglify": { "uglify": { "mangle": false, "compress": { "unused": true, "dead_code": true }, "output": { "beautify": true } } }, "atma-loader-ts": { "extensions": [ "ts" ], "typescript": { "compilerOptions": { "baseUrl": "./", "paths": { "@src/*": [ "src/*" ] }, "target": "es6", "module": "commonjs", "sourceMap": false } } } }, "dynamicDependencies": [], "middlewares": { "js": [ "atma-io-middleware-uglify:write" ], "ts": [ "atma-io-middleware-condcomments:read", "atma-loader-ts:read" ] } } }, "common": { "file": "src/export.ts", "defaultExtensions": { "js": "ts" }, "middlewares": { "js": [], "ts": [ "atma-io-middleware-condcomments:read", "atma-loader-ts:read" ] }, "dynamicDependencies": [ "^fs$", "^os$", "readline", "crypto" ] } }, "atma": { "plugins": [ "atma-io-middleware-condcomments", "atma-loader-ts" ], "settings": { "io": { "extensions": { "ts": [ "atma-io-middleware-condcomments:read", "atma-loader-ts:read" ] } }, "atma-utest": { "include": { "amd": true, "extentionDefault": { "js": "ts" } } }, "include": { "amd": true, "extentionDefault": { "js": "ts" } }, "atma-loader-ts": { "extensions": [ "ts", "test" ], "typescript": { "compilerOptions": { "baseUrl": "./", "paths": { "@src/*": [ "src/*" ] }, "sourceMap": false, "#if (TEST)": { "module": "AMD" }, "#if (!TEST)": { "module": "CommonJS" } } } } }, "tasks": { "copy": { "files": { "./assets/background.png": "./docs/assets/background.jpg" } } } } }