@spinnaker/kayenta 2.3.0 → 2025.0.0

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/build.gradle ADDED
@@ -0,0 +1,67 @@
1
+ import groovy.json.JsonSlurper
2
+
3
+ plugins {
4
+ id "io.spinnaker.artifactregistry-publish"
5
+ id "nebula.node" version "1.3.1"
6
+ }
7
+
8
+ group = "com.netflix.spinnaker.deck-kayenta"
9
+
10
+ node {
11
+ // Pulls node and npm versions from package.json.
12
+ def packageSlurper = new JsonSlurper()
13
+ def packageJson = packageSlurper.parse file('package.json')
14
+
15
+ version = packageJson.engines.node.replaceAll(/[^\d\.]/, '')
16
+ npmVersion = packageJson.engines.npm.replaceAll(/[^\d\.]/, '')
17
+ yarnVersion = packageJson.engines.yarn.replaceAll(/[^\d\.]/, '')
18
+
19
+ // Enabled the automatic download. False is the default (for now).
20
+ download = true
21
+ }
22
+
23
+ task lint(type: YarnTask) {
24
+ dependsOn "yarn"
25
+
26
+ yarnCommand = ["lint"]
27
+ }
28
+
29
+ task prettier(type: YarnTask) {
30
+ dependsOn "lint"
31
+
32
+ yarnCommand = ["prettier:check"]
33
+ }
34
+
35
+ project.tasks.register('runLinters') {
36
+ dependsOn "lint"
37
+ dependsOn "prettier"
38
+ }
39
+
40
+ task test(type: YarnTask) {
41
+ dependsOn "yarn"
42
+
43
+ yarnCommand = ["test"]
44
+
45
+ if (project.hasProperty('skipTests')) {
46
+ test.enabled = false
47
+ }
48
+ }
49
+
50
+ task webpack(type: YarnTask) {
51
+ dependsOn "yarn"
52
+
53
+ yarnCommand = ["build"]
54
+ environment = [
55
+ "NODE_ENV": "production",
56
+ "GATE_HOST": "spinnaker-api-prestaging.prod.netflix.net",
57
+ "NODE_OPTIONS": "--max_old_space_size=8192",
58
+ ]
59
+ }
60
+ webpack.outputs.dir file('build/webpack')
61
+
62
+
63
+ task build {
64
+ dependsOn "webpack"
65
+ dependsOn "runLinters"
66
+ dependsOn "test"
67
+ }
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spinnaker/kayenta",
3
- "version": "2.3.0",
3
+ "version": "2025.0.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,9 +24,9 @@
24
24
  "develop": "npm run clean && run-p watch proxy",
25
25
  "postinstall": "check-plugin && check-peer-dependencies || true",
26
26
  "prettier": "prettier --write 'src/**/*.{js,jsx,ts,tsx,html,css,less,json}'",
27
+ "prettier:check": "prettier --check 'src/**/*.{js,jsx,ts,tsx,html,css,less,json}'",
27
28
  "proxy": "dev-proxy",
28
- "watch": "rollup -c -w --no-watch.clearScreen",
29
- "prepare": "husky-install"
29
+ "watch": "rollup -c -w --no-watch.clearScreen"
30
30
  },
31
31
  "dependencies": {
32
32
  "@uirouter/core": "6.0.4",
@@ -159,5 +159,8 @@
159
159
  },
160
160
  "optionalDependencies": {
161
161
  "fsevents": "1.2.11"
162
+ },
163
+ "publishConfig": {
164
+ "registry": "https://registry.npmjs.org"
162
165
  }
163
166
  }