Skip to content
Snippets Groups Projects
This project manages its dependencies using npm. Learn more
package.json 4.70 KiB
{
  "name": "WagtailKitStarter",
  "version": "0.0.0",
  "author": "Torchbox Ltd",
  "repository": {
    "type": "git",
    "url": ""
  },
  "browserslist": [
    "> 3%",
    "ie 11",
    "Firefox ESR",
    "last 2 versions"
  ],
  "sasslintConfig": ".sass-lint.yml",
  "config": {
    "src_js": "src/javascript",
    "src_css": "src/sass",
    "src_img": "src/images",
    "src_font": "src/fonts",
    "dest_js": "../static_compiled/js",
    "dest_css": "../static_compiled/css",
    "dest_img": "../static_compiled/images",
    "dest_font": "../static_compiled/fonts",
    "dist": "../static_compiled"
  },
  "scripts": {
    "//[ Utility ]//": "",
    "serve": "browser-sync start --config browsersync.config.js",
    "reload": "browser-sync reload",
    "reload:css": "npm run reload -- --files='*.css'",
    "create_dirs:dest_js": "mkdir -p $npm_package_config_dest_js",
    "create_dirs:dest_css": "mkdir -p $npm_package_config_dest_css",
    "create_dirs:dest_img": "mkdir -p $npm_package_config_dest_img",
    "create_dirs:dest_font": "mkdir -p $npm_package_config_dest_font",
    "create_dirs": "npm-run-all -p create_dirs:*",
    "clean:dist": "rm -rf $npm_package_config_dist/{js/**,css/**,images/**}",
    "clean": "npm-run-all -p clean:*",
    "git:init": "rm -rf .git && git init && git add . && git commit -m 'Project start'",
    "//[ SASS ]//": "",
    "compile:css": "node-sass -o $npm_package_config_dest_css $npm_package_config_src_css",
    "compile:css:dev": "npm run compile:css -- --output-style expanded --source-map true",
    "compile:css:watch": "npm run compile:css -- --output-style expanded --source-map true --watch",
    "compile:css:prod": "npm run compile:css -- --output-style compressed && npm run autoprefixer",
    "compile:css:debug": "npm run compile:css -- --output-style compressed --watch",
    "autoprefixer": "postcss -u autoprefixer -r $npm_package_config_dest_css/**/*.css",
    "//[ Javascript ]//": "",
    "compile:js": "rollup -c",
    "compile:js:dev": "npm run compile:js -- --environment entry:main.js",
    "compile:js:watch": "npm run compile:js -- --environment entry:main.js --watch",
    "compile:js:prod": "npm run compile:js -- --environment entry:main.js,production",
    "compile:js:debug": "npm run compile:js -- --environment entry:main.js,production --watch",
    "//[ Linting ]//": "",
    "lint:css": "sass-lint $npm_package_config_src_css'/**/**' -v -q || true",
    "lint:js": "eslint $npm_package_config_src_js --ignore-pattern **/vendor/**/*.js || true",
    "lint": "npm-run-all -p lint:js lint:css",
    "//[ Watches ]//": "",
    "watch:font": "onchange $npm_package_config_src_font'/**/**' -- npm-run-all sync:font reload",
    "watch:font:debug": "onchange $npm_package_config_src_font'/**/**' -- npm-run-all sync:font",
    "watch:img": "onchange $npm_package_config_src_img'/**/**' -- npm-run-all sync:img reload",
    "watch:img:debug": "onchange $npm_package_config_src_img'/**/**' -- npm-run-all sync:img",
    "watch:js": "onchange $npm_package_config_dest_js'/**/**' -- npm-run-all -p reload lint:js",
    "watch:css": "onchange $npm_package_config_dest_css -- npm-run-all -p reload lint:css",
    "watch:css:debug": "onchange $npm_package_config_dest_css -- npm-run-all -p autoprefixer",
    "watch": "npm-run-all -p watch:*",
    "//[ Syncs ]//": "",
    "sync:font": "rsync -rtvu --delete $npm_package_config_src_font/ $npm_package_config_dest_font/",
    "sync:img": "rsync -rtvu --delete $npm_package_config_src_img/ $npm_package_config_dest_img/",
    "sync": "npm-run-all -p sync:*",
    "//[ Tasks ]//": "",
    "build": "npm-run-all clean create_dirs sync compile:*:dev",
    "build:prod": "npm-run-all clean create_dirs sync compile:*:prod",
    "deploy": "npm-run-all clean create_dirs build:prod upload",
    "start": "npm-run-all clean create_dirs sync compile:*:dev -p compile:*:watch watch serve --silent",
    "debug": "npm-run-all clean create_dirs sync compile:*:prod -p compile:*:debug watch:*:debug --silent"
  },
  "devDependencies": {
    "autoprefixer": "^8.1.0",
    "babel-eslint": "^7.1.1",
    "babel-plugin-external-helpers": "^6.8.0",
    "babel-preset-env": "^1.7.0",
    "browser-sync": "^2.13.0",
    "eslint": "^3.2.2",
    "node-sass": "^4.1.1",
    "npm-run-all": "^3.1.2",
    "onchange": "^3.2.0",
    "postcss-cli": "^2.5.2",
    "rollup": "^0.38.0",
    "rollup-plugin-babel": "^2.6.1",
    "rollup-plugin-commonjs": "^6.0.1",
    "rollup-plugin-eslint": "^3.0.0",
    "rollup-plugin-filesize": "^1.0.1",
    "rollup-plugin-node-resolve": "^2.0.0",
    "rollup-plugin-sizes": "^0.2.3",
    "rollup-plugin-uglify": "^1.0.1",
    "rollup-watch": "^3.2.2",
    "sass-lint": "^1.12.1"
  },
  "engines": {
    "node": "8.12.0"
  },
  "dependencies": {
    "@fancyapps/fancybox": "^3.2.5"
  }
}