@kohost/api-client 1.0.0-beta.0 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bitbucket-pipelines.yml +37 -11
- package/package.json +1 -1
- package/vite.config.js +0 -22
package/bitbucket-pipelines.yml
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
image: node:
|
|
1
|
+
image: node:16.17.1
|
|
2
2
|
|
|
3
3
|
pipelines:
|
|
4
|
+
custom:
|
|
5
|
+
publish-use-cases:
|
|
6
|
+
- step:
|
|
7
|
+
image: amazon/aws-cli
|
|
8
|
+
name: Fetch use cases
|
|
9
|
+
script:
|
|
10
|
+
## fetch use cases from s3
|
|
11
|
+
- aws s3 cp s3://cloud-v3-data/useCases/useCases-${USE_CASE_HASH}.json ./useCases/http.json
|
|
12
|
+
- npm install
|
|
13
|
+
- npm version prerelease --preid=beta -m "Upgrade to %s [skip ci]"
|
|
14
|
+
- git push && git push --tags
|
|
15
|
+
- pipe: atlassian/npm-publish:0.3.2
|
|
16
|
+
variables:
|
|
17
|
+
NPM_TOKEN: $NPM_TOKEN
|
|
18
|
+
EXTRA_ARGS: --tag next-v1
|
|
19
|
+
|
|
4
20
|
pull-requests:
|
|
5
21
|
"**":
|
|
6
22
|
- step:
|
|
@@ -8,12 +24,7 @@ pipelines:
|
|
|
8
24
|
caches:
|
|
9
25
|
- node
|
|
10
26
|
script:
|
|
11
|
-
- npm
|
|
12
|
-
- npm version prerelease --preid=alpha -m "Upgrade to %s [skip ci]"
|
|
13
|
-
- git push && git push --tags
|
|
14
|
-
- pipe: atlassian/npm-publish:0.2.6
|
|
15
|
-
variables:
|
|
16
|
-
NPM_TOKEN: $NPM_TOKEN
|
|
27
|
+
- npm ci
|
|
17
28
|
branches:
|
|
18
29
|
master:
|
|
19
30
|
- step:
|
|
@@ -21,8 +32,8 @@ pipelines:
|
|
|
21
32
|
caches:
|
|
22
33
|
- node
|
|
23
34
|
script:
|
|
24
|
-
- npm
|
|
25
|
-
- pipe: atlassian/npm-publish:0.2
|
|
35
|
+
- npm ci
|
|
36
|
+
- pipe: atlassian/npm-publish:0.3.2
|
|
26
37
|
variables:
|
|
27
38
|
NPM_TOKEN: $NPM_TOKEN
|
|
28
39
|
dev:
|
|
@@ -31,9 +42,24 @@ pipelines:
|
|
|
31
42
|
caches:
|
|
32
43
|
- node
|
|
33
44
|
script:
|
|
34
|
-
- npm
|
|
45
|
+
- npm ci
|
|
46
|
+
- npm version prerelease --preid=beta -m "Upgrade to %s [skip ci]"
|
|
47
|
+
- git push && git push --tags
|
|
48
|
+
- pipe: atlassian/npm-publish:0.3.2
|
|
49
|
+
variables:
|
|
50
|
+
NPM_TOKEN: $NPM_TOKEN
|
|
51
|
+
EXTRA_ARGS: --tag next
|
|
52
|
+
|
|
53
|
+
v1:
|
|
54
|
+
- step:
|
|
55
|
+
name: Build and publish to NPM
|
|
56
|
+
caches:
|
|
57
|
+
- node
|
|
58
|
+
script:
|
|
59
|
+
- npm ci
|
|
35
60
|
- npm version prerelease --preid=beta -m "Upgrade to %s [skip ci]"
|
|
36
61
|
- git push && git push --tags
|
|
37
|
-
- pipe: atlassian/npm-publish:0.2
|
|
62
|
+
- pipe: atlassian/npm-publish:0.3.2
|
|
38
63
|
variables:
|
|
39
64
|
NPM_TOKEN: $NPM_TOKEN
|
|
65
|
+
EXTRA_ARGS: --tag next-v1
|
package/package.json
CHANGED
package/vite.config.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** @type {import('vite').UserConfig} */
|
|
2
|
-
|
|
3
|
-
import { resolve } from "path";
|
|
4
|
-
import { defineConfig } from "vite";
|
|
5
|
-
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
build: {
|
|
8
|
-
lib: {
|
|
9
|
-
// Could also be a dictionary or array of multiple entry points
|
|
10
|
-
entry: resolve(__dirname, "index.js"),
|
|
11
|
-
name: "Kohost",
|
|
12
|
-
// the proper extensions will be added
|
|
13
|
-
fileName: "kohost",
|
|
14
|
-
},
|
|
15
|
-
// commonjsOptions: {
|
|
16
|
-
// include: "**/*.js",
|
|
17
|
-
// transformMixedEsModules: true,
|
|
18
|
-
// esmExternals: true,
|
|
19
|
-
// requireReturnsDefault: false,
|
|
20
|
-
// },
|
|
21
|
-
},
|
|
22
|
-
});
|