Skip to content

Commit

Permalink
Convert rocketchat-markdown to main module structure (#12755)
Browse files Browse the repository at this point in the history
* Convert rocketchat-markdown to main module structure

* fix wrong path in tests
  • Loading branch information
MarcosSpessatto authored and rodrigok committed Dec 3, 2018
1 parent 1e7e9b1 commit a9213a3
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/rocketchat-markdown/client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '../lib/markdown';
File renamed without changes.
5 changes: 2 additions & 3 deletions packages/rocketchat-markdown/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Package.onUse(function(api) {
'templating',
'rocketchat:lib',
]);

api.addFiles('settings.js', 'server');
api.mainModule('markdown.js');
api.mainModule('client/index.js', 'client');
api.mainModule('server/index.js', 'server');
});
2 changes: 2 additions & 0 deletions packages/rocketchat-markdown/server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import './settings';
import '../lib/markdown';
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/rocketchat-markdown/tests/client.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import 'babel-polyfill';
import assert from 'assert';
import './client.mocks.js';
import { original } from '../parser/original/original';
import { original } from '../lib/parser/original/original';
// import {marked} from '../parser/marked/marked';

const wrapper = (text, tag) => `<span class="copyonly">${ tag }</span>${ text }<span class="copyonly">${ tag }</span>`;
Expand Down

0 comments on commit a9213a3

Please sign in to comment.