Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Commit 09a16d8

Browse files
author
Anita Steiner
authored
Merge pull request #203 from phovea/release-6.0.0
Release 6.0.0
2 parents c529ed7 + 2ef4cda commit 09a16d8

File tree

9 files changed

+70
-24
lines changed

9 files changed

+70
-24
lines changed

.circleci/config.yml

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
version: 2
2-
jobs:
3-
build:
1+
version: 2.1
2+
3+
executors:
4+
node-executor:
45
working_directory: ~/phovea
56
docker:
67
- image: circleci/node:12.13-buster-browsers
8+
9+
jobs:
10+
build:
11+
executor: node-executor
712
steps:
813
- checkout
914
- run:
@@ -22,8 +27,7 @@ jobs:
2227
(grep -l '._resolved.: .\(git[^:]*\|bitbucket\):' ./node_modules/*/package.json || true) | xargs -r dirname | xargs -r rm -rf
2328
- save_cache:
2429
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}
25-
paths:
26-
- ./node_modules
30+
paths: ./node_modules
2731
- run:
2832
name: Install npm dependencies from git repositories (always get latest commit)
2933
command: npm install
@@ -35,8 +39,24 @@ jobs:
3539
command: npm run dist
3640
- store_artifacts:
3741
path: dist
42+
- persist_to_workspace:
43+
root: ~/phovea
44+
paths: .
45+
publish:
46+
executor: node-executor
47+
steps:
48+
- attach_workspace:
49+
at: ~/phovea
50+
- run:
51+
name: Authentication
52+
command: |
53+
echo -e "registry=https://$NPM_REPOSITORY" >> ~/phovea/.npmrc
54+
echo -e "//$NPM_REPOSITORY:authToken=$NPM_TOKEN" >> ~/phovea/.npmrc
55+
- run:
56+
name: Publish package
57+
command: npm publish
3858
workflows:
39-
version: 2
59+
version: 2.1
4060
# build-nightly:
4161
# triggers:
4262
# - schedule:
@@ -47,17 +67,27 @@ workflows:
4767
# - develop
4868
# jobs:
4969
# - build
50-
build-branch:
70+
build-branches-only:
5171
jobs:
5272
- build:
5373
filters:
5474
tags:
55-
ignore: /^v.*/
56-
build-tag:
75+
ignore: /.*/
76+
build-publish-tag:
5777
jobs:
5878
- build:
5979
filters:
6080
branches:
6181
ignore: /.*/
6282
tags:
6383
only: /^v.*/
84+
- publish:
85+
context:
86+
- org-public
87+
requires:
88+
- build
89+
filters:
90+
branches:
91+
ignore: /.*/
92+
tags:
93+
only: /^v.*/

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,10 @@ AUTHORS text
125125
# with the python modules ``pickle``, ``dbm.*``,
126126
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
127127
# (among others).
128+
129+
130+
# Mark compiled files as generated to hide them in PRs
131+
/dist/** linguist-generated=true
132+
133+
# Hide compiled files from git diff and auto-replace them when merging different branches
134+
/dist/** -diff -merge

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/.tscache
22
/.idea
33
/build/
4+
/dist/tsBuildInfoFile/
45
/lib/
56
node_modules/
67
/src/**/*.js

dist/provenance/LocalStorageProvenanceGraphManager.js

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/provenance/LocalStorageProvenanceGraphManager.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = {
3838
"__APP_CONTEXT__": "TEST_CONTEXT",
3939
'ts-jest': {
4040
// has to be set to true, otherwise i18n import fails
41-
"tsConfig": {
41+
"tsconfig": {
4242
"esModuleInterop": true,
4343
}
4444
}

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "phovea_core",
33
"description": "Phovea Core including plugin registry, data definition (+ common types: tables, matrix, vector, stratification), ajax, selections",
4-
"version": "5.0.1",
4+
"version": "6.0.0",
55
"author": {
66
"name": "The Caleydo Team",
77
"email": "contact@caleydo.org",
@@ -51,19 +51,19 @@
5151
"dist": "mkdir lib && cd dist && tar cvzf ../lib/phovea_core.tar.gz *"
5252
},
5353
"dependencies": {
54-
"i18next": "^19.3.2"
54+
"i18next": "^19.8.4"
5555
},
5656
"devDependencies": {
57-
"@types/jest": "~26.0.5",
57+
"@types/jest": "~26.0.20",
5858
"identity-obj-proxy": "~3.0.0",
59-
"jest": "~26.1.0",
59+
"jest": "~26.6.3",
6060
"jest-raw-loader": "~1.0.1",
6161
"rimraf": "~3.0.2",
62-
"shx": "~0.3.2",
63-
"ts-jest": "~26.1.3",
64-
"tslib": "~2.0.0",
62+
"shx": "~0.3.3",
63+
"ts-jest": "~26.4.4",
64+
"tslib": "~2.0.3",
6565
"tslint": "~5.20.1",
66-
"typedoc": "~0.17.8",
66+
"typedoc": "~0.19.2",
6767
"typescript": "~3.9.7"
6868
}
6969
}

src/provenance/LocalStorageProvenanceGraphManager.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,11 @@ export class LocalStorageProvenanceGraphManager implements IProvenanceGraphManag
8181
}
8282

8383
async clone(graph: GraphBase, desc: any = {}): Promise<ProvenanceGraph> {
84-
const description = `Cloned from ${graph.desc.name} created by ${graph.desc.creator}\n${(graph.desc.description || '')}`;
85-
const pdesc = this.createDesc(BaseUtils.mixin({name: graph.desc.name, description}, desc));
84+
const name = graph.desc.name;
85+
const prefix = 'Clone of ';
86+
const newName = name.includes(prefix) ? name : prefix + name;
87+
const description = `Cloned from ${name} created by ${graph.desc.creator}\n${(graph.desc.description || '')}`;
88+
const pdesc = this.createDesc(BaseUtils.mixin({name: newName, description}, desc));
8689
const newGraph = await this.getGraph(pdesc);
8790
newGraph.restoreDump(graph.persist(), ProvenanceGraphUtils.provenanceGraphFactory());
8891
return new ProvenanceGraph(pdesc, newGraph);

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"esModuleInterop": false,
1818
"resolveJsonModule": true,
1919
"allowSyntheticDefaultImports": true, // required for i18next,
20-
"preserveWatchOutput":true
20+
"preserveWatchOutput":true,
21+
"incremental": true,
22+
"tsBuildInfoFile": "dist/tsBuildInfoFile"
2123
},
2224
"include": [
2325
"src/**/*.ts",

0 commit comments

Comments
 (0)