forked from appbaseio/reactivesearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package-scripts.js
45 lines (43 loc) · 1.63 KB
/
package-scripts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
const path = require('path');
// eslint-disable-next-line
const npsUtils = require('nps-utils');
const packageJSON = require('./packages/web/package.json');
const reactivecoreVersion = require('./packages/reactivecore/package.json');
const vueRSVersion = require('./packages/vue/package.json');
const { series } = npsUtils;
module.exports = {
scripts: {
upgrade: {
description: 'Updates the ReactiveSearch version in all over the mono-repo.',
'version-update': `${path.resolve(
`${__dirname}/scripts/version-update.sh`,
)} "@appbaseio/reactivesearch" ${packageJSON.version} ${__dirname}`,
'build-demos': `${path.resolve(`${__dirname}/scripts/build-demos.sh`)} ${__dirname}`,
'deploy-storybook': `${path.resolve(
`${__dirname}/scripts/deploy-storybook.sh`,
)} ${__dirname}`,
'build-umd': packageJSON.scripts['build:umd'],
// Updates version + deploy storybook + build demos
default: series.nps(
'upgrade.version-update',
'upgrade.build-umd',
'upgrade.deploy-storybook',
'upgrade.build-demos',
),
},
'upgrade-core': {
description: 'Updates the Reactivecore version in all over the mono-repo.',
// To update reactivecore version
default: `${path.resolve(
`${__dirname}/scripts/version-update.sh`,
)} "@appbaseio/reactivecore" ${reactivecoreVersion.version} ${__dirname}`,
},
'upgrade-vue': {
description: 'Updates the ReactiveSearch Vue version in all over the mono-repo.',
// To update reactivesearch vue version
default: `${path.resolve(
`${__dirname}/scripts/version-update.sh`,
)} "@appbaseio/reactivesearch-vue" ${vueRSVersion.version} ${__dirname}`,
},
},
};