@staffbase/create-staffbase-plugin 1.0.1 → 1.0.6

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.
@@ -6,13 +6,13 @@
6
6
  "start": "node ./bin/www"
7
7
  },
8
8
  "dependencies": {
9
- "@staffbase/staffbase-plugin-sdk": "~1.1.0",
10
- "body-parser": "~1.19.0",
9
+ "@staffbase/staffbase-plugin-sdk": "^1.3.1",
10
+ "body-parser": "~1.19.2",
11
11
  "cookie-parser": "~1.4.5",
12
- "debug": "~4.1.1",
13
- "express": "~4.17.1",
12
+ "debug": "~4.3.1",
13
+ "express": "~4.17.3",
14
14
  "morgan": "~1.10.0",
15
- "pug": "~2.0.4",
15
+ "pug": ">=3.0.1",
16
16
  "serve-favicon": "~2.5.0"
17
17
  }
18
18
  }
@@ -15,11 +15,11 @@ plugin server. The following values need to be configured.</p>
15
15
  the values in the <code>app.js</code> file where the middleware is initialized.</p>
16
16
  <p>To configure values in <code>app.js</code> file, change the following lines:</p>
17
17
  <p>app.js</p>
18
- <pre><code class="language-javascript"><span class="hljs-number">12</span> ...
19
- <span class="hljs-number">13</span> ...
20
- <span class="hljs-number">14</span> <span class="hljs-keyword">const</span> key = <span class="hljs-literal">null</span>;
21
- <span class="hljs-number">15</span> <span class="hljs-keyword">const</span> pluginID = <span class="hljs-literal">null</span>;
22
- <span class="hljs-number">16</span> ...
18
+ <pre><code class="language-javascript">12 ...
19
+ 13 ...
20
+ 14 const key = null;
21
+ 15 const pluginID = null;
22
+ 16 ...
23
23
  </code></pre>
24
24
  <p>You can also specify these values using environment variables.
25
25
  Refer to the table to see which environment variables can be used.</p>
@@ -49,12 +49,12 @@ Refer to the table to see which environment variables can be used.</p>
49
49
  <p><em>create-staffbase-plugin</em> installs the project dependencies for you.
50
50
  After configurations is done, the only thing you need to do is navigate to the
51
51
  folder where your app was generated and start the express server.</p>
52
- <pre><code class="language-bash">$ <span class="hljs-built_in">cd</span> [path of generated app]
52
+ <pre><code class="language-bash">$ cd [path of generated app]
53
53
  $ npm start
54
54
  </code></pre>
55
55
  <h2>Further Reading</h2>
56
56
  <p>For getting more information about Staffbase SSO, please check out the following links:</p>
57
57
  <ul>
58
- <li><a href="http://developers.staffbase.com/api/plugin-sso/">About Staffbase Plugin SSO</a></li>
59
- <li><a href="www.github.com/staffbase/plugins-sdk-nodejs/master/README.MD">Staffbase Nodejs Plugin Documentation</a></li>
58
+ <li><a href="https://developers.staffbase.com/concepts/customplugin-overview/">Developer Portal: Custom Plugins</a></li>
59
+ <li><a href="https://github.com/Staffbase/plugins-sdk-nodejs/blob/master/README.MD">Staffbase Plugins SDK for Node.js</a></li>
60
60
  </ul>
@@ -43,6 +43,12 @@ html
43
43
  td Theme Background Color
44
44
  td #{themingBg}
45
45
  td(width="50", style="background-color: #{themingBg}")
46
+ tr
47
+ td Branch ID
48
+ td #{branch_id}
49
+ tr
50
+ td Branch Slug
51
+ td #{branch_slug}
46
52
  h2 Plugin Info
47
53
  table
48
54
  tr
package/scripts/genDoc.js CHANGED
@@ -3,10 +3,10 @@ const fs = require('fs-extra');
3
3
  const hljs = require('highlight.js');
4
4
 
5
5
  const md = require('markdown-it')({
6
- highlight: function(str, lang) {
7
- if (lang && hljs.getLanguage(lang)) {
6
+ highlight: function(str) {
7
+ if (str && hljs.getLanguage(str)) {
8
8
  try {
9
- return hljs.highlight(lang, str, true).value;
9
+ return hljs.highlight(str, true).value;
10
10
  } catch (err) {
11
11
  console.log(err);
12
12
  }
package/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- language: node_js
2
- node_js:
3
- - "12"
4
- install:
5
- - npm install
package/greenkeeper.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "groups": {
3
- "default": {
4
- "packages": [
5
- "package.json",
6
- "scaffoldTpl/package.json"
7
- ]
8
- }
9
- }
10
- }