hypery2k/nativescript-fabric

View on GitHub
publish/package.json

Summary

Maintainability
Test Coverage
{
    "name": "nativescript-publish",
    "version": "1.0.0",
    "description": "Publish helper",
    "scripts": {
        "create-lib-scripts": "npm install --ignore-scripts && webpack --config scripts/webpack.config.js scripts/postinstall.js ../src/lib/postinstall.js && cd ../src && rm -rf node_modules/ package-lock.json && npm install --ignore-scripts",
        "setup-local-package": "rm -rf package/* && ./pack.sh && cd ../demo && npm i ../publish/package/*.tgz --ignore-scripts --no-save && npm install && cd ../demo-angular && npm i ../publish/package/*.tgz --ignore-scripts --no-save && npm install",
        "setup-dev-env": "npm run create-lib-scripts && npm run setup-local-package",
        "end2end:demo": "cd ../demo && rm -rf hooks/ node_modules/ platforms/ package-lock.json && npm run build.plugin && npm i && npm run build-android-bundle && npm run build-ios-bundle && tns test android --justlaunch && tns test ios --emulator --justlaunch",
        "end2end:demo-ng": "cd ../demo-angular && rm -rf hooks/ node_modules/ platforms/ package-lock.json && npm run build.plugin && npm i && npm run build-android-bundle",
        "end2end": "npm run setup-dev-env && npm run end2end:demo && npm run end2end:demo-ng",
        "changelog": "cd ../src && conventional-changelog -p angular -i ../CHANGELOG.md -s -r 0",
        "release:pre": "cd ../src && npm run clean && npm run test && cd ../publish && npm run setup-local-package",
        "release:post": "npm run changelog && npm run release:pre && git add ../src && git add ../CHANGELOG.md && git commit -m 'chore(release): New Release'",
        "release:major": "npm run release:pre && cd ../src && npm version major && cd ../publish && npm run release:post && git push origin && git push origin --tags && npm run version-and-push",
        "release:minor": "npm run release:pre && cd ../src && npm version minor && cd ../publish && npm run release:post && git push origin && git push origin --tags && npm run version-and-push",
        "release:patch": "npm run release:pre && cd ../src && npm version patch && cd ../publish && npm run release:post && git push origin && git push origin --tags && npm run version-and-push",
        "version-and-push": "git push origin && git push origin --tags && npm run merge-and-publish",
        "premerge-and-publish": "git checkout master && git merge develop",
        "merge-and-publish": "mv ../README.md ../src && mv ../LICENSE ../src && cd ../src && npm publish && git reset --hard && git clean -f",
        "postmerge-and-publish": "git checkout develop"
    },
    "devDependencies": {
        "conventional-changelog-cli": "1.3.1",
        "ncp": "^2.0.0",
        "prompt-lite": "~0.1.0",
        "rimraf": "^2.5.0",
        "webpack": "~2.2.0"
    }
}