mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
The JS for GOVUKFrontend components is available individually so you can only include what you need: https://github.com/alphagov/govuk-frontend/blob/v2.13.0/docs/installation/installing-with-npm.md#option-2-import-javascript This uses the JS Modules syntax: *[JS module](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) Our JS is delivered as one file so we need to use a bundler to convert the modules to a single file. This adds a build step to transpile all modules into a single file, which is then added to the files combined into the one that get delivered. Rollup is used as the simplest bundler to use for this purpose. It also introduces the least boilerplate JS. Note: the CommonJS plugin is needed as GOV.UK Frontend components are published as UMD modules. In future, this work should let us work on this story dependencies: https://www.pivotaltracker.com/story/show/165380360
55 lines
1.5 KiB
JSON
55 lines
1.5 KiB
JSON
{
|
|
"name": "notifications-admin",
|
|
"version": "0.0.1",
|
|
"description": "Admin front end for GOV.UK Notify",
|
|
"engines": {
|
|
"node": "10.15.3"
|
|
},
|
|
"scripts": {
|
|
"test": "gulp lint && jest --config tests/javascripts/jest.config.js tests/javascripts",
|
|
"test-watch": "jest --watch --config tests/javascripts/jest.config.js tests/javascripts",
|
|
"build": "gulp",
|
|
"watch": "gulp watch"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/alphagov/notifications-admin.git"
|
|
},
|
|
"author": "Government Digital Service",
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/alphagov/notifications-admin#readme",
|
|
"dependencies": {
|
|
"@babel/core": "7.4.0",
|
|
"@babel/preset-env": "7.4.2",
|
|
"diff-dom": "2.5.1",
|
|
"govuk-elements-sass": "3.1.2",
|
|
"govuk-frontend": "2.13.0",
|
|
"govuk_frontend_toolkit": "8.1.0",
|
|
"gulp": "4.0.0",
|
|
"gulp-add-src": "1.0.0",
|
|
"gulp-babel": "8.0.0",
|
|
"gulp-base64-inline": "1.0.4",
|
|
"gulp-concat": "2.6.1",
|
|
"gulp-include": "2.3.1",
|
|
"gulp-sass": "4.0.2",
|
|
"gulp-uglify": "3.0.2",
|
|
"hogan": "1.0.2",
|
|
"jquery": "3.4.1",
|
|
"query-command-supported": "1.0.0",
|
|
"rollup": "1.23.1",
|
|
"textarea-caret": "3.1.0",
|
|
"timeago": "1.6.5"
|
|
},
|
|
"devDependencies": {
|
|
"gulp-css-url-adjuster": "0.2.3",
|
|
"gulp-jshint": "2.1.0",
|
|
"gulp-prettyerror": "1.2.1",
|
|
"gulp-sass-lint": "1.4.0",
|
|
"jest": "24.7.1",
|
|
"jshint": "2.10.2",
|
|
"jshint-stylish": "2.2.1",
|
|
"rollup-plugin-commonjs": "10.1.0",
|
|
"rollup-plugin-node-resolve": "5.2.0"
|
|
}
|
|
}
|