Commit dc077863 authored by Andrea Giammarchi's avatar Andrea Giammarchi
Browse files

NoIssue - package.json dependencies update

parent 8aa1f671
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -2,12 +2,5 @@ node_modules/
screenshots/
smoke/
skin/desktop-options.css
skin/first-run.css
skin/issue-reporter.css
skin/popup.css
skin/web.css
desktop-options.js
first-run.js
issue-reporter.js
popup.js
package-lock.json
+0 −8
Original line number Diff line number Diff line
@@ -2,12 +2,4 @@ node_modules/
screenshots/
smoke/
skin/desktop-options.css
skin/first-run.css
skin/issue-reporter.css
skin/popup.css
skin/web.css
^desktop-options.js
^first-run.js
^issue-reporter.js
^popup.js
^package-lock.json
+26 −60
Original line number Diff line number Diff line
@@ -4,69 +4,32 @@
  "description": "Adblock Plus UI",
  "scripts": {
    "$": "npm-dollar",
    "build": "npm run $ build",
    "bundle": "npm run $ bundle",
    "lint": "npm run $ lint",
    "postinstall": "npm run bundle",
    "prepare": "python2 ensure_dependencies.py",
    "start": "http-server & npm run watch",
    "test": "npm run $ test",
    "watch": "npm run $ watch",
    "csv-export": "node build/csv-exporter/main.js -e",
    "csv-import": "node build/csv-exporter/main.js -i"
    "watch": "npm run $ watch"
  },
  "$": {
    "build": {
      "popup": [
        "$ bundle.popup",
        "cd ../adblockpluschrome",
        "SKIP_DEPENDENCY_UPDATES=true ./build.py devenv -t chrome",
        "cd -"
      ]
    },
    "bundle": {
      "desktop-options": {
        "css": "$ create.css desktop-options",
        "js": "$ create.js ./js/desktop-options.js ./desktop-options.js"
      },
      "first-run": {
        "css": [
          "$ create.css first-run",
          "$ create.css web"
        ],
        "js": "$ create.js ./js/first-run.js ./first-run.js"
      },
      "issue-reporter": {
        "css": "$ create.css issue-reporter",
        "js": "$ create.js ./js/issue-reporter.js ./issue-reporter.js"
      },
      "popup": "$ create.bundle popup",
      "test": [
        [
        "if [ ! -z $1 ]; then",
        " echo \"/* eslint-disable */$(browserify --node ./tests/$1.js)\">./smoke/$1.js;",
        "fi"
      ]
      ]
    },
    "create": {
      "bundle": {
        "css": "$ create.css $1",
        "js": "$ create.js ./js/$1.js ./$1.js"
      },
      "css": "node-sass ./css/$1.scss ./skin/$1.css",
      "js": [
        "!prod eslint ./js/**/*.js",
        "echo \"/* eslint-disable */$(browserify --node $1)\">$2"
        "eslint ./js/**/*.js",
        "echo \"/* eslint-disable */$(browserify --node --no-bundle-external $1)\">$2"
      ],
      "test": {
        "component": {
          "css": "$ create.test.css $1",
          "js": [
            "$ create.test.js $1",
            "$ bundle.test $1"
          ]
        },
        "css": "node-sass ./css/$1.scss ./smoke/css/$1.css",
        "js": [
          "mkdir -p smoke",
@@ -75,8 +38,7 @@
      }
    },
    "lint": {
      "css": "stylelint ./css/*.scss",
      "js": "eslint ./*.js ./js/*.js ./lib/*.js ./ext/*.js ./build/*.js"
      "js": "eslint ./*.js ./lib/*.js ./ext/*.js"
    },
    "test": {
      "io-element": {
@@ -85,7 +47,6 @@
          "$ bundle.test io-element"
        ]
      },
      "io-filter-search": "$ create.test.component io-filter-search",
      "io-highlighter": {
        "css": [
          "$ create.test.css io-highlighter",
@@ -97,19 +58,23 @@
          "$ bundle.test io-highlighter"
        ]
      },
      "io-list-box": "$ create.test.component io-list-box",
      "io-popout": "$ create.test.component io-popout",
      "io-scrollbar": "$ create.test.component io-scrollbar",
      "io-steps": "$ create.test.component io-steps",
      "io-toggle": "$ create.test.component io-toggle",
      "io-big-toggle": "$ create.test.component io-big-toggle"
      "io-steps": {
        "css": "$ create.test.css io-steps",
        "js": [
          "$ create.test.js io-steps",
          "$ bundle.test io-steps"
        ]
      },
    "watch": {
      "build": "watch 'npm run build' ./css ./js",
      "bundle": "watch 'npm run bundle' ./css ./js",
      "test": "watch 'npm run test' ./css ./js"
      "io-toggle": {
        "css": "$ create.test.css io-toggle",
        "js": [
          "$ create.test.js io-toggle",
          "$ bundle.test io-toggle"
        ]
      }
    },
    "watch": "watch 'npm run bundle' ./css ./js"
  },
  "dependencies": {
    "browserify": "^16.2.2",
    "document-register-element": "^1.11.0",
@@ -124,9 +89,10 @@
    "eslint-config-eyeo": "^2.1.0",
    "glob": "^7.1.2",
    "http-server": "^0.11.1",
    "nightmare": "^3.0.1",
    "stylelint": "^9.5.0",
    "stylelint-config-eyeo": "^1.0.2",
    "hyperhtml": "^2.10.5",
    "hyperhtml-element": "^1.8.1",
    "node-sass": "^4.9.0",
    "npm-dollar": "^0.1.0",
    "watch": "^1.0.2"
  }
}