{
  "name": "django-markdownx",
  "description": "Django Markdownx frontend (JavaScript).",
  "version": "2.0.0",
  "author": "Adi, Pouria Hadjibagheri",
  "license": "2-clause BSD",
  "engines": {
    "node": ">=0.10",
    "npm": ">=1.3"
  },

  "devDependencies": {
    "watch": "~1",
    "typescript": "~2.2",
    "uglify-js": "~2.7",
    "browserify": "~14.1",
    "clean-css-cli": "~4"
  },

  "config": {
    "tsfolder": "markdownx/.static/markdownx/js",
    "jsoutput": "markdownx/static/markdownx/js",

    "cssfolder": "markdownx/.static/markdownx/admin/css",
    "cssoutput": "markdownx/static/markdownx/admin/css"
  },

  "scripts": {
    "build:ts": "tsc -p $npm_package_config_tsfolder/tsconfig.json",
    "build:js": "npm run build:ts && browserify $npm_package_config_tsfolder/markdownx.js -o $npm_package_config_jsoutput/markdownx.js && uglifyjs $npm_package_config_jsoutput/markdownx.js -o $npm_package_config_jsoutput/markdownx.js --beautify --stats",
    "build:css": "cleancss $npm_package_config_cssfolder/markdownx.css -o $npm_package_config_cssoutput/markdownx.css --format beautify --debug",
    "build": "npm run build:js && npm run build:css",

    "dist:js": "npm run build:ts && browserify $npm_package_config_tsfolder/markdownx.js -o $npm_package_config_jsoutput/markdownx.js && uglifyjs $npm_package_config_jsoutput/markdownx.js -o $npm_package_config_jsoutput/markdownx.min.js --screw-ie8 --mangle --stats",
    "dist:css": "npm run build:css && cleancss $npm_package_config_cssfolder/markdownx.css -o $npm_package_config_cssoutput/markdownx.min.css --compatibility ie9 --debug",
    "dist": "npm run dist:js && npm run dist:css",

    "watch:js": "watch 'npm run build:js' $npm_package_config_tsfolder -d -u",
    "watch:css": "watch 'npm run build:css' $npm_package_config_cssfolder -d -u"
  }
}
