Skip to content

Commit cd1095f

Browse files
author
Rose Robertson
committed
Initial commit
0 parents  commit cd1095f

10 files changed

+497
-0
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015"]
3+
}

.eslintrc

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parser" : "babel-eslint",
3+
"env" : {
4+
"browser" : true
5+
},
6+
"rules": {
7+
"comma-dangle": [1, "never"],
8+
"func-names": 0,
9+
"prefer-const": 0,
10+
"indent": [2, 2, {"SwitchCase": 1, "VariableDeclarator": 2}],
11+
"jsx-quotes": [2, "prefer-single"],
12+
"key-spacing": 0,
13+
"no-else-return": 0,
14+
"quotes": [2, "single"],
15+
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
16+
"one-var": 0,
17+
"no-cond-assign": 0,
18+
"default-case": 0,
19+
"no-multiple-empty-lines": [2, {"max": 1}],
20+
"no-multi-spaces": [2, { exceptions: { "ImportDeclaration": true, "VariableDeclarator": true } }]
21+
}
22+
}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib
2+
node_modules

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Markdown draft js
2+
3+
A tool for converting draftjs raw object to markdown, and eventually vice-versa. More useful documentation coming soon.

karma.conf.js

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = function(config) {
2+
config.set({
3+
basePath: '',
4+
frameworks: ['browserify', 'jasmine'],
5+
files: [
6+
{pattern: 'test/**/*.spec.js', watched: true, included: true, served: true},
7+
],
8+
preprocessors: {
9+
'src/**/*.js': ['browserify'],
10+
'test/**/*.js': ['browserify']
11+
},
12+
browserify: {
13+
debug: true,
14+
transform: ['babelify']
15+
},
16+
exclude: [],
17+
reporters: ['progress'],
18+
port: 9876,
19+
colors: true,
20+
logLevel: config.LOG_INFO,
21+
autoWatch: true,
22+
browsers: ['Chrome'],
23+
singleRun: false
24+
});
25+
};

package.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "marked-draft-js",
3+
"description": "Convert draftjs blocks to markdown using the marked library, and vice versa.",
4+
"author": "Rose Robertson",
5+
"version": "0.1.0",
6+
"scripts": {
7+
"build": "babel src --out-dir lib",
8+
"prepublish": "npm run build",
9+
"test": "karma start --single-run",
10+
"lint": "eslint ./src",
11+
"lint:tests": "eslint ./test"
12+
},
13+
"browserify": {
14+
"transform": [
15+
[
16+
"babelify",
17+
{
18+
"presets": [
19+
"es2015"
20+
]
21+
}
22+
]
23+
]
24+
},
25+
"devDependencies": {
26+
"babel-cli": "6.16.0",
27+
"babel-core": "6.17.0",
28+
"babel-eslint": "7.0.0",
29+
"babel-polyfill": "6.16.0",
30+
"babel-preset-es2015": "6.16.0",
31+
"babelify": "7.3.0",
32+
"browserify": "13.1.0",
33+
"eslint": "3.8.0",
34+
"jasmine": "2.5.2",
35+
"karma": "1.3.0",
36+
"karma-browserify": "5.1.0",
37+
"karma-chrome-launcher": "2.0.0",
38+
"karma-jasmine": "1.0.2",
39+
"watchify": "^3.7.0"
40+
},
41+
"dependencies": {
42+
"draft-js": "0.9.1",
43+
"markdown": "0.5.0",
44+
"react": "15.3.2",
45+
"react-dom": "15.3.2"
46+
}
47+
}

0 commit comments

Comments
 (0)