|
4 | 4 | "description": "A DraftJS plugin for supporting Markdown syntax shortcuts", |
5 | 5 | "main": "lib/index.js", |
6 | 6 | "scripts": { |
7 | | - "clean": "node_modules/.bin/rimraf lib; node_modules/.bin/rimraf demo/public", |
8 | 7 | "build": "npm run clean && npm run build:js", |
9 | | - "build:js": "BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production node_modules/.bin/babel --out-dir='lib' --ignore='**/__test__/*' src", |
10 | 8 | "build:demo": "NODE_ENV=production webpack --config demo/webpack.config.prod.js && rm -rf demo/public/css && cp -R demo/publicTemplate/* demo/public/", |
| 9 | + "build:js": "BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production node_modules/.bin/babel --out-dir='lib' --ignore='**/__test__/*' src", |
| 10 | + "clean": "node_modules/.bin/rimraf lib; node_modules/.bin/rimraf demo/public", |
| 11 | + "deploy:demo": "COMMIT=$(git rev-parse --short HEAD) && BRANCH=gh-pages && GIT_URL=$(git remote get-url origin) && DIR=.deploy; rm -rf $DIR; (git clone $GIT_URL -b $BRANCH $DIR || (git init $DIR && cd $DIR && git remote add origin $GIT_URL && git checkout -b $BRANCH)) && rm -rf ${DIR}/* && cp -R ${DIR}/../demo/public/* $DIR && cd $DIR && git add -A && git commit -m \"Built artifacts of ${COMMIT} [ci skip]\" && git push origin $BRANCH", |
11 | 12 | "prepublish": "npm run build", |
12 | | - "start:dev": "node_modules/.bin/babel-node ./demo/server.js", |
13 | 13 | "start": "npm run start:dev", |
14 | | - "deploy:demo": "COMMIT=$(git rev-parse --short HEAD) && BRANCH=gh-pages && GIT_URL=$(git remote get-url origin) && DIR=.deploy; rm -rf $DIR; (git clone $GIT_URL -b $BRANCH $DIR || (git init $DIR && cd $DIR && git remote add origin $GIT_URL && git checkout -b $BRANCH)) && rm -rf ${DIR}/* && cp -R ${DIR}/../demo/public/* $DIR && cd $DIR && git add -A && git commit -m \"Built artifacts of ${COMMIT} [ci skip]\" && git push origin $BRANCH", |
15 | | - "test": "mocha --compilers js:babel-core/register --require testHelper.js **/__test__/*.js" |
| 14 | + "start:dev": "node_modules/.bin/babel-node ./demo/server.js", |
| 15 | + "test": "npm run test:coverage", |
| 16 | + "test:coverage": "node_modules/.bin/nyc --require babel-core/register npm run test:mocha", |
| 17 | + "test:mocha": "mocha --opts .mocha.opts $(find src -name '*-test.js')", |
| 18 | + "test:watch": "npm test | npm run watch", |
| 19 | + "watch": "npm-watch" |
| 20 | + }, |
| 21 | + "watch": { |
| 22 | + "test": { |
| 23 | + "patterns": [ |
| 24 | + "src/**/*.js" |
| 25 | + ] |
| 26 | + } |
16 | 27 | }, |
17 | 28 | "repository": { |
18 | 29 | "type": "git", |
|
36 | 47 | "babel-core": "^6.18.2", |
37 | 48 | "babel-eslint": "^7.1.1", |
38 | 49 | "babel-loader": "^6.2.8", |
| 50 | + "babel-plugin-rewire": "^1.0.0", |
39 | 51 | "babel-polyfill": "^6.16.0", |
40 | 52 | "babel-preset-es2015": "^6.18.0", |
41 | 53 | "babel-preset-react": "^6.16.0", |
42 | 54 | "babel-preset-react-hmre": "^1.1.1", |
43 | 55 | "babel-preset-stage-0": "^6.16.0", |
44 | 56 | "chai": "^3.5.0", |
45 | 57 | "chai-enzyme": "^0.6.1", |
| 58 | + "cheerio": "^0.22.0", |
| 59 | + "coveralls": "^2.11.15", |
46 | 60 | "css-loader": "^0.26.0", |
47 | 61 | "css-modules-require-hook": "^4.0.5", |
48 | 62 | "dirty-chai": "^1.2.2", |
|
62 | 76 | "history": "^2.0.0", |
63 | 77 | "jsdom": "^9.8.3", |
64 | 78 | "mocha": "^3.2.0", |
| 79 | + "mocha-junit-reporter": "^1.12.1", |
| 80 | + "mocha-multi-reporters": "^1.1.1", |
| 81 | + "npm-watch": "^0.1.6", |
| 82 | + "nyc": "^10.0.0", |
65 | 83 | "postcss-loader": "^1.1.1", |
66 | 84 | "prismjs": "^1.6.0", |
67 | 85 | "react-addons-pure-render-mixin": "^15.4.1", |
68 | 86 | "react-addons-test-utils": "^15.4.1", |
69 | 87 | "react-github-fork-ribbon": "^0.4.4", |
70 | 88 | "rimraf": "^2.5.4", |
| 89 | + "sinon": "^1.17.6", |
| 90 | + "sinon-chai": "^2.8.0", |
71 | 91 | "static-site-generator-webpack-plugin": "^3.1.0", |
72 | 92 | "style-loader": "^0.13.1", |
73 | 93 | "url-loader": "^0.5.7", |
|
0 commit comments