@ccrpd/release-script v1.1.2
Release Script
Installation
Install the package in your Vue application
yarn add @ccrpd/release-script
And then add the following to a configuration file in the root of your project. The file must be named
release.config.js
.
module.exports = {
filepaths: {
dev: '<path>',
staging: '<path>',
prod: '<path>'
},
defaultFilePath: '<path>',
autoBuild: false,
validateTagsFlag: true
}
Note: The <path>
value should be an absolute path to the publishing directory.
Example: //vsr7797/WebSites/OrbitTechnology.com/manage360-dev/
Optional: I would recommend adding a scipt to you projects package.json
to make it easier to use.
{
"scripts": {
"release": "node node_modules/@ccrpd/release-script"
}
}
How to Use
If you have added the release
script to you package.json
, you can now run the following command with npm/yarn.
yarn release <tags> <options>
Note: <tags>
and <options>
are optional. If no <tags>
are provided then it will publish to the defaultFilePath
provided in the config file.
If you want to publish to multiple paths at the same time, you can pass in multiple <tags>
.
yarn release dev staging
Option Arguments
-b
: If provided, will build the project before publishing. You can also set autoBuild
to true in the configuration file if you always want to build.
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago