UNPKG

cosmic-lib

Version:

A JavaScript implementation of the CosmicLink protocol for Stellar

88 lines (87 loc) 3.76 kB
{ "name": "cosmic-lib", "version": "2.24.0", "description": "A JavaScript implementation of the CosmicLink protocol for Stellar", "author": "MisterTicot <mister.ticot@cosmic.plus>", "homepage": "https://cosmic.plus/#view:js-cosmic-lib", "repository": "github:cosmic-plus/js-cosmic-lib", "license": "MIT", "main": "src/index.js", "module": "es5/index.js", "browserslist": "extends @kisbox/browserslist-config", "keywords": [ "stellar", "CosmicLink", "SEP-0007", "transaction", "request", "QRcode", "browser", "node" ], "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "get": "git submodule update -i --recursive", "clean": "rm -rf es5/* web/*", "prettier": "prettier --write --no-semi --trailing-comma none '{src,test}/**/*.{js,json,md}' '*.{js,json,md}'", "eslint": "eslint --fix '{src,test}/**/*.js' '*.js'", "lint": "npm run prettier && npm run eslint", "set-dev": "sh setenv.sh -d", "set-prod": "sh setenv.sh -p", "build-es5": "babel --out-dir es5 src", "build-js": "npm run build-es5 && webpack -p", "build-scss": "node-sass style/cosmic-lib.scss -o web --precision 2", "build-css": "npm run build-scss && postcss web/cosmic-lib.css -d web", "build-doc": "rm -rf web/doc; jsdoc -c jsdoc.json", "build-static": "cp -a static/. web", "build-misc": "cp -f *.md package-lock.json web", "build-all": "for i in js css doc static misc; do npm run build-$i || return; done", "build": "npm run clean && npm run set-prod && npm run build-all", "rebuild": "npm run get && cp -f web/package-lock.json . && npm ci && npm run build", "check": "npm run rebuild && cd web && git status && [ ! \"$(git status -z)\" ]", "watch-css": "node-sass style/cosmic-lib.scss -wo web", "watch-es5": "babel --watch --out-dir es5 src", "watch-js": "npm run build-es5 && webpack -d --watch & npm run watch-es5", "watch-static": "cp -fl static/*.* web", "watch": "npm run watch-static && npm run watch-css & npm run watch-js", "serve": "npm run set-dev && npm run watch & cd web && live-server", "commit-web": "cd web && git ci -am \"$message\"", "commit-main": "git ci -am \"$message\"", "commit-all": "[ \"$version\" ] && npm run commit-web && npm run commit-main", "commit-release": "export message=\"Release $version\" && npm run commit-all", "tag-web": "cd web && git tag -s \"$version\" -m \"$message\"", "tag-main": "git tag -s \"$version\" -m \"$message\"", "tag-all": "[ \"$version\" -a \"$message\" ] && npm run tag-web && npm run tag-main", "tag-release": "export version message=\"Release $version\" && npm run tag-all", "push-release": "cd web && git push --follow-tags && cd .. && git push --follow-tags", "make-release": "npm update && npm run build && npm run commit-release", "publish-release": "npm run check && npm run tag-release && npm run push-release && npm publish" }, "devDependencies": { "@babel/cli": "^7.15.4", "@babel/core": "^7.15.5", "@babel/plugin-transform-runtime": "^7.15.0", "@babel/preset-env": "^7.15.6", "@kisbox/browserslist-config": "^1.0.0-beta.21", "autoprefixer": "^10.3.4", "cssnano": "^4.1.11", "eslint": "^7.32.0", "jsdoc": "^3.6.7", "live-server": "^1.2.1", "minami": "^1.2.3", "node-sass": "^5.0.0", "postcss": "^8.3.6", "postcss-cli": "^8.3.1", "prettier": "^2.4.0", "webpack": "^4.46.0", "webpack-cli": "^3.3.12" }, "dependencies": { "@babel/runtime": "^7.15.4", "@cosmic-plus/base": "^2.11.0", "@cosmic-plus/domutils": "^2.2.0", "@cosmic-plus/jsutils": "^2.1.0", "core-js": "^3.17.3", "stellar-sdk": "^8.3.0" } }