Skip to content

Commit bb17dcd

Browse files
committed
Fixing several bugs that were preventing the installation from NPM from working
1 parent c454640 commit bb17dcd

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

.npmignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@ src
22
webpack
33
.npmignore
44
.idea
5-
demo
5+
demo
6+
.vscode
7+
assets
8+
npm-debug.*
9+
.babelrc
10+
.debug.log
11+
webpack.*

gulpfile.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,22 @@ const rename = require('gulp-rename');
33
const babel = require("gulp-babel");
44
const webpack = require('gulp-webpack');
55
const webpackConfig = require('./webpack.config.demo.prod.js');
6+
const sass = require('gulp-sass');
7+
8+
gulp.task('build_styles', function () {
9+
return gulp.src('./src/styles/*.scss')
10+
.pipe(sass().on('error', sass.logError))
11+
.pipe(gulp.dest('./lib/styles'));
12+
});
613

714
// library
815
gulp.task('copy_styles', function () {
916
return gulp.src('./src/styles/**/*')
1017
.pipe(gulp.dest('./lib/styles'));
1118
});
1219

13-
gulp.task('build', ['copy_styles'], function () {
14-
return gulp.src("./src/*.js")
20+
gulp.task('build', ['copy_styles', 'build_styles'], function () {
21+
return gulp.src("./src/**/*.js")
1522
.pipe(babel())
1623
.pipe(gulp.dest("./lib"));
1724
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "react-mde",
3-
"version": "0.9.3",
3+
"version": "0.9.4",
44
"description": "A react markdown-editor like Stackoverflow and Github",
5-
"main": "index.js",
5+
"main": "./lib/index.js",
66
"scripts": {
77
"test": "mocha --timeout 15000 --compilers js:babel-register ./test/*Spec.js",
88
"start": "cross-env NODE_ENV=development babel-node ./demo/server.js",

0 commit comments

Comments
 (0)