pn-design-assets 2.0.1 → 2.2.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/README.md +1 -1
- package/package.json +5 -2
- package/pn-assets/flags.d.ts +12 -12
- package/pn-assets/flags.d.ts.map +1 -1
- package/pn-assets/flags.js +12 -12
- package/pn-assets/flags.ts +12 -12
- package/pn-assets/flagsCamel.d.ts +12 -12
- package/pn-assets/flagsCamel.d.ts.map +1 -1
- package/pn-assets/flagsCamel.js +12 -12
- package/pn-assets/flagsCamel.ts +12 -12
- package/pn-assets/fonts/licens-and-specifications/receipt.pdf +0 -0
- package/pn-assets/icons/feather.d.ts +2 -0
- package/pn-assets/icons/feather.d.ts.map +1 -0
- package/pn-assets/icons/feather.js +2 -0
- package/pn-assets/icons/feather.svg +3 -0
- package/pn-assets/icons/feather.ts +2 -0
- package/pn-assets/icons/heavy.d.ts +2 -0
- package/pn-assets/icons/heavy.d.ts.map +1 -0
- package/pn-assets/icons/heavy.js +2 -0
- package/pn-assets/icons/heavy.svg +3 -0
- package/pn-assets/icons/heavy.ts +2 -0
- package/pn-assets/icons/height.d.ts +2 -0
- package/pn-assets/icons/height.d.ts.map +1 -0
- package/pn-assets/icons/height.js +2 -0
- package/pn-assets/icons/height.svg +3 -0
- package/pn-assets/icons/height.ts +2 -0
- package/pn-assets/icons/length.d.ts +2 -0
- package/pn-assets/icons/length.d.ts.map +1 -0
- package/pn-assets/icons/length.js +2 -0
- package/pn-assets/icons/length.svg +3 -0
- package/pn-assets/icons/length.ts +2 -0
- package/pn-assets/icons/pallet.d.ts +2 -0
- package/pn-assets/icons/pallet.d.ts.map +1 -0
- package/pn-assets/icons/pallet.js +2 -0
- package/pn-assets/icons/pallet.svg +3 -0
- package/pn-assets/icons/pallet.ts +2 -0
- package/pn-assets/icons/pause.d.ts +2 -0
- package/pn-assets/icons/pause.d.ts.map +1 -0
- package/pn-assets/icons/pause.js +2 -0
- package/pn-assets/icons/pause.svg +3 -0
- package/pn-assets/icons/pause.ts +2 -0
- package/pn-assets/icons/play.d.ts +2 -0
- package/pn-assets/icons/play.d.ts.map +1 -0
- package/pn-assets/icons/play.js +2 -0
- package/pn-assets/icons/play.svg +3 -0
- package/pn-assets/icons/play.ts +2 -0
- package/pn-assets/icons/sales.d.ts +2 -0
- package/pn-assets/icons/sales.d.ts.map +1 -0
- package/pn-assets/icons/sales.js +2 -0
- package/pn-assets/icons/sales.svg +3 -0
- package/pn-assets/icons/sales.ts +2 -0
- package/pn-assets/icons/width.d.ts +2 -0
- package/pn-assets/icons/width.d.ts.map +1 -0
- package/pn-assets/icons/width.js +2 -0
- package/pn-assets/icons/width.svg +3 -0
- package/pn-assets/icons/width.ts +2 -0
- package/pn-assets/icons.d.ts +18 -9
- package/pn-assets/icons.d.ts.map +1 -1
- package/pn-assets/icons.js +18 -9
- package/pn-assets/icons.ts +18 -9
- package/pn-assets/iconsCamel.d.ts +18 -9
- package/pn-assets/iconsCamel.d.ts.map +1 -1
- package/pn-assets/iconsCamel.js +18 -9
- package/pn-assets/iconsCamel.ts +18 -9
- package/pn-assets/illustrations.d.ts +23 -23
- package/pn-assets/illustrations.d.ts.map +1 -1
- package/pn-assets/illustrations.js +23 -23
- package/pn-assets/illustrations.ts +23 -23
- package/pn-assets/illustrationsCamel.d.ts +23 -23
- package/pn-assets/illustrationsCamel.d.ts.map +1 -1
- package/pn-assets/illustrationsCamel.js +23 -23
- package/pn-assets/illustrationsCamel.ts +23 -23
- package/pn-assets/style.css +1 -1
- package/pn-assets/styles/_pn-fonts.scss +124 -21
- package/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarqube-scan/report-task.txt +0 -6
- package/.editorconfig +0 -14
- package/.nvmrc +0 -1
- package/.prettierrc.json +0 -6
- package/.vscode/settings.json +0 -3
- package/bitbucket-pipelines.yml +0 -61
- package/bom.xml +0 -3061
- package/pn-assets/fonts/web/PostNordSans-Bold.woff +0 -0
- package/pn-assets/fonts/web/PostNordSans-Bold.woff2 +0 -0
- package/pn-assets/fonts/web/PostNordSans-BoldItalic.woff +0 -0
- package/pn-assets/fonts/web/PostNordSans-BoldItalic.woff2 +0 -0
- package/pn-assets/fonts/web/PostNordSans-Light.woff +0 -0
- package/pn-assets/fonts/web/PostNordSans-Light.woff2 +0 -0
- package/pn-assets/fonts/web/PostNordSans-LightItalic.woff +0 -0
- package/pn-assets/fonts/web/PostNordSans-LightItalic.woff2 +0 -0
- package/pn-assets/fonts/web/PostNordSans-Medium.woff +0 -0
- package/pn-assets/fonts/web/PostNordSans-Medium.woff2 +0 -0
- package/pn-assets/fonts/web/PostNordSans-MediumItalic.woff +0 -0
- package/pn-assets/fonts/web/PostNordSans-MediumItalic.woff2 +0 -0
- package/pn-assets/fonts/web/PostNordSans-Regular.woff +0 -0
- package/pn-assets/fonts/web/PostNordSans-Regular.woff2 +0 -0
- package/pn-assets/fonts/web/PostNordSans-RegularItalic.woff +0 -0
- package/pn-assets/fonts/web/PostNordSans-RegularItalic.woff2 +0 -0
- package/tsconfig.json +0 -23
package/pn-assets/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:"PostNordSans";src:url("https://portal.postnord.com/fonts/
|
|
1
|
+
@font-face{font-family:"PostNordSans";src:url("https://portal.postnord.com/fonts/PNSans-Light.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-Light.woff") format("woff");font-weight:300;font-display:swap}@font-face{font-family:"PostNordSans";src:url("https://portal.postnord.com/fonts/PNSans-LightItalic.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-LightItalic.woff") format("woff");font-weight:300;font-style:italic;font-display:swap}@font-face{font-family:"PostNordSans";src:url("https://portal.postnord.com/fonts/PNSans-Regular.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-Regular.woff") format("woff");font-display:swap}@font-face{font-family:"PostNordSans";src:url("https://portal.postnord.com/fonts/PNSans-RegularItalic.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-RegularItalic.woff") format("woff");font-style:italic;font-display:swap}@font-face{font-family:"PostNordSans";src:url("https://portal.postnord.com/fonts/PNSans-Medium.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-Medium.woff") format("woff");font-weight:500;font-display:swap}@font-face{font-family:"PostNordSans";src:url("https://portal.postnord.com/fonts/PNSans-MediumItalic.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-MediumItalic.woff") format("woff");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:"PostNordSans";src:url("https://portal.postnord.com/fonts/PNSans-Bold.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-Bold.woff") format("woff");font-weight:bold;font-display:swap}@font-face{font-family:"PostNordSans";src:url("https://portal.postnord.com/fonts/PNSans-BoldItalic.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-BoldItalic.woff") format("woff");font-weight:bold;font-style:italic;font-display:swap}@font-face{font-family:"PNSans";src:url("https://portal.postnord.com/fonts/PNSans-Light.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-Light.woff") format("woff");font-weight:300;font-display:swap}@font-face{font-family:"PNSans";src:url("https://portal.postnord.com/fonts/PNSans-LightItalic.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-LightItalic.woff") format("woff");font-weight:300;font-style:italic;font-display:swap}@font-face{font-family:"PNSans";src:url("https://portal.postnord.com/fonts/PNSans-Regular.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-Regular.woff") format("woff");font-display:swap}@font-face{font-family:"PNSans";src:url("https://portal.postnord.com/fonts/PNSans-RegularItalic.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-RegularItalic.woff") format("woff");font-style:italic;font-display:swap}@font-face{font-family:"PNSans";src:url("https://portal.postnord.com/fonts/PNSans-Medium.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-Medium.woff") format("woff");font-weight:500;font-display:swap}@font-face{font-family:"PNSans";src:url("https://portal.postnord.com/fonts/PNSans-MediumItalic.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-MediumItalic.woff") format("woff");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:"PNSans";src:url("https://portal.postnord.com/fonts/PNSans-Bold.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-Bold.woff") format("woff");font-weight:bold;font-display:swap}@font-face{font-family:"PNSans";src:url("https://portal.postnord.com/fonts/PNSans-BoldItalic.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNSans-BoldItalic.woff") format("woff");font-weight:bold;font-style:italic;font-display:swap}@font-face{font-family:"PNScript";src:url("https://portal.postnord.com/fonts/PNScript-Regular.woff2") format("woff2"),url("https://portal.postnord.com/fonts/PNScript-Regular.woff") format("woff");font-weight:300;font-display:swap}body,button,input{font-family:"PNSans","Verdana"}h1,h2,h3,h4{line-height:1.1;font-weight:bold}.pn-2xl{font-size:3em;font-size:clamp(2em, 6vw, 3em)}h1,.pn-xl{font-size:2em;font-size:clamp(1.85em, 5vw, 2em)}h2,.pn-l{font-size:1.5em}h3,.pn-m{font-size:1.25em}h4,p,.pn-s{font-size:1em}p,.pn-s{line-height:1.5}.pn-xs{font-size:.875em}.pn-2xs,small{font-size:.75em;font-size:max(.6em, 1.2rem)}a.pn-a{color:#005d92;outline:none;border-radius:.8rem;padding:0 .2em;transition:box-shadow .1s}a.pn-a:focus{box-shadow:0 0 0 .2rem #005d92}a.pn-a.light{color:#8eddf9}a.pn-a.light:focus{box-shadow:0 0 0 .2rem #8eddf9}html{font-size:62.5%}body{font-size:1.6rem;margin:0}*,*::before,*::after{box-sizing:border-box}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// Fonts in WOFF2 and WOFF (For IE support)
|
|
2
2
|
|
|
3
|
+
// Old PostnordSans Font - kept for backward compatibility
|
|
3
4
|
@font-face {
|
|
4
5
|
font-family: 'PostNordSans';
|
|
5
6
|
src:
|
|
6
|
-
url('https://portal.postnord.com/fonts/
|
|
7
|
+
url('https://portal.postnord.com/fonts/PNSans-Light.woff2')
|
|
7
8
|
format('woff2'),
|
|
8
|
-
url('https://portal.postnord.com/fonts/
|
|
9
|
+
url('https://portal.postnord.com/fonts/PNSans-Light.woff')
|
|
9
10
|
format('woff');
|
|
10
11
|
font-weight: 300;
|
|
11
12
|
font-display: swap;
|
|
@@ -14,9 +15,9 @@
|
|
|
14
15
|
@font-face {
|
|
15
16
|
font-family: 'PostNordSans';
|
|
16
17
|
src:
|
|
17
|
-
url('https://portal.postnord.com/fonts/
|
|
18
|
+
url('https://portal.postnord.com/fonts/PNSans-LightItalic.woff2')
|
|
18
19
|
format('woff2'),
|
|
19
|
-
url('https://portal.postnord.com/fonts/
|
|
20
|
+
url('https://portal.postnord.com/fonts/PNSans-LightItalic.woff')
|
|
20
21
|
format('woff');
|
|
21
22
|
font-weight: 300;
|
|
22
23
|
font-style: italic;
|
|
@@ -26,9 +27,9 @@
|
|
|
26
27
|
@font-face {
|
|
27
28
|
font-family: 'PostNordSans';
|
|
28
29
|
src:
|
|
29
|
-
url('https://portal.postnord.com/fonts/
|
|
30
|
+
url('https://portal.postnord.com/fonts/PNSans-Regular.woff2')
|
|
30
31
|
format('woff2'),
|
|
31
|
-
url('https://portal.postnord.com/fonts/
|
|
32
|
+
url('https://portal.postnord.com/fonts/PNSans-Regular.woff')
|
|
32
33
|
format('woff');
|
|
33
34
|
font-display: swap;
|
|
34
35
|
}
|
|
@@ -36,31 +37,31 @@
|
|
|
36
37
|
@font-face {
|
|
37
38
|
font-family: 'PostNordSans';
|
|
38
39
|
src:
|
|
39
|
-
url('https://portal.postnord.com/fonts/
|
|
40
|
+
url('https://portal.postnord.com/fonts/PNSans-RegularItalic.woff2')
|
|
40
41
|
format('woff2'),
|
|
41
|
-
url('https://portal.postnord.com/fonts/
|
|
42
|
+
url('https://portal.postnord.com/fonts/PNSans-RegularItalic.woff')
|
|
42
43
|
format('woff');
|
|
43
44
|
font-style: italic;
|
|
44
45
|
font-display: swap;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
@font-face {
|
|
48
|
-
font-family: '
|
|
49
|
+
font-family: 'PostNordSans';
|
|
49
50
|
src:
|
|
50
|
-
url('https://portal.postnord.com/fonts/
|
|
51
|
+
url('https://portal.postnord.com/fonts/PNSans-Medium.woff2')
|
|
51
52
|
format('woff2'),
|
|
52
|
-
url('https://portal.postnord.com/fonts/
|
|
53
|
+
url('https://portal.postnord.com/fonts/PNSans-Medium.woff')
|
|
53
54
|
format('woff');
|
|
54
55
|
font-weight: 500;
|
|
55
56
|
font-display: swap;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
@font-face {
|
|
59
|
-
font-family: '
|
|
60
|
+
font-family: 'PostNordSans';
|
|
60
61
|
src:
|
|
61
|
-
url('https://portal.postnord.com/fonts/
|
|
62
|
+
url('https://portal.postnord.com/fonts/PNSans-MediumItalic.woff2')
|
|
62
63
|
format('woff2'),
|
|
63
|
-
url('https://portal.postnord.com/fonts/
|
|
64
|
+
url('https://portal.postnord.com/fonts/PNSans-MediumItalic.woff')
|
|
64
65
|
format('woff');
|
|
65
66
|
font-weight: 500;
|
|
66
67
|
font-style: italic;
|
|
@@ -68,29 +69,131 @@
|
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
@font-face {
|
|
71
|
-
font-family: '
|
|
72
|
+
font-family: 'PostNordSans';
|
|
72
73
|
src:
|
|
73
|
-
url('https://portal.postnord.com/fonts/
|
|
74
|
+
url('https://portal.postnord.com/fonts/PNSans-Bold.woff2')
|
|
74
75
|
format('woff2'),
|
|
75
|
-
url('https://portal.postnord.com/fonts/
|
|
76
|
+
url('https://portal.postnord.com/fonts/PNSans-Bold.woff') format('woff');
|
|
76
77
|
font-weight: bold;
|
|
77
78
|
font-display: swap;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
@font-face {
|
|
81
|
-
font-family: '
|
|
82
|
+
font-family: 'PostNordSans';
|
|
82
83
|
src:
|
|
83
|
-
url('https://portal.postnord.com/fonts/
|
|
84
|
+
url('https://portal.postnord.com/fonts/PNSans-BoldItalic.woff2')
|
|
84
85
|
format('woff2'),
|
|
85
|
-
url('https://portal.postnord.com/fonts/
|
|
86
|
+
url('https://portal.postnord.com/fonts/PNSans-BoldItalic.woff')
|
|
86
87
|
format('woff');
|
|
87
88
|
font-weight: bold;
|
|
88
89
|
font-style: italic;
|
|
89
90
|
font-display: swap;
|
|
90
91
|
}
|
|
91
92
|
|
|
93
|
+
// New Font
|
|
94
|
+
@font-face {
|
|
95
|
+
font-family: 'PNSans';
|
|
96
|
+
src:
|
|
97
|
+
url('https://portal.postnord.com/fonts/PNSans-Light.woff2')
|
|
98
|
+
format('woff2'),
|
|
99
|
+
url('https://portal.postnord.com/fonts/PNSans-Light.woff')
|
|
100
|
+
format('woff');
|
|
101
|
+
font-weight: 300;
|
|
102
|
+
font-display: swap;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@font-face {
|
|
106
|
+
font-family: 'PNSans';
|
|
107
|
+
src:
|
|
108
|
+
url('https://portal.postnord.com/fonts/PNSans-LightItalic.woff2')
|
|
109
|
+
format('woff2'),
|
|
110
|
+
url('https://portal.postnord.com/fonts/PNSans-LightItalic.woff')
|
|
111
|
+
format('woff');
|
|
112
|
+
font-weight: 300;
|
|
113
|
+
font-style: italic;
|
|
114
|
+
font-display: swap;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@font-face {
|
|
118
|
+
font-family: 'PNSans';
|
|
119
|
+
src:
|
|
120
|
+
url('https://portal.postnord.com/fonts/PNSans-Regular.woff2')
|
|
121
|
+
format('woff2'),
|
|
122
|
+
url('https://portal.postnord.com/fonts/PNSans-Regular.woff')
|
|
123
|
+
format('woff');
|
|
124
|
+
font-display: swap;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@font-face {
|
|
128
|
+
font-family: 'PNSans';
|
|
129
|
+
src:
|
|
130
|
+
url('https://portal.postnord.com/fonts/PNSans-RegularItalic.woff2')
|
|
131
|
+
format('woff2'),
|
|
132
|
+
url('https://portal.postnord.com/fonts/PNSans-RegularItalic.woff')
|
|
133
|
+
format('woff');
|
|
134
|
+
font-style: italic;
|
|
135
|
+
font-display: swap;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@font-face {
|
|
139
|
+
font-family: 'PNSans';
|
|
140
|
+
src:
|
|
141
|
+
url('https://portal.postnord.com/fonts/PNSans-Medium.woff2')
|
|
142
|
+
format('woff2'),
|
|
143
|
+
url('https://portal.postnord.com/fonts/PNSans-Medium.woff')
|
|
144
|
+
format('woff');
|
|
145
|
+
font-weight: 500;
|
|
146
|
+
font-display: swap;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@font-face {
|
|
150
|
+
font-family: 'PNSans';
|
|
151
|
+
src:
|
|
152
|
+
url('https://portal.postnord.com/fonts/PNSans-MediumItalic.woff2')
|
|
153
|
+
format('woff2'),
|
|
154
|
+
url('https://portal.postnord.com/fonts/PNSans-MediumItalic.woff')
|
|
155
|
+
format('woff');
|
|
156
|
+
font-weight: 500;
|
|
157
|
+
font-style: italic;
|
|
158
|
+
font-display: swap;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@font-face {
|
|
162
|
+
font-family: 'PNSans';
|
|
163
|
+
src:
|
|
164
|
+
url('https://portal.postnord.com/fonts/PNSans-Bold.woff2')
|
|
165
|
+
format('woff2'),
|
|
166
|
+
url('https://portal.postnord.com/fonts/PNSans-Bold.woff') format('woff');
|
|
167
|
+
font-weight: bold;
|
|
168
|
+
font-display: swap;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@font-face {
|
|
172
|
+
font-family: 'PNSans';
|
|
173
|
+
src:
|
|
174
|
+
url('https://portal.postnord.com/fonts/PNSans-BoldItalic.woff2')
|
|
175
|
+
format('woff2'),
|
|
176
|
+
url('https://portal.postnord.com/fonts/PNSans-BoldItalic.woff')
|
|
177
|
+
format('woff');
|
|
178
|
+
font-weight: bold;
|
|
179
|
+
font-style: italic;
|
|
180
|
+
font-display: swap;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// PNScript
|
|
184
|
+
@font-face {
|
|
185
|
+
font-family: 'PNScript';
|
|
186
|
+
src:
|
|
187
|
+
url('https://portal.postnord.com/fonts/PNScript-Regular.woff2')
|
|
188
|
+
format('woff2'),
|
|
189
|
+
url('https://portal.postnord.com/fonts/PNScript-Regular.woff')
|
|
190
|
+
format('woff');
|
|
191
|
+
font-weight: 300;
|
|
192
|
+
font-display: swap;
|
|
193
|
+
}
|
|
194
|
+
|
|
92
195
|
body,
|
|
93
196
|
button,
|
|
94
197
|
input {
|
|
95
|
-
font-family: '
|
|
198
|
+
font-family: 'PNSans', 'Verdana';
|
|
96
199
|
}
|
package/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarqube-scan/report-task.txt
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
projectKey=avupublicapis_DOCS_pn-design-guidelines
|
|
2
|
-
serverUrl=https://sqc.ess.postnord.com
|
|
3
|
-
serverVersion=10.7.0.96327
|
|
4
|
-
dashboardUrl=https://sqc.ess.postnord.com/dashboard?id=avupublicapis_DOCS_pn-design-guidelines&branch=master
|
|
5
|
-
ceTaskId=ad7ab608-8d4d-40e2-b102-b860a63d1775
|
|
6
|
-
ceTaskUrl=https://sqc.ess.postnord.com/api/ce/task?id=ad7ab608-8d4d-40e2-b102-b860a63d1775
|
package/.editorconfig
DELETED
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
lts/hydrogen
|
package/.prettierrc.json
DELETED
package/.vscode/settings.json
DELETED
package/bitbucket-pipelines.yml
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
image: node:18
|
|
2
|
-
|
|
3
|
-
definitions:
|
|
4
|
-
services:
|
|
5
|
-
docker:
|
|
6
|
-
memory: 3072
|
|
7
|
-
|
|
8
|
-
stepdefinitions:
|
|
9
|
-
- build: &build
|
|
10
|
-
name: Build
|
|
11
|
-
size: 2x
|
|
12
|
-
caches:
|
|
13
|
-
- node
|
|
14
|
-
script:
|
|
15
|
-
- npm install
|
|
16
|
-
- npm run build
|
|
17
|
-
- npm run bom
|
|
18
|
-
artifacts: # Pass the folders to future steps
|
|
19
|
-
- bom.xml
|
|
20
|
-
- pn-assets/**
|
|
21
|
-
|
|
22
|
-
- publish: &publish
|
|
23
|
-
name: Publish package to NPM
|
|
24
|
-
trigger: manual
|
|
25
|
-
script:
|
|
26
|
-
# Setup NPM registry with scope and token
|
|
27
|
-
- npm config set @postnord:registry https://registry.npmjs.org/ && npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
|
|
28
|
-
- cat ~/.npmrc
|
|
29
|
-
- ./scripts/publish_package.sh
|
|
30
|
-
|
|
31
|
-
- sonarqube: &sonarqube
|
|
32
|
-
name: Analyze on SonarQube
|
|
33
|
-
size: 2x
|
|
34
|
-
script:
|
|
35
|
-
- pipe: sonarsource/sonarqube-scan:2.0.1
|
|
36
|
-
variables:
|
|
37
|
-
SONAR_HOST_URL: ${SONARQUBE_URL}
|
|
38
|
-
SONAR_TOKEN: ${SONARQUBE_PIPELINE_TOKEN}
|
|
39
|
-
SONAR_SCANNER_OPTS: -Xmx2048m
|
|
40
|
-
EXTRA_ARGS: -Dsonar.projectKey=${BITBUCKET_REPO_OWNER}_${BITBUCKET_PROJECT_KEY}_${BITBUCKET_REPO_SLUG} -Dsonar.projectName=${BITBUCKET_REPO_SLUG}
|
|
41
|
-
|
|
42
|
-
- dependancyTrackUpload: &dependancyTrackUpload
|
|
43
|
-
name: Dependency-Track upload
|
|
44
|
-
script:
|
|
45
|
-
- pipe: docker://pndigital/dependency-track-upload:1.0
|
|
46
|
-
variables:
|
|
47
|
-
PROJECT_NAME: ${BITBUCKET_REPO_SLUG}
|
|
48
|
-
PROJECT_VERSION: ${BITBUCKET_BRANCH}
|
|
49
|
-
DEPENDENCY_TRACK_URL: ${DEPENDENCY_TRACK_URL}
|
|
50
|
-
BOM_FILE: "bom.xml"
|
|
51
|
-
X_API_KEY: "${DEPENDENCY_TRACK_APIKEY}"
|
|
52
|
-
AUTO_CREATE: "true"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
pipelines:
|
|
56
|
-
branches:
|
|
57
|
-
master:
|
|
58
|
-
- step: *build
|
|
59
|
-
- step: *sonarqube
|
|
60
|
-
- step: *dependancyTrackUpload
|
|
61
|
-
- step: *publish
|