8000 angular.js/Gruntfile.js at master · nb/angular.js · GitHub
[go: up one dir, main page]

Skip to content
< 72D1 script type="application/json" data-target="react-app.embeddedData">{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"benchmarks","path":"benchmarks","contentType":"directory"},{"name":"css","path":"css","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"i18n","path":"i18n","contentType":"directory"},{"name":"images","path":"images","contentType":"directory"},{"name":"lib","path":"lib","contentType":"directory"},{"name":"logs","path":"logs","contentType":"directory"},{"name":"scripts","path":"scripts","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".jscs.json","path":".jscs.json","contentType":"file"},{"name":".jscs.json.todo","path":".jscs.json.todo","contentType":"file"},{"name":".jshintignore","path":".jshintignore","contentType":"file"},{"name":".jshintrc","path":".jshintrc","contentType":"file"},{"name":".jshintrc-base","path":".jshintrc-base","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"CHANGELOG.md","path":"CHANGELOG.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"Gruntfile.js","path":"Gruntfile.js","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.closure.md","path":"README.closure.md","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"TRIAGING.md","path":"TRIAGING.md","contentType":"file"},{"name":"angularFiles.js","path":"angularFiles.js","contentType":"file"},{"name":"bower.json","path":"bower.json","contentType":"file"},{"name":"changelog.js","path":"changelog.js","contentType":"file"},{"name":"changelog.spec.js","path":"changelog.spec.js","contentType":"file"},{"name":"check-size.sh","path":"check-size.sh","contentType":"file"},{"name":"compare-master-to-stable.js","path":"compare-master-to-stable.js","contentType":"file"},{"name":"gdocs.js","path":"gdocs.js","contentType":"file"},{"name":"init-repo.sh","path":"init-repo.sh","contentType":"file"},{"name":"jenkins_build.sh","path":"jenkins_build.sh","contentType":"file"},{"name":"karma-docs.conf.js","path":"karma-docs.conf.js","contentType":"file"},{"name":"karma-jqlite.conf.js","path":"karma-jqlite.conf.js","contentType":"file"},{"name":"karma-jquery.conf.js","path":"karma-jquery.conf.js","contentType":"file"},{"name":"karma-modules.conf.js","path":"karma-modules.conf.js","contentType":"file"},{"name":"karma-shared.conf.js","path":"karma-shared.conf.js","contentType":"file"},{"name":"npm-shrinkwrap.json","path":"npm-shrinkwrap.json","contentType":"file"},{"name":"package.json","path":"package.json","contentType":"file"},{"name":"protractor-conf.js","path":"protractor-conf.js","contentType":"file"},{"name":"protractor-jenkins-conf.js","path":"protractor-jenkins-conf.js","contentType":"file"},{"name":"protractor-shared-conf.js","path":"protractor-shared-conf.js","contentType":"file"},{"name":"protractor-travis-conf.js","path":"protractor-travis-conf.js","contentType":"file"},{"name":"validate-commit-msg.js","path":"validate-commit-msg.js","contentType":"file"},{"name":"validate-commit-msg.spec.js","path":"validate-commit-msg.spec.js","contentType":"file"}],"totalCount":48}},"fileTreeProcessingTime":2.560849,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":29701566,"defaultBranch":"master","name":"angular.js","ownerLogin":"nb","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2015-01-22T21:37:19.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/27954?v=4","public":true,"private":false,"isOrgOwned":false},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1613611718.01634","canEdit":false,"refType":"branch","currentOid":"301e7aae24a955ddb54244ff45ab31bf2c1ff649"},"path":"Gruntfile.js","currentUser":null,"blob":{"rawLines":["'use strict';","","var files = require('./angularFiles').files;","var util = require('./lib/grunt/utils.js');","var versionInfo = require('./lib/versions/version-info');","var path = require('path');","var e2e = require('./test/e2e/tools');","","module.exports = function(grunt) {"," //grunt plugins"," require('load-grunt-tasks')(grunt);",""," grunt.loadTasks('lib/grunt');"," grunt.loadNpmTasks('angular-benchpress');",""," var NG_VERSION = versionInfo.currentVersion;"," NG_VERSION.cdn = versionInfo.cdnVersion;"," var dist = 'angular-'+ NG_VERSION.full;",""," //global beforeEach"," util.init();","",""," //config"," grunt.initConfig({"," NG_VERSION: NG_VERSION,"," bp_build: {"," options: {"," buildPath: 'build/benchmarks',"," benchmarksPath: 'benchmarks'"," }"," },",""," connect: {"," devserver: {"," options: {"," port: 8000,"," hostname: '0.0.0.0',"," base: '.',"," keepalive: true,"," middleware: function(connect, options){"," var base = Array.isArray(options.base) ? options.base[options.base.length - 1] : options.base;"," return ["," util.conditionalCsp(),"," util.rewrite(),"," e2e.middleware(),"," connect.favicon('images/favicon.ico'),"," connect.static(base),"," connect.directory(base)"," ];"," }"," }"," },"," testserver: {"," options: {"," // We use end2end task (which does not start the webserver)"," // and start the webserver as a separate process (in travis_build.sh)"," // to avoid https://github.com/joyent/libuv/issues/826"," port: 8000,"," hostname: '0.0.0.0',"," middleware: function(connect, options){"," var base = Array.isArray(options.base) ? options.base[options.base.length - 1] : options.base;"," return ["," function(req, resp, next) {"," // cache get requests to speed up tests on travis"," if (req.method === 'GET') {"," resp.setHeader('Cache-control', 'public, max-age=3600');"," }",""," next();"," },"," util.conditionalCsp(),"," e2e.middleware(),"," connect.favicon('images/favicon.ico'),"," connect.static(base)"," ];"," }"," }"," }"," },","",""," tests: {"," jqlite: 'karma-jqlite.conf.js',"," jquery: 'karma-jquery.conf.js',"," docs: 'karma-docs.conf.js',"," modules: 'karma-modules.conf.js'"," },","",""," autotest: {"," jqlite: 'karma-jqlite.conf.js',"," jquery: 'karma-jquery.conf.js',"," modules: 'karma-modules.conf.js',"," docs: 'karma-docs.conf.js'"," },","",""," protractor: {"," normal: 'protractor-conf.js',"," travis: 'protractor-travis-conf.js',"," jenkins: 'protractor-jenkins-conf.js'"," },","",""," clean: {"," build: ['build'],"," tmp: ['tmp']"," },",""," jshint: {"," options: {"," jshintrc: true,"," },"," node: {"," files: { src: ['*.js', 'lib/**/*.js'] },"," },"," tests: {"," files: { src: 'test/**/*.js' },"," },"," ng: {"," files: { src: files['angularSrc'] },"," },"," ngAnimate: {"," files: { src: 'src/ngAnimate/**/*.js' },"," },"," ngCookies: {"," files: { src: 'src/ngCookies/**/*.js' },"," },"," ngLocale: {"," files: { src: 'src/ngLocale/**/*.js' },"," },"," ngMessages: {"," files: { src: 'src/ngMessages/**/*.js' },"," },"," ngMock: {"," files: { src: 'src/ngMock/**/*.js' },"," },"," ngResource: {"," files: { src: 'src/ngResource/**/*.js' },"," },"," ngRoute: {"," files: { src: 'src/ngRoute/**/*.js' },"," },"," ngSanitize: {"," files: { src: 'src/ngSanitize/**/*.js' },"," },"," ngScenario: {"," files: { src: 'src/ngScenario/**/*.js' },"," },"," ngTouch: {"," files: { src: 'src/ngTouch/**/*.js' },"," },"," ngAria: {"," files: {src: 'src/ngAria/**/*.js'},"," }"," },",""," jscs: {"," src: ['src/**/*.js', 'test/**/*.js'],"," options: {"," config: \".jscs.json\""," }"," },",""," build: {"," scenario: {"," dest: 'build/angular-scenario.js',"," src: ["," 'bower_components/jquery/dist/jquery.js',"," util.wrap([files['angularSrc'], files['angularScenario']], 'ngScenario/angular')"," ],"," styles: {"," css: ['css/angular.css', 'css/angular-scenario.css']"," }"," },"," angular: {"," dest: 'build/angular.js',"," src: util.wrap([files['angularSrc']], 'angular'),"," styles: {"," css: ['css/angular.css'],"," generateCspCssFile: true,"," minify: true"," }"," },"," loader: {"," dest: 'build/angular-loader.js',"," src: util.wrap(files['angularLoader'], 'loader')"," },"," touch: {"," dest: 'build/angular-touch.js',"," src: util.wrap(files['angularModules']['ngTouch'], 'module')"," },"," mocks: {"," dest: 'build/angular-mocks.js',"," src: util.wrap(files['angularModules']['ngMock'], 'module'),"," strict: false"," },"," sanitize: {"," dest: 'build/angular-sanitize.js',"," src: util.wrap(files['angularModules']['ngSanitize'], 'module')"," },"," resource: {"," dest: 'build/angular-resource.js',"," src: util.wrap(files['angularModules']['ngResource'], 'module')"," },"," messages: {"," dest: 'build/angular-messages.js',"," src: util.wrap(files['angularModules']['ngMessages'], 'module')"," },"," animate: {"," dest: 'build/angular-animate.js',"," src: util.wrap(files['angularModules']['ngAnimate'], 'module')"," },"," route: {"," dest: 'build/angular-route.js',"," src: util.wrap(files['angularModules']['ngRoute'], 'module')"," },"," cookies: {"," dest: 'build/angular-cookies.js',"," src: util.wrap(files['angularModules']['ngCookies'], 'module')"," },"," aria: {"," dest: 'build/angular-aria.js',"," src: util.wrap(files['angularModules']['ngAria'], 'module')"," },"," \"promises-aplus-adapter\": {"," dest:'tmp/promises-aplus-adapter++.js',"," src:['src/ng/q.js','lib/promises-aplus/promises-aplus-test-adapter.js']"," }"," },","",""," min: {"," angular: 'build/angular.js',"," animate: 'build/angular-animate.js',"," cookies: 'build/angular-cookies.js',"," loader: 'build/angular-loader.js',"," messages: 'build/angular-messages.js',"," touch: 'build/angular-touch.js',"," resource: 'build/angular-resource.js',"," route: 'build/angular-route.js',"," sanitize: 'build/angular-sanitize.js',"," aria: 'build/angular-aria.js'"," },","",""," \"ddescribe-iit\": {"," files: ["," 'src/**/*.js',"," 'test/**/*.js',"," '!test/ngScenario/DescribeSpec.js',"," '!src/ng/directive/attrs.js', // legitimate xit here"," '!src/ngScenario/**/*.js'"," ]"," },",""," \"merge-conflict\": {"," files: ["," 'src/**/*',"," 'test/**/*',"," 'docs/**/*',"," 'css/**/*'"," ]"," },",""," copy: {"," i18n: {"," files: ["," { src: 'src/ngLocale/**', dest: 'build/i18n/', expand: true, flatten: true }"," ]"," }"," },","",""," compress: {"," build: {"," options: {archive: 'build/' + dist +'.zip', mode: 'zip'},"," src: ['**'],"," cwd: 'build',"," expand: true,"," dot: true,"," dest: dist + '/'"," }"," },",""," shell: {"," \"promises-aplus-tests\": {"," options: {"," stdout: false,"," stderr: true,"," failOnError: true"," },"," command: path.normalize('./node_modules/.bin/promises-aplus-tests tmp/promises-aplus-adapter++.js')"," }"," },","",""," write: {"," versionTXT: {file: 'build/version.txt', val: NG_VERSION.full},"," versionJSON: {file: 'build/version.json', val: JSON.stringify(NG_VERSION)}"," },",""," bump: {"," options: {"," files: ['package.json'],"," commit: false,"," createTag: false,"," push: false"," }"," }"," });","",""," //alias tasks"," grunt.registerTask('test', 'Run unit, docs and e2e tests with Karma', ['jshint', 'jscs', 'package','test:unit','test:promises-aplus', 'tests:docs', 'test:protractor']);"," grunt.registerTask('test:jqlite', 'Run the unit tests with Karma' , ['tests:jqlite']);"," grunt.registerTask('test:jquery', 'Run the jQuery unit tests with Karma', ['tests:jquery']);"," grunt.registerTask('test:modules', 'Run the Karma module tests with Karma', ['tests:modules']);"," grunt.registerTask('test:docs', 'Run the doc-page tests with Karma', ['package', 'tests:docs']);"," grunt.registerTask('test:unit', 'Run unit, jQuery and Karma module tests with Karma', ['tests:jqlite', 'tests:jquery', 'tests:modules']);"," grunt.registerTask('test:protractor', 'Run the end to end tests with Protractor and keep a test server running in the background', ['webdriver', 'connect:testserver', 'protractor:normal']);"," grunt.registerTask('test:travis-protractor', 'Run the end to end tests with Protractor for Travis CI builds', ['connect:testserver', 'protractor:travis']);"," grunt.registerTask('test:ci-protractor', 'Run the end to end tests with Protractor for Jenkins CI builds', ['webdriver', 'connect:testserver', 'protractor:jenkins']);"," grunt.registerTask('test:e2e', 'Alias for test:protractor', ['test:protractor']);"," grunt.registerTask('test:promises-aplus',['build:promises-aplus-adapter','shell:promises-aplus-tests']);",""," grunt.registerTask('minify', ['bower','clean', 'build', 'minall']);"," grunt.registerTask('webserver', ['connect:devserver']);"," grunt.registerTask('package', ['bower','clean', 'buildall', 'minall', 'collect-errors', 'docs', 'copy', 'write', 'compress']);"," grunt.registerTask('ci-checks', ['ddescribe-iit', 'merge-conflict', 'jshint', 'jscs']);"," grunt.registerTask('default', ['package']);","};"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/nb/angular.js/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"Gruntfile.js","displayUrl":"https://github.com/nb/angular.js/blob/master/Gruntfile.js?raw=true","headerInfo":{"blobSize":"9.64 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"6f72b93","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fnb%2Fangular.js%2Fblob%2Fmaster%2FGruntfile.js","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"333","truncatedSloc":"298"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"JavaScript","languageID":183,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/nb/angular.js/blob/master/Gruntfile.js","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/nb/angular.js/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/nb/angular.js/raw/refs/heads/master/Gruntfile.js","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"middleware","kind":"function","ident_start":920,"ident_end":930,"extent_start":920,"extent_end":1340,"fully_qualified_name":"middleware","ident_utf16":{"start":{"line_number":40,"utf16_col":10},"end":{"line_number":40,"utf16_col":20}},"extent_utf16":{"start":{"line_number":40,"utf16_col":10},"end":{"line_number":50,"utf16_col":11}}},{"name":"middleware","kind":"function","ident_start":1677,"ident_end":1687,"extent_start":1677,"extent_end":2315,"fully_qualified_name":"middleware","ident_utf16":{"start":{"line_number":60,"utf16_col":10},"end":{"line_number":60,"utf16_col":20}},"extent_utf16":{"start":{"line_number":60,"utf16_col":10},"end":{"line_number":76,"utf16_col":11}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/nb/angular.js/branches":{"post":"t7uA72gQlgBzR2tNsKW7O95_fH7XWpkBakYEzkvJni8Rd0m2JlyEcuvKgexskkl8Ew_Kr7WziZsKaIfNGxwlPg"},"/repos/preferences":{"post":"vuW0Bxl2BaFGzEfYnCdQJ8XCWekBwRp1fERZYOtAnSvwsFV9-nHiFCMri8xAA6_wTJpKb6Rg9KavYN7uTSLYSQ"}}},"title":"angular.js/Gruntfile.js at master · nb/angular.js","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0