package.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "name": "angular-seed",
  3. "private": true,
  4. "version": "0.0.0",
  5. "description": "A starter project for AngularJS",
  6. "repository": "https://github.com/angular/angular-seed",
  7. "license": "MIT",
  8. "dependencies": {
  9. "angular": "^1.7.5",
  10. "angular-loader": "^1.7.5",
  11. "angular-route": "^1.7.5",
  12. "html5-boilerplate": "0.0.1"
  13. },
  14. "devDependencies": {
  15. "angular-mocks": "^1.7.5",
  16. "cpx": "^1.5.0",
  17. "http-server": "^0.11.1",
  18. "jasmine-core": "^3.3.0",
  19. "karma": "^3.1.1",
  20. "karma-chrome-launcher": "^2.2.0",
  21. "karma-firefox-launcher": "^1.1.0",
  22. "karma-jasmine": "^1.1.2",
  23. "protractor": "^5.4.1"
  24. },
  25. "scripts": {
  26. "postinstall": "npm run copy-libs",
  27. "update-deps": "npm update",
  28. "postupdate-deps": "npm run copy-libs",
  29. "copy-libs": "cpx \"node_modules/{angular,angular-*,html5-boilerplate/dist}/**/*\" app/lib -C",
  30. "prestart": "npm install",
  31. "start": "http-server -a localhost -p 8000 -c-1 ./app",
  32. "pretest": "npm install",
  33. "test": "karma start karma.conf.js",
  34. "test-single-run": "npm test -- --single-run",
  35. "preupdate-webdriver": "npm install",
  36. "//": "Do not install the Firefox driver to work around https://github.com/angular/webdriver-manager/issues/303.",
  37. "update-webdriver": "webdriver-manager update --gecko false",
  38. "preprotractor": "npm run update-webdriver",
  39. "protractor": "protractor e2e-tests/protractor.conf.js",
  40. "update-index-async": "node --eval \"var fs=require('fs'),indexFile='app/index-async.html',loaderFile='app/lib/angular-loader/angular-loader.min.js',loaderText=fs.readFileSync(loaderFile,'utf-8').split(/sourceMappingURL=angular-loader.min.js.map/).join('sourceMappingURL=lib/angular-loader/angular-loader.min.js.map'),indexText=fs.readFileSync(indexFile,'utf-8').split(/\\/\\/@@NG_LOADER_START@@[\\s\\S]*\\/\\/@@NG_LOADER_END@@/).join('//@@NG_LOADER_START@@\\n'+loaderText+' //@@NG_LOADER_END@@');fs.writeFileSync(indexFile,indexText);\""
  41. }
  42. }