diff --git a/.nvmrc b/.nvmrc
index 38637d399..48082f72f 100644
--- a/.nvmrc
+++ b/.nvmrc
@@ -1 +1 @@
-8.17.0
\ No newline at end of file
+12
diff --git a/.travis.yml b/.travis.yml
index 2d73e1c29..ef6ab7bce 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,7 @@
language: node_js
sudo: false
node_js:
- - '6'
+ - '12'
cache:
yarn: true
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000..9aeac3e42
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,22 @@
+The MIT License
+
+Copyright (c) 2021 Google LLC. http://angularjs.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
diff --git a/README.md b/README.md
index 76fb86d81..e072577eb 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+# AngularJS.org Home Page
+
The angularjs.org site is not designed to be used by third parties.
It is only kept here as part of our own deployment processes.
@@ -7,13 +9,14 @@ If you want to have a go at hosting it yourself you can try running
This will build the website in the `build` folder, which you can then serve with something like:
- yarn run http-server build/
+ yarn start
and browse to http://localhost:8080
-**Note: we do not be provide support for doing this.**
+**Note: we do not provide support for doing this.**
The site relies upon accessing numerous additional resources from all over the web.
Hint: to access the AngularJS docs application rather than this site, which is only the homepage,
- clone the main project and build the docs yourself. See https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md
+clone the main project and build the docs yourself.
+See https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 000000000..47aebc705
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,20 @@
+# Security Policy
+
+## Supported Versions
+
+| Version | Supported | Status | Comments |
+| ----------- | ------------------ | --------------------- | ------------------------------------ |
+| 1.8.x | :white_check_mark: | Long Term Support | See [Long Term Support policy][0] |
+| 1.3.x-1.7.x | :x: | | |
+| 1.2.x | :warning: | Security patches only | Last version to provide IE 8 support |
+| <1.2.0 | :x: | | |
+
+## Reporting a Vulnerability
+
+Email us at [security@angularjs.org](mailto:security@angularjs.org) to report any potential security issues in AngularJS.
+
+Please [use the latest AngularJS possible](https://docs.angularjs.org/guide/security#use-the-latest-angularjs-possible)
+and keep in mind the guidance around AngularJS'
+[expression language](https://docs.angularjs.org/guide/security#angularjs-templates-and-expressions).
+
+[0]: https://docs.angularjs.org/misc/version-support-status#long-term-support
diff --git a/package.json b/package.json
index c2d88ee0e..dba8c78a8 100644
--- a/package.json
+++ b/package.json
@@ -1,14 +1,29 @@
{
"name": "angularjs.org",
"version": "0.0.0",
+ "private": true,
+ "license": "MIT",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/angular/angularjs.org"
+ },
"scripts": {
- "build": "yarn && gulp && node scripts/build"
+ "build": "yarn && gulp && node scripts/build",
+ "build:dev": "gulp && node scripts/build copy",
+ "start": "http-server build/"
},
"devDependencies": {
- "eslint": "^4.18.2",
+ "eslint": "^7.27.0",
"gulp": "^3.9.1",
- "gulp-sass": "^3.0.0",
- "http-server": "*",
- "protractor": "^5.4.2"
+ "gulp-sass": "^4.1.0",
+ "http-server": "^0.12.3",
+ "protractor": "^7.0.0"
+ },
+ "resolutions": {
+ "//1": "`natives@1.1.0` does not work with Node.js 10.x on Windows 10",
+ "//2": "(E.g. see https://github.com/gulpjs/gulp/issues/2162 and https://github.com/nodejs/node/issues/25132.)",
+ "natives": "1.1.6",
+ "//3": "`graceful-fs` needs to be pinned to support gulp 3, on Node v12+",
+ "graceful-fs": "^4.2.6"
}
}
diff --git a/src/index.html b/src/index.html
index a8a73df2e..fc52d5350 100644
--- a/src/index.html
+++ b/src/index.html
@@ -23,7 +23,7 @@