Skip to content

Commit a059490

Browse files
authored
Merge pull request #38 from eapearson/master
minor improvements to build and config
2 parents cb1591c + 928eccf commit a059490

File tree

2 files changed

+28
-56
lines changed

2 files changed

+28
-56
lines changed

build/scripts/remove-source-maps.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async function removeSourceMappingJS(rootDir) {
5555
if (!mapRe.test(contents)) {
5656
return;
5757
}
58-
console.warn('Fixing up css file to remove mapping');
58+
console.warn('Fixing up JS file to remove mapping');
5959
console.warn(match);
6060

6161
var fixed = contents.replace(mapRe, '');
@@ -68,12 +68,12 @@ async function removeSourceMappingJS(rootDir) {
6868

6969
// removeSourceMapping(process.cwd());
7070

71-
function main() {
71+
async function main() {
7272
const cwd = process.cwd().split('/');
7373
cwd.push('..');
7474
const projectPath = path.normalize(cwd.join('/'));
75-
removeSourceMappingCSS(projectPath);
76-
removeSourceMappingJS(projectPath);
75+
await removeSourceMappingCSS(projectPath);
76+
await removeSourceMappingJS(projectPath);
7777
}
7878

7979
main();

dist/plugin/config.yml

Lines changed: 24 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,29 @@
11
## YAML Template.
22
---
33
package:
4-
author: Erik Pearson
5-
name: dashboard
6-
description: The dashboard panel and associated widgets
7-
date: August 6, 2015
8-
version: 0.0.1
4+
author: Erik Pearson
5+
name: dashboard
6+
description: The dashboard panel and associated widgets
7+
date: August 6, 2015
8+
version: 0.0.1
99
source:
10-
## sources are relative to build/plugins/PACKAGE/source/javascript
11-
## NB: need to quote file names, otherwise
12-
modules:
13-
styles:
14-
# - file: styles.css
10+
## sources are relative to build/plugins/PACKAGE/source/javascript
11+
## NB: need to quote file names, otherwise
12+
modules:
13+
styles:
14+
# - file: styles.css
1515
install:
16-
widgets:
17-
- module: ./panel
18-
id: kb_plugin_dashboard
19-
type: es6
20-
# -
21-
# module: ./dashboardPanel
22-
# id: dashboardPanel
23-
# type: factory
24-
# -
25-
# module: ./widgets/CollaboratorsWidget
26-
# id: dashboardCollaborators
27-
# type: object
28-
# -
29-
# module: ./widgets/MetricsWidget
30-
# id: dashboardMetrics
31-
# type: object
32-
# -
33-
# module: ./widgets/NarrativesWidget
34-
# id: dashboardNarratives
35-
# type: object
36-
# -
37-
# module: ./widgets/PublicNarrativesWidget
38-
# id: dashboardPublicNarratives
39-
# type: object
40-
# -
41-
# module: ./widgets/NarratorialsWidget
42-
# id: dashboardNarratorials
43-
# type: object
44-
# -
45-
# module: ./widgets/SharedNarrativesWidget
46-
# id: dashboardSharedNarratives
47-
# type: object
48-
routes:
49-
- path: ["dashboard"]
50-
widget: kb_plugin_dashboard
51-
authorization: true
52-
menu:
53-
- name: dashboard
54-
definition:
55-
path: ["dashboard"]
56-
label: Dashboard
57-
icon: dashboard
16+
widgets:
17+
- module: ./panel
18+
id: kb_plugin_dashboard
19+
type: es6
20+
routes:
21+
- path: ["dashboard"]
22+
widget: kb_plugin_dashboard
23+
authorization: true
24+
menu:
25+
- name: dashboard
26+
definition:
27+
path: ["dashboard"]
28+
label: Dashboard
29+
icon: dashboard

0 commit comments

Comments
 (0)