From 37949b9b203c5882b58efaa32124dd8c97c37b39 Mon Sep 17 00:00:00 2001 From: Douglas Gubert Date: Tue, 12 Sep 2023 18:47:43 -0300 Subject: [PATCH] chore: Remove references to "apps-ts-definition" package (#663) --- gulpfile.js | 16 +-------------- src/definition/package.json | 40 ------------------------------------- 2 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 src/definition/package.json diff --git a/gulpfile.js b/gulpfile.js index d7e6f381a..eddf36cdf 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,11 +1,8 @@ -const fs = require('fs'); - const gulp = require('gulp'); const del = require('del'); const sourcemaps = require('gulp-sourcemaps'); const tsc = require('gulp-typescript'); const shell = require('gulp-shell'); -const bump = require('gulp-bump'); const tsp = tsc.createProject('tsconfig.json'); @@ -29,22 +26,11 @@ function compileTs() { return tsp.src().pipe(sourcemaps.init()).pipe(tsp()).pipe(sourcemaps.write('.')).pipe(gulp.dest('.')); } -function updateTsDefinitionVersion() { - const { version } = JSON.parse(fs.readFileSync('./package.json')); - - return gulp.src('src/definition/package.json').pipe(bump({ version })).pipe(gulp.dest('src/definition/')); -} - -// Tasks for getting it ready and publishing -function tsDefinitionModuleFiles() { - return gulp.src(['LICENSE', 'src/definition/package.json']).pipe(gulp.dest('definition/')); -} - function watch() { gulp.watch('src/**/*.ts', gulp.series(compileTs)); } -const compile = gulp.series(cleanGenerated, compileTs, updateTsDefinitionVersion, tsDefinitionModuleFiles); +const compile = gulp.series(cleanGenerated, compileTs); gulp.task('bundle', bundleSdk); diff --git a/src/definition/package.json b/src/definition/package.json deleted file mode 100644 index f1946bef9..000000000 --- a/src/definition/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@rocket.chat/apps-ts-definition", - "version": "1.41.0-alpha", - "description": "Contains the TypeScript definitions for the Rocket.Chat Applications.", - "main": "index.js", - "typings": "index", - "scripts": { - "start": "gulp", - "go-publish": "gulp publish", - "gen-doc": "typedoc --mode file --excludePrivate --target ES6 --name 'Rocket.Chat Apps TypeScript Definition' --out docs/ src/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RocketChat/Rocket.Chat.Apps-ts-definition.git" - }, - "keywords": [ - "rocket.chat", - "team chat", - "apps" - ], - "author": "Bradley Hilton ", - "license": "MIT", - "bugs": { - "url": "https://github.com/RocketChat/Rocket.Chat.Apps-ts-definition/issues" - }, - "homepage": "https://github.com/RocketChat/Rocket.Chat.Apps-ts-definition#readme", - "devDependencies": { - "@typescript-eslint/eslint-plugin": "~5.60.1", - "@typescript-eslint/parser": "~5.60.1", - "del": "^3.0.0", - "eslint": "~8.45.0", - "gulp": "^3.9.1", - "gulp-shell": "^0.6.5", - "gulp-sourcemaps": "^2.6.4", - "gulp-typescript": "^4.0.2", - "merge2": "^1.2.1", - "typedoc": "~0.24.8", - "typescript": "~4.9.5" - } -}