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

Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"css","path":"css","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"example","path":"example","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":"src","path":"src","contentType":"directory"},{"name":"test","path":"test","contentType":"directory"},{"name":".bowerrc","path":".bowerrc","contentType":"file"},{"name":".gitignore","path":".gitignore","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.md","path":"README.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":"changelog.tmp.md","path":"changelog.tmp.md","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":"gen_docs.sh","path":"gen_docs.sh","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-e2e.conf.js","path":"karma-e2e.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":"package.json","path":"package.json","contentType":"file"},{"name":"release-commit.sh","path":"release-commit.sh","contentType":"file"},{"name":"start-iteration.sh","path":"start-iteration.sh","contentType":"file"},{"name":"travis_build.sh","path":"travis_build.sh","contentType":"file"},{"name":"travis_print_logs.sh","path":"travis_print_logs.sh","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"},{"name":"watchr-docs.rb","path":"watchr-docs.rb","contentType":"file"}],"totalCount":42}},"fileTreeProcessingTime":3.630102,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":13622996,"defaultBranch":"master","name":"angular.js","ownerLogin":"DanS","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2013-10-16T15:26:59.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/22377?v=4","public":true,"private":false,"isOrgOwned":false},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1382018291.0","canEdit":false,"refType":"branch","currentOid":"dba566a96d3c660e12249dcb6445dad19854da97"},"path":"Gruntfile.js","currentUser":null,"blob":{"rawLines":["var files = require('./angularFiles').files;","var util = require('./lib/grunt/utils.js');","var path = require('path');","","module.exports = function(grunt) {"," //grunt plugins"," grunt.loadNpmTasks('grunt-contrib-clean');"," grunt.loadNpmTasks('grunt-contrib-copy');"," grunt.loadNpmTasks('grunt-contrib-connect');"," grunt.loadNpmTasks('grunt-contrib-compress');"," grunt.loadNpmTasks('grunt-jasmine-node');"," grunt.loadNpmTasks('grunt-ddescribe-iit');"," grunt.loadNpmTasks('grunt-merge-conflict');"," grunt.loadNpmTasks('grunt-parallel');"," grunt.loadNpmTasks('grunt-shell');"," grunt.loadTasks('lib/grunt');",""," var NG_VERSION = util.getVersion();"," var dist = 'angular-'+ NG_VERSION.full;","",""," //global beforeEach"," util.init();","",""," //config"," grunt.initConfig({"," NG_VERSION: NG_VERSION,",""," parallel: {"," travis: {"," tasks: ["," util.parallelTask(['test:unit', 'test:docgen', 'test:promises-aplus', 'tests:docs'], {stream: true}),"," util.parallelTask(['test:e2e'])"," ]"," }"," },",""," connect: {"," devserver: {"," options: {"," port: 8000,"," hostname: '0.0.0.0',"," base: '.',"," keepalive: true,"," middleware: function(connect, options){"," return ["," //uncomment to enable CSP"," // util.csp(),"," util.rewrite(),"," connect.favicon('images/favicon.ico'),"," connect.static(options.base),"," connect.directory(options.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){"," 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();"," },"," connect.favicon('images/favicon.ico'),"," connect.static(options.base)"," ];"," }"," }"," }"," },","",""," tests: {"," jqlite: 'karma-jqlite.conf.js',"," jquery: 'karma-jquery.conf.js',"," docs: 'karma-docs.conf.js',"," modules: 'karma-modules.conf.js',"," //NOTE run grunt test:e2e instead and it will start a webserver for you"," end2end: 'karma-e2e.conf.js'"," },","",""," autotest: {"," jqlite: 'karma-jqlite.conf.js',"," jquery: 'karma-jquery.conf.js',"," modules: 'karma-modules.conf.js',"," docs: 'karma-docs.conf.js'"," },","",""," clean: {"," build: ['build'],"," tmp: ['tmp']"," },","",""," build: {"," scenario: {"," dest: 'build/angular-scenario.js',"," src: ["," 'bower_components/jquery/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'],"," minify: true"," }"," },"," loader: {"," dest: 'build/angular-loader.js',"," src: util.wrap(['src/loader.js'], 'loader')"," },"," touch: {"," dest: 'build/angular-touch.js',"," src: util.wrap(["," 'src/ngTouch/touch.js',"," 'src/ngTouch/swipe.js',"," 'src/ngTouch/directive/ngClick.js',"," 'src/ngTouch/directive/ngSwipe.js'"," ], 'module')"," },"," mocks: {"," dest: 'build/angular-mocks.js',"," src: ['src/ngMock/angular-mocks.js'],"," strict: false"," },"," sanitize: {"," dest: 'build/angular-sanitize.js',"," src: util.wrap(["," 'src/ngSanitize/sanitize.js',"," 'src/ngSanitize/filter/linky.js'"," ], 'module')"," },"," resource: {"," dest: 'build/angular-resource.js',"," src: util.wrap(['src/ngResource/resource.js'], 'module')"," },"," animate: {"," dest: 'build/angular-animate.js',"," src: util.wrap(['src/ngAnimate/animate.js'], 'module')"," },"," route: {"," dest: 'build/angular-route.js',"," src: util.wrap(["," 'src/ngRoute/routeUtils.js',"," 'src/ngRoute/route.js',"," 'src/ngRoute/routeParams.js',"," 'src/ngRoute/directive/ngView.js'"," ], 'module')"," },"," cookies: {"," dest: 'build/angular-cookies.js',"," src: util.wrap(['src/ngCookies/cookies.js'], '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',"," touch: 'build/angular-touch.js',"," resource: 'build/angular-resource.js',"," route: 'build/angular-route.js',"," sanitize: 'build/angular-sanitize.js'"," },","",""," docs: {"," process: ['build/docs/*.html', 'build/docs/.htaccess']"," },",""," \"jasmine_node\": {"," projectRoot: 'docs/spec'"," },",""," \"ddescribe-iit\": {"," files: ["," 'test/**/*.js',"," '!test/ngScenario/DescribeSpec.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:true,"," 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)}"," }"," });","",""," //alias tasks"," grunt.registerTask('test', 'Run unit, docs and e2e tests with Karma', ['package','test:unit','test:promises-aplus', 'tests:docs', 'test:e2e']);"," 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:e2e', 'Run the end to end tests with Karma and keep a test server running in the background', ['connect:testserver', 'tests:end2end']);"," grunt.registerTask('test:docgen', ['jasmine_node']);"," 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('package-without-bower', ['clean', 'buildall', 'minall', 'collect-errors', 'docs', 'copy', 'write', 'compress']);"," grunt.registerTask('ci-checks', ['ddescribe-iit', 'merge-conflict']);"," grunt.registerTask('default', ['package']);","};"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/DanS/angular.js/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"Gruntfile.js","displayUrl":"https://github.com/DanS/angular.js/blob/master/Gruntfile.js?raw=true","headerInfo":{"blobSize":"7.85 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":"c4d2bb2","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FDanS%2Fangular.js%2Fblob%2Fmaster%2FGruntfile.js","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"268","truncatedSloc":"235"},"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":"/DanS/angular.js/blob/master/Gruntfile.js","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/DanS/angular.js/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/DanS/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":1175,"ident_end":1185,"extent_start":1175,"extent_end":1504,"fully_qualified_name":"middleware","ident_utf16":{"start":{"line_number":45,"utf16_col":10},"end":{"line_number":45,"utf16_col":20}},"extent_utf16":{"start":{"line_number":45,"utf16_col":10},"end":{"line_number":54,"utf16_col":11}}},{"name":"middleware","kind":"function","ident_start":1841,"ident_end":1851,"extent_start":1841,"extent_end":2311,"fully_qualified_name":"middleware","ident_utf16":{"start":{"line_number":64,"utf16_col":10},"end":{"line_number":64,"utf16_col":20}},"extent_utf16":{"start":{"line_number":64,"utf16_col":10},"end":{"line_number":77,"utf16_col":11}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/DanS/angular.js/branches":{"post":"V1QZx_kkReeUagoHXsFJNoHgVsooda9Er4sJNyEUpAMqbKqS6bPq17SeWMypvItyxbDO16VSapQf2SSxz33_Kg"},"/repos/preferences":{"post":"09WPaCATy1FIBCO6Bprg7Nwsf0UCqNxvvM2A1u0aVyxYsJ1rpWbWSIBCksVJzs7yOCnuQF_lFttLyc7-amC3zg"}}},"title":"angular.js/Gruntfile.js at master · DanS/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