معرفی شرکت ها


publish-latest-1.1.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Script to publish generated files to a `latest` branch
ویژگی مقدار
سیستم عامل -
نام فایل publish-latest-1.1.3
نام publish-latest
نسخه کتابخانه 1.1.3
نگهدارنده ['kentcdodds']
ایمیل نگهدارنده ['kent@doddsfamily.us']
نویسنده Kent C. Dodds
ایمیل نویسنده kent@doddsfamily.us
آدرس صفحه اصلی git+https://github.com/kentcdodds/publish-latest.git
آدرس اینترنتی https://github.com/kentcdodds/publish-latest#readme
مجوز MIT
# publish-latest Status: [![npm version](https://img.shields.io/npm/v/publish-latest.svg?style=flat-square)](https://www.npmjs.org/package/publish-latest) [![npm downloads](https://img.shields.io/npm/dm/publish-latest.svg?style=flat-square)](http://npm-stat.com/charts.html?package=publish-latest&from=2015-09-01) [![Build Status](https://img.shields.io/travis/kentcdodds/publish-latest.svg?style=flat-square)](https://travis-ci.org/kentcdodds/publish-latest) [![Code Coverage](https://img.shields.io/codecov/c/github/kentcdodds/publish-latest.svg?style=flat-square)](https://codecov.io/github/kentcdodds/publish-latest) A script to allow you to publish the generated built files of your project to a specific branch in your repository. I use this as part of my travis build with `semantic-release`. I run the build as a `prepublish` script, then as a `postpublish` script, I run this script which commits the built files and pushes them to my `latest` branch. Then `semantic-release post` will create a release on github with that commit. ## Usage ```javascript { "scripts": { "build": "echo 'building project'", "prepublish": "npm run build", "postpublish": "publish-latest", "semantic-release": "semantic-release pre && npm publish && semantic-release post" } } ``` ### CLI Options You can pass several options to `publish-latest` to override the defaults. Here's the output of `--help` ``` $ publish-latest --help Usage: publish-latest [options] Options: -h, --help output usage information -V, --version output the version number -e, --user-email [email] User email to use for the release commit (defaults to author/first contributor email) -n, --user-name [name] User name to use for the release commit (defaults to author/first contributor name) -b, --branch [name] The branch to push the latest to (defaults to `latest`) -u, --url [url] The git URL to publish to (defaults to project git url) -r, --release-version [version] Version to release (defaults to package.json version) -a, --add "[file1 dir1 file2]" Files to add (defaults to `package.json dist`) -t, --temp-branch [name] Temp branch used for preparing the release (defaults to tmp/travis) ``` ### ENV variables If you do not specify a `url` then the script will derive one from your `package.json` and then the script will add a token to the GitHub URL so the commit can be pushed. This token comes from either `BOT_GH_TOKEN` or `GH_TOKEN`. ## LICENSE MIT


نیازمندی

مقدار نام
2.8.1 commander
0.2.0 parse-author
1.1.0 path-here
1.0.1 repo-path-parse


زبان مورد نیاز

مقدار نام
4.0.0 Npm


نحوه نصب


نصب پکیج tgz publish-latest-1.1.3:

    npm install publish-latest-1.1.3.tgz