Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with parcel #56

Merged
merged 2 commits into from
Feb 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
.cache
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"test": "$(npm bin)/mocha && npm run lint",
"test-dev": "$(npm bin)/mocha --compilers js:babel-register --watch",
"test-brk": "$(npm bin)/mocha --debug-brk",
"compile": "rm -rf dist && mkdir dist && babel src --out-file dist/index.js",
"prepublish": "npm run compile"
"compile": "rm -rf dist && mkdir dist && parcel build src/index.js",
"prepublish": "npm run compile",
"precommit": "lint-staged"
},
"lint-staged": {
"*.js": [
Expand All @@ -40,24 +41,23 @@
},
"homepage": "https://github.com/kadikraman/draftjs-md-converter#readme",
"devDependencies": {
"babel": "^6.5.2",
"babel-cli": "^6.7.5",
"babel-core": "^6.7.6",
"babel-eslint": "^6.1.2",
"babel-plugin-transform-object-rest-spread": "^6.16.0",
"babel-preset-es2015": "^6.6.0",
"babel-register": "^6.18.0",
"browserify": "^13.0.0",
"babel-core": "^6.26.3",
"babel-eslint": "10.0.3",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babel-register": "6.26.0",
"chai": "^3.5.0",
"dirty-chai": "^1.2.2",
"eslint": "^3.9.0",
"eslint-config-airbnb": "^6.2.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-react": "^4.3.0",
"husky": "4.0.7",
"lint-staged": "9.5.0",
"mocha": "7.0.0",
"eslint-scope": "5.0.0",
"husky": "4.2.1",
"lint-staged": "^7.0.4",
"mocha": "^2.4.5",
"parcel-bundler": "1.12.4",
"prettier": "1.19.1"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/draftjsToMd.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,4 @@ function draftjsToMd(raw, extraMarkdownDict) {
.join('\n');
}

module.exports.draftjsToMd = draftjsToMd;
module.exports = draftjsToMd;
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as draftjsToMd } from './draftjsToMd';
export { default as mdToDraftjs } from './mdToDraftjs';
2 changes: 1 addition & 1 deletion src/mdToDraftjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,4 @@ function mdToDraftjs(mdString, extraStyles) {
};
}

module.exports.mdToDraftjs = mdToDraftjs;
module.exports = mdToDraftjs;
2 changes: 1 addition & 1 deletion test/draftjsToMd.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const draftjsToMd = require('../src/draftjsToMd.js').draftjsToMd;
const draftjsToMd = require('../src/draftjsToMd.js');
const chai = require('chai');
const expect = chai.expect; // eslint-disable-line no-unused-vars
const should = chai.should(); // eslint-disable-line no-unused-vars
Expand Down
2 changes: 1 addition & 1 deletion test/mdToDraftjs.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const mdToDraftjs = require('../src/mdToDraftjs.js').mdToDraftjs;
const mdToDraftjs = require('../src/mdToDraftjs.js');
const chai = require('chai');
const expect = chai.expect; // eslint-disable-line no-unused-vars
const should = chai.should(); // eslint-disable-line no-unused-vars
Expand Down
6,201 changes: 4,216 additions & 1,985 deletions yarn.lock

Large diffs are not rendered by default.