|
2 | 2 | "name": "react-markdown-renderer", |
3 | 3 | "version": "0.1.2", |
4 | 4 | "description": "Simple React component that renders Markdown", |
5 | | - "main": "lib/index.js", |
| 5 | + "main": "dist/index.js", |
6 | 6 | "files": [ |
7 | | - "lib" |
| 7 | + "dist" |
8 | 8 | ], |
9 | | - "config": { |
10 | | - "entry": "src", |
11 | | - "output": "lib" |
12 | | - }, |
13 | 9 | "scripts": { |
14 | | - "build": "babel $npm_package_config_entry --out-dir $npm_package_config_output", |
| 10 | + "start": "webpack-dev-server --content-base pages", |
| 11 | + "clean-build": "rimraf dist", |
| 12 | + "build": "npm run clean-build && babel src --out-dir dist", |
| 13 | + "build-pages": "npm run clean-build && NODE_ENV=production webpack --config ./webpack.production.config.js --progress --profile --colors", |
15 | 14 | "lint": "eslint --ignore-path .gitignore .", |
16 | 15 | "test": "npm run lint", |
17 | | - "prepublish": "npm run build && npm test" |
| 16 | + "prepublish": "npm run build && npm test", |
| 17 | + "prepublish-pages": "npm run build-pages", |
| 18 | + "publish-pages": "node ./tasks/publishPages" |
18 | 19 | }, |
19 | 20 | "repository": { |
20 | 21 | "type": "git", |
|
35 | 36 | "devDependencies": { |
36 | 37 | "babel-cli": "^6.6.5", |
37 | 38 | "babel-core": "^6.7.2", |
| 39 | + "babel-loader": "^6.2.4", |
38 | 40 | "babel-preset-es2015": "^6.6.0", |
39 | 41 | "babel-preset-react": "^6.5.0", |
| 42 | + "copy-webpack-plugin": "^1.1.1", |
| 43 | + "css-loader": "^0.23.1", |
40 | 44 | "eslint": "^2.4.0", |
41 | 45 | "eslint-config-airbnb": "^6.1.0", |
42 | | - "eslint-plugin-react": "^4.2.1" |
| 46 | + "eslint-plugin-react": "^4.2.1", |
| 47 | + "gh-pages": "^0.11.0", |
| 48 | + "html-webpack-plugin": "^2.10.0", |
| 49 | + "react": "^0.14.7", |
| 50 | + "react-dom": "^0.14.7", |
| 51 | + "react-textarea-autosize": "^3.3.0", |
| 52 | + "rimraf": "^2.5.2", |
| 53 | + "stats-webpack-plugin": "^0.3.1", |
| 54 | + "style-loader": "^0.13.0", |
| 55 | + "stylus-loader": "^1.5.1", |
| 56 | + "webpack": "^1.12.14", |
| 57 | + "webpack-dev-server": "^1.14.1" |
43 | 58 | } |
44 | 59 | } |
0 commit comments