UNPKG

aws-amplify-react

Version:

AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.

76 lines (75 loc) 2.19 kB
{ "name": "aws-amplify-react", "version": "2.3.1", "description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.", "main": "dist/index.js", "scripts": { "test": "tslint 'src/**/*.ts' && jest --coverage --updateSnapshot --maxWorkers 2", "build": "npm run clean && tsc -p .", "build:watch": "npm run clean && tsc -p . --watch", "watch": "yarn run clean && babel src --presets babel-preset-react --out-dir dist --copy-files --watch", "cypress": "cypress run", "cypress:open": "cypress open", "build-with-test": "npm run clean && npm test && npm run build", "clean": "rimraf dist", "format": "tsfmt --useTsfmt tsfmt.json -r src/**/*.ts", "lint": "tslint 'src/**/*.ts'" }, "devDependencies": { "enzyme": "^3.1.0", "enzyme-adapter-react-16": "^1.0.3", "enzyme-to-json": "^3.2.1", "jest": "^22.x", "react": "^16.0.0", "react-dom": "^16.0.0", "react-test-renderer": "^16.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/aws/aws-amplify.git" }, "author": "Amazon Web Services", "license": "Apache-2.0", "jest": { "transform": { "^.+\\.(js|jsx|ts|tsx)$": "<rootDir>../../node_modules/ts-jest/preprocessor.js" }, "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ], "timers": "fake", "setupTestFrameworkScriptFile": "./test_Setup/enzymeSetup.ts", "snapshotSerializers": [ "enzyme-to-json/serializer" ], "testEnvironment": "jsdom", "testURL": "http://localhost/", "coverageThreshold": { "global": { "branches": 70, "functions": 75, "lines": 75, "statements": 75 } }, "coveragePathIgnorePatterns": [ "/node_modules/" ], "moduleNameMapper": { "\\.(css|less|scss|sass)$": "<rootDir>/__mocks__/styleMock.js" } }, "dependencies": { "qrcode.react": "^0.8.0", "regenerator-runtime": "^0.11.1" }, "peerDependencies": { "aws-amplify": "^1.x" } }