mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(build): tick package version
tick package version
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "ionic2",
|
"name": "ionic2",
|
||||||
"version": "2.0.0-rc.test",
|
"version": "2.0.0-rc.0",
|
||||||
"description": "A powerful framework for building mobile and progressive web apps with JavaScript and Angular 2",
|
"description": "A powerful framework for building mobile and progressive web apps with JavaScript and Angular 2",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"ionic",
|
"ionic",
|
||||||
|
@ -19,6 +19,21 @@ task('release', (done: (err: any) => void) => {
|
|||||||
runSequence('release.prepareReleasePackage', 'release.copyProdVersion', done);
|
runSequence('release.prepareReleasePackage', 'release.copyProdVersion', done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
task('release.publishRelease', (done: Function) => {
|
||||||
|
const npmCmd = spawn('npm', ['publish', DIST_BUILD_ROOT]);
|
||||||
|
npmCmd.stdout.on('data', function (data) {
|
||||||
|
console.log(data.toString());
|
||||||
|
});
|
||||||
|
|
||||||
|
npmCmd.stderr.on('data', function (data) {
|
||||||
|
console.log('npm err: ' + data.toString());
|
||||||
|
});
|
||||||
|
|
||||||
|
npmCmd.on('close', function() {
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
task('release.copyProdVersion', () => {
|
task('release.copyProdVersion', () => {
|
||||||
const sourcePackageJSON = require(`${PROJECT_ROOT}/package.json`);
|
const sourcePackageJSON = require(`${PROJECT_ROOT}/package.json`);
|
||||||
const packageJsonToUpdate = require(`${DIST_BUILD_ROOT}/package.json`);
|
const packageJsonToUpdate = require(`${DIST_BUILD_ROOT}/package.json`);
|
||||||
|
Reference in New Issue
Block a user