@sjcrh/proteinpaint-front 2.82.0 → 2.84.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/bundles.tgz CHANGED
Binary file
package/init.js CHANGED
@@ -8,6 +8,8 @@ const { execSync } = require('child_process')
8
8
 
9
9
  let URLPATH = process.argv[2] || '.'
10
10
  if (URLPATH.endsWith('/')) URLPATH = URLPATH.slice(0, -1)
11
+ const publicBinOnly = process.argv.includes('--publicBinOnly')
12
+
11
13
  const CWD = process.cwd()
12
14
 
13
15
  console.log('CWD', CWD)
@@ -16,20 +18,22 @@ try {
16
18
  console.log(`making a public directory at ${CWD}`)
17
19
  fs.mkdirSync(`${CWD}/public`)
18
20
  }
19
- if (!fs.existsSync(`${CWD}/public/index.html`)) {
20
- console.log(`creating a public/index.html file`)
21
- fs.copyFileSync(path.join(__dirname, './public/index.html'), `${CWD}/public/index.html`)
22
- }
23
21
  if (fs.existsSync(`${CWD}/public/bin`)) {
24
22
  console.log(`removing the old public/bin at ${CWD}`)
25
23
  // should update as part of v16 upgrade
26
24
  fs.rmdirSync(`${CWD}/public/bin`, { recursive: true, force: true }, () => {})
27
25
  }
28
- if (!fs.existsSync(`${CWD}/public/cards`)) {
29
- console.log(`Copying cards into public/cards folder`)
30
- execSync(`cp -r ${CWD}/node_modules/@sjcrh/proteinpaint-front/public/cards ${CWD}/public/cards`, {
31
- stdio: 'inherit'
32
- })
26
+ if (!publicBinOnly) {
27
+ if (!fs.existsSync(`${CWD}/public/index.html`)) {
28
+ console.log(`creating a public/index.html file`)
29
+ fs.copyFileSync(path.join(__dirname, './public/index.html'), `${CWD}/public/index.html`)
30
+ }
31
+ if (!fs.existsSync(`${CWD}/public/cards`)) {
32
+ console.log(`Copying cards into public/cards folder`)
33
+ execSync(`cp -r ${CWD}/node_modules/@sjcrh/proteinpaint-front/public/cards ${CWD}/public/cards`, {
34
+ stdio: 'inherit'
35
+ })
36
+ }
33
37
  }
34
38
  const tar = ps.spawnSync('tar', [`-xzf`, `${__dirname}/bundles.tgz`, `-C`, `${CWD}`], { encoding: 'utf8' })
35
39
  if (tar.stderr) throw tar.stderr
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-front",
3
- "version": "2.82.0",
3
+ "version": "2.84.0",
4
4
  "browser": "src/app.js",
5
5
  "main": "src/index.js",
6
6
  "bin": "init.js",
@@ -12,7 +12,7 @@
12
12
  "test:integration": "echo 'TODO: front integration tests'"
13
13
  },
14
14
  "devDependencies": {
15
- "@sjcrh/proteinpaint-client": "2.82.0",
15
+ "@sjcrh/proteinpaint-client": "2.84.0",
16
16
  "webpack": "^5.76.0",
17
17
  "webpack-cli": "^4.9.2",
18
18
  "webpack-node-externals": "^3.0.0",
@@ -30,5 +30,6 @@
30
30
  "name": "Documentation",
31
31
  "link": "https://github.com/stjude/proteinpaint/wiki/Interaction-Tracks:-Hi%E2%80%90C-and-Arc"
32
32
  }
33
- ]
33
+ ],
34
+ "citation_id": 1007
34
35
  }
@@ -57,6 +57,16 @@
57
57
  "pmid": "35982322",
58
58
  "pmidURL": "https://pubmed.ncbi.nlm.nih.gov/35982322/",
59
59
  "doi": "https://doi.org/10.1007/s00401-022-02484-7"
60
+ },
61
+ {
62
+ "id": 1007,
63
+ "title": "ppHiC: Interactive exploration of Hi-C results on the ProteinPaint web portal",
64
+ "appHeaderTitle":"ppHiC: Zhou X <em>et al</em>",
65
+ "year": "2024",
66
+ "journal": "Computational and Structural Biotechnology Journal",
67
+ "pmid": "39430404",
68
+ "pmidURL": "https://pubmed.ncbi.nlm.nih.gov/39430404/",
69
+ "doi": "https://doi.org/10.1016/j.csbj.2024.09.020"
60
70
  }
61
71
  ]
62
72
  }
@@ -148,5 +148,6 @@
148
148
  "name": "Documentation",
149
149
  "link": "https://github.com/stjude/proteinpaint/wiki/Interaction-Tracks:-Hi%E2%80%90C-and-Arc"
150
150
  }
151
- ]
151
+ ],
152
+ "citation_id": 1007
152
153
  }