mirror of https://github.com/sualko/cloud_bbb
Merge pull request #303 from arawa/chore/make_and_release
chore: make clean-dev and release:buildpull/301/head
commit
71b2ac3e3e
5
Makefile
5
Makefile
|
@ -62,8 +62,11 @@ clean:
|
||||||
|
|
||||||
clean-dev:
|
clean-dev:
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
|
git checkout composer.json
|
||||||
|
git checkout composer.lock
|
||||||
|
rm -rf vendor
|
||||||
|
|
||||||
pack:
|
pack: install-composer-deps
|
||||||
mkdir -p archive
|
mkdir -p archive
|
||||||
tar --exclude='./Makefile' --exclude='./webpack*' --exclude='./.*' --exclude='./ts' --exclude='./tests' --exclude='./node_modules' --exclude='./archive' -zcvf ./archive/cloud_bbb.tar.gz . --transform s/^./bbb/
|
tar --exclude='./Makefile' --exclude='./webpack*' --exclude='./.*' --exclude='./ts' --exclude='./tests' --exclude='./node_modules' --exclude='./archive' -zcvf ./archive/cloud_bbb.tar.gz . --transform s/^./bbb/
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||||
|
/**
|
||||||
|
* npm run release:build [--dry-run] [--stable]
|
||||||
|
*
|
||||||
|
* --dry-run don't commit CHANGELOG.md
|
||||||
|
* --stable generate changelog
|
||||||
|
*
|
||||||
|
*/
|
||||||
const colors = require('colors');
|
const colors = require('colors');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
@ -155,6 +162,11 @@ async function commitChangeLog() {
|
||||||
|
|
||||||
|
|
||||||
function createArchive(appId, fileBaseName) {
|
function createArchive(appId, fileBaseName) {
|
||||||
|
const archivesPath = path.normalize(__dirname + '/../archives/');
|
||||||
|
if (!fs.existsSync(archivesPath)){
|
||||||
|
fs.mkdirSync(archivesPath);
|
||||||
|
}
|
||||||
|
|
||||||
const fileName = `${fileBaseName}.tar.gz`;
|
const fileName = `${fileBaseName}.tar.gz`;
|
||||||
const filePath = path.normalize(__dirname + `/../archives/${fileName}`);
|
const filePath = path.normalize(__dirname + `/../archives/${fileName}`);
|
||||||
const output = fs.createWriteStream(filePath);
|
const output = fs.createWriteStream(filePath);
|
||||||
|
|
Loading…
Reference in New Issue