{
+ "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"
}