fix(core): update

This commit is contained in:
Philipp Kunz 2018-09-23 00:21:31 +02:00
parent 540d617206
commit a372e507f4
6 changed files with 25 additions and 12 deletions

View File

@ -1,8 +1,6 @@
{
"npmci": {
"npmGlobalTools": [
"@gitzone/npmts",
"ts-node"
]
"npmGlobalTools": [],
"npmAccessLevel": "public"
}
}

12
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "smartmarkdown",
"name": "@pushrocks/smartmarkdown",
"version": "1.0.2",
"lockfileVersion": 1,
"requires": true,
@ -210,6 +210,11 @@
"@types/node": "*"
}
},
"@types/marked": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/@types/marked/-/marked-0.4.1.tgz",
"integrity": "sha512-ZqEGxppVG1x9QK/hkHxzmf6m4xcnk9CaHjNCqwvUeN3pMdCcQkPxmvrbLZ5GbP7K25TgiT1nKIGnz0U3M+G05Q=="
},
"@types/node": {
"version": "10.10.3",
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.10.3.tgz",
@ -566,6 +571,11 @@
"integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==",
"dev": true
},
"marked": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/marked/-/marked-0.5.0.tgz",
"integrity": "sha512-UhjmkCWKu1SS/BIePL2a59BMJ7V42EYtTfksodPRXzPEGEph3Inp5dylseqt+KbU9Jglsx8xcMKmlumfJMBXAA=="
},
"mime-db": {
"version": "1.36.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz",

View File

@ -1,6 +1,7 @@
{
"name": "@pushrocks/smartmarkdown",
"version": "1.0.2",
"private": true,
"description": "do more with markdown files",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
@ -18,6 +19,8 @@
"@pushrocks/tapbundle": "^3.0.7",
"@types/node": "^10.10.3"
},
"dependencies": {},
"private": true
}
"dependencies": {
"@types/marked": "^0.4.1",
"marked": "^0.5.0"
}
}

View File

@ -2,7 +2,8 @@ import { expect, tap } from '@pushrocks/tapbundle';
import * as smartmarkdown from '../ts/index';
tap.test('first test', async () => {
console.log(smartmarkdown.standardExport);
const mdString = smartmarkdown.markdownToHtml('# Hi!');
expect(mdString).to.equal('<h1 id="hi-">Hi!</h1>\n');
});
tap.start();

View File

@ -1,3 +1,3 @@
import * as plugins from './smartmarkdown.plugins';
export let standardExport = 'Hi there! :) This is an exported string';
export const markdownToHtml = (mdString: string): string => plugins.marked(mdString);

View File

@ -1,2 +1,3 @@
const removeme = {};
export { removeme };
import marked = require('marked');
export { marked };