chore: rename package

This commit is contained in:
caele
2023-11-16 08:37:35 +01:00
parent 090a47cffd
commit a0623614fc
2 changed files with 42 additions and 39 deletions

View File

@@ -9,49 +9,52 @@ var pkg = require('./package.json');
var DIST = './dist'; var DIST = './dist';
var VERSION = process.env.VERSION || 'local-dev'; var VERSION = process.env.VERSION || 'local-dev';
gulp.task('qext', function () { gulp.task("qext", function () {
var qext = { var qext = {
name: 'P&L pivot', name: "P&L pivot",
type: 'visualization', type: "visualization",
description: pkg.description + '\nVersion: ' + VERSION, description: pkg.description + "\nVersion: " + VERSION,
version: VERSION, version: VERSION,
icon: 'pivot-table', icon: "pivot-table",
preview: 'qlik-smart-pivot.png', preview: "qlik-smart-pivot.png",
keywords: 'qlik-sense, visualization', keywords: "qlik-sense, visualization",
author: pkg.author, author: pkg.author,
homepage: pkg.homepage, homepage: pkg.homepage,
license: pkg.license, license: pkg.license,
repository: pkg.repository, repository: pkg.repository,
dependencies: { dependencies: {
'qlik-sense': '>=5.5.x' "qlik-sense": ">=5.5.x",
}, },
__next: true __next: true,
}; };
if (pkg.contributors) { if (pkg.contributors) {
qext.contributors = pkg.contributors; qext.contributors = pkg.contributors;
} }
var src = require('stream').Readable({ var src = require("stream").Readable({
objectMode: true objectMode: true,
}); });
src._read = function () { src._read = function () {
this.push(new gutil.File({ this.push(
cwd: '', new gutil.File({
base: '', cwd: "",
path: pkg.name + '.qext', base: "",
contents: Buffer.from(JSON.stringify(qext, null, 4)) path: "qlik-smart-pivot.qext",
})); contents: Buffer.from(JSON.stringify(qext, null, 4)),
this.push(null); })
}; );
return src.pipe(gulp.dest(DIST)); this.push(null);
};
return src.pipe(gulp.dest(DIST));
}); });
gulp.task('clean', function(){ gulp.task("clean", function () {
return del([DIST], { force: true }); return del([DIST], { force: true });
}); });
gulp.task('zip-build', function(){ gulp.task("zip-build", function () {
return gulp.src(DIST + '/**/*') return gulp
.pipe(zip(`${pkg.name}_${VERSION}.zip`)) .src(DIST + "/**/*")
.pipe(zip(`qlik-smart-pivot_${VERSION}.zip`))
.pipe(gulp.dest(DIST)); .pipe(gulp.dest(DIST));
}); });

View File

@@ -1,5 +1,5 @@
{ {
"name": "qlik-smart-pivot", "name": "@qlik/qlik-smart-pivot",
"version": "0.0.1", "version": "0.0.1",
"description": "Profit & Loss reporting with color and font customizations.", "description": "Profit & Loss reporting with color and font customizations.",
"homepage": "", "homepage": "",