1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-18 15:41:54 +03:00
tabby/scripts/vars.js

49 lines
1.2 KiB
JavaScript
Raw Normal View History

2017-05-01 21:12:39 +03:00
const path = require('path')
const fs = require('fs')
const semver = require('semver')
2017-06-26 22:54:36 +03:00
const childProcess = require('child_process')
2017-05-01 21:12:39 +03:00
2018-12-15 17:49:06 +03:00
const electronInfo = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../node_modules/electron/package.json')))
2017-05-01 21:12:39 +03:00
2021-07-04 17:48:48 +03:00
exports.version = childProcess.execSync('git describe --tags', { encoding:'utf-8' })
2018-12-22 01:06:24 +03:00
exports.version = exports.version.substring(1).trim()
exports.version = exports.version.replace('-', '-c')
2017-06-26 22:54:36 +03:00
if (exports.version.includes('-c')) {
2021-07-11 17:12:36 +03:00
exports.version = semver.inc(exports.version, 'prepatch').replace('-0', `-nightly.${process.env.REV ?? 0}`)
}
2017-05-01 21:12:39 +03:00
exports.builtinPlugins = [
2021-07-04 17:48:48 +03:00
'tabby-core',
'tabby-settings',
'tabby-terminal',
'tabby-web',
'tabby-community-color-schemes',
'tabby-ssh',
'tabby-serial',
'tabby-telnet',
2021-08-04 20:28:41 +03:00
'tabby-electron',
2021-08-04 21:21:14 +03:00
'tabby-local',
'tabby-plugin-manager',
'tabby-linkifier',
]
exports.packagesWithDocs = [
['.', 'tabby-core'],
['terminal', 'tabby-terminal'],
['local', 'tabby-local'],
['settings', 'tabby-settings'],
2017-05-01 21:12:39 +03:00
]
2021-07-11 23:59:39 +03:00
exports.allPackages = [
...exports.builtinPlugins,
'web',
'tabby-web-demo',
]
2018-03-23 19:15:11 +03:00
exports.bundledModules = [
2021-07-04 17:48:48 +03:00
'@angular',
'@ng-bootstrap',
2018-03-23 19:15:11 +03:00
]
2018-12-15 17:49:06 +03:00
exports.electronVersion = electronInfo.version