Previously, Travis pushed the build artitfacts to the preview server. This required us to use JWT to secure the POST request from Travis, to ensure we couldn't receive malicious builds. JWT has been deprecated and we are moving our builds to CircleCI. This commit rewrites the TypeScript part of the preview server that handles converting build artifact into hosted previews of the docs.
50 lines
1.5 KiB
JSON
50 lines
1.5 KiB
JSON
{
|
|
"name": "aio-scripts-js",
|
|
"version": "1.0.0",
|
|
"description": "Performing various tasks on PR build artifacts for angular.io.",
|
|
"repository": "https://github.com/angular/angular.git",
|
|
"author": "Angular",
|
|
"license": "MIT",
|
|
"scripts": {
|
|
"prebuild": "yarn clean-dist",
|
|
"build": "tsc",
|
|
"build-watch": "yarn build --watch",
|
|
"clean-dist": "node --eval \"require('shelljs').rm('-rf', 'dist')\"",
|
|
"dev": "concurrently --kill-others --raw --success first \"yarn build-watch\" \"yarn test-watch\"",
|
|
"lint": "tslint --project tsconfig.json",
|
|
"pre~~test-only": "yarn lint",
|
|
"~~test-only": "node dist/test",
|
|
"pretest": "yarn build",
|
|
"test": "yarn ~~test-only",
|
|
"pretest-watch": "yarn build",
|
|
"test-watch": "nodemon --exec \"yarn ~~test-only\" --watch dist"
|
|
},
|
|
"dependencies": {
|
|
"body-parser": "^1.18.2",
|
|
"delete-empty": "^2.0.0",
|
|
"express": "^4.15.4",
|
|
"jasmine": "^2.8.0",
|
|
"nock": "^9.2.5",
|
|
"node-fetch": "^2.1.2",
|
|
"shelljs": "^0.8.1",
|
|
"tar-stream": "^1.6.0",
|
|
"tslib": "^1.7.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/body-parser": "^1.16.5",
|
|
"@types/express": "^4.0.37",
|
|
"@types/jasmine": "^2.6.0",
|
|
"@types/nock": "^9.1.3",
|
|
"@types/node": "^8.0.30",
|
|
"@types/node-fetch": "^1.6.8",
|
|
"@types/shelljs": "^0.8.0",
|
|
"@types/supertest": "^2.0.3",
|
|
"concurrently": "^3.5.0",
|
|
"nodemon": "^1.12.1",
|
|
"supertest": "^3.0.0",
|
|
"tslint": "^5.7.0",
|
|
"tslint-jasmine-noSkipOrFocus": "^1.0.8",
|
|
"typescript": "^2.5.2"
|
|
}
|
|
}
|