@experium/findy-form 1.1.457 → 1.2.1

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.
@@ -16,7 +16,7 @@ jobs:
16
16
  skip_cleanup: true
17
17
  edge: true
18
18
  provider: script
19
- script: "cp .npmrc.template $HOME/.npmrc && npm version 1.1.457 && npm publish"
19
+ script: "cp .npmrc.template $HOME/.npmrc && npm version 1.1.$TRAVIS_BUILD_NUMBER && npm publish"
20
20
  on:
21
21
  branch: master
22
22
  - stage: deploy gh pages
package/Jenkinsfile ADDED
@@ -0,0 +1,44 @@
1
+ scripts.discardOldJobBuilds('3')
2
+ scripts.killPreviousJobBuilds()
3
+
4
+ node {
5
+ scripts.tryFinally {
6
+ stage('Checkout') {
7
+ checkout scm
8
+ }
9
+
10
+ def branch = env.BRANCH_NAME
11
+ def isPR = branch ==~ /^PR-\d+$/
12
+
13
+ docker.image('node:14.15').inside('-e HOME=/tmp') {
14
+ stage('Install') {
15
+ sh 'yarn install'
16
+ }
17
+
18
+ stage('Build lib') {
19
+ sh 'yarn package'
20
+ }
21
+
22
+ stage('Build ghpages') {
23
+ sh 'yarn build'
24
+ }
25
+
26
+ if (!isPR) {
27
+ stage('Publish artifacts') {
28
+ step([$class: 'ArtifactArchiver', artifacts: 'dist/**/*', fingerprint: true])
29
+ step([$class: 'ArtifactArchiver', artifacts: 'lib/**/*', fingerprint: true])
30
+ }
31
+
32
+ stage('Publish npm') {
33
+ withNPM(npmrcConfig:'publishnpmrc') {
34
+ sh "npm --no-git-tag-version version 1.2.${env.BUILD_NUMBER} && npm publish"
35
+ }
36
+ }
37
+
38
+ // stage('Publish ghpage') {
39
+ // sh "yarn deploy-storybook"
40
+ // }
41
+ }
42
+ }
43
+ }
44
+ }
package/dist/404.html ADDED
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>App</title>
6
+ <script type="text/javascript">
7
+ var segmentCount = 1;
8
+
9
+ var l = window.location;
10
+ l.replace(
11
+ l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
12
+ l.pathname.split('/').slice(0, 1 + segmentCount).join('/') + '/?p=/' +
13
+ l.pathname.slice(1).split('/').slice(segmentCount).join('/').replace(/&/g, '~and~') +
14
+ (l.search ? '&q=' + l.search.slice(1).replace(/&/g, '~and~') : '') +
15
+ l.hash
16
+ );
17
+
18
+ </script>
19
+ </head>
20
+ <body>
21
+ </body>
22
+ </html>