Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / permissions_by_term / js / package.json
index de582292188fcf35cf7297fc465f5486eb6c2866..d56585e4a53cd0121666fe09aaa05507d1e92b3e 100644 (file)
@@ -1,9 +1,27 @@
 {
+  "name": "pbt",
+  "version": "1.0.0",
+  "description": "JavaScript code has been tested with [Jasmine](https://jasmine.github.io/). Install the dependencies by [Yarn](https://yarnpkg.com/lang/en/). Just run `yarn`. To run the tests, switch to the `js` folder and run `yarn test`.",
+  "main": "node-form.js",
   "dependencies": {
-    "jasmine": "^2.8.0"
+    "babel-cli": "^6.26.0",
+    "babel-loader": "^7.1.4",
+    "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
+    "lodash": "^4.17.10",
+    "qunit": "^2.6.1",
+    "sinon": "^5.0.10",
+    "webpack": "^4.12.0",
+    "webpack-cli": "^3.0"
   },
   "scripts": {
-    "test": "jasmine $NODE_DEBUG_OPTION"
+    "test": "npx qunit webpack-dist/bundle-test.js",
+    "babel-build-for-test": "babel src/**/*.js test/*.js -d babel-compiled-test",
+    "cleanup-babel-test": "rm -rf babel-compiled-test/",
+    "build-and-test": "mv src/drupal-behavior-function /tmp && npm run-script webpack-test && mv /tmp/drupal-behavior-function src/ && npm run-script test",
+    "build": "webpack --config webpack.production.js --mode production",
+    "webpack-test": "npx webpack --entry ./src/**/*.js ./test/*.js --output ./webpack-dist/bundle-test.js --mode development",
+    "bat": "npm run-script build-and-test"
   },
-  "license": "GPL-2.0+"
+  "author": "",
+  "license": "ISC"
 }