Skip to content

Commit 410c949

Browse files
author
Christy Henriksson
authored
Merge pull request #6566 from NuGet/dev
2 parents 3364ff6 + abd2772 commit 410c949

254 files changed

Lines changed: 15245 additions & 9566 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ param (
1010
[string]$PackageSuffix,
1111
[string]$Branch,
1212
[string]$CommitSHA,
13-
[string]$BuildBranch = 'cb604c2cd1b2f7f71fb574cdda4c83ddb1464cc7'
13+
[string]$BuildBranch = '80b8f1b4a1cfe57367881e59fca063866dcaaa42'
1414
)
1515

1616
Set-StrictMode -Version 1.0

src/Bootstrap/Gemfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/Bootstrap/Gemfile.lock

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/Bootstrap/Gruntfile.js

Lines changed: 0 additions & 246 deletions
Original file line numberDiff line numberDiff line change
@@ -54,51 +54,6 @@ module.exports = function (grunt) {
5454
docs: 'docs/dist'
5555
},
5656

57-
jshint: {
58-
options: {
59-
jshintrc: 'js/.jshintrc'
60-
},
61-
grunt: {
62-
options: {
63-
jshintrc: 'grunt/.jshintrc'
64-
},
65-
src: ['Gruntfile.js', 'package.js', 'grunt/*.js']
66-
},
67-
core: {
68-
src: 'js/*.js'
69-
},
70-
test: {
71-
options: {
72-
jshintrc: 'js/tests/unit/.jshintrc'
73-
},
74-
src: 'js/tests/unit/*.js'
75-
},
76-
assets: {
77-
src: ['docs/assets/js/src/*.js', 'docs/assets/js/*.js', '!docs/assets/js/*.min.js']
78-
}
79-
},
80-
81-
jscs: {
82-
options: {
83-
config: 'js/.jscsrc'
84-
},
85-
grunt: {
86-
src: '<%= jshint.grunt.src %>'
87-
},
88-
core: {
89-
src: '<%= jshint.core.src %>'
90-
},
91-
test: {
92-
src: '<%= jshint.test.src %>'
93-
},
94-
assets: {
95-
options: {
96-
requireCamelCaseOrUpperCaseIdentifiers: null
97-
},
98-
src: '<%= jshint.assets.src %>'
99-
}
100-
},
101-
10257
concat: {
10358
options: {
10459
banner: '<%= banner %>\n<%= jqueryCheck %>\n<%= jqueryVersionCheck %>',
@@ -145,13 +100,6 @@ module.exports = function (grunt) {
145100
}
146101
},
147102

148-
qunit: {
149-
options: {
150-
inject: 'js/tests/unit/phantom.js'
151-
},
152-
files: 'js/tests/index.html'
153-
},
154-
155103
less: {
156104
compileCore: {
157105
options: {
@@ -204,26 +152,6 @@ module.exports = function (grunt) {
204152
}
205153
},
206154

207-
csslint: {
208-
options: {
209-
csslintrc: 'less/.csslintrc'
210-
},
211-
dist: [
212-
'dist/css/bootstrap.css',
213-
'dist/css/bootstrap-theme.css'
214-
],
215-
examples: [
216-
'docs/examples/**/*.css'
217-
],
218-
docs: {
219-
options: {
220-
ids: false,
221-
'overqualified-elements': false
222-
},
223-
src: 'docs/assets/css/src/docs.css'
224-
}
225-
},
226-
227155
cssmin: {
228156
options: {
229157
// TODO: disable `zeroUnits` optimization once clean-css 3.2 is released
@@ -302,124 +230,6 @@ module.exports = function (grunt) {
302230
}
303231
},
304232

305-
connect: {
306-
server: {
307-
options: {
308-
port: 3000,
309-
base: '.'
310-
}
311-
}
312-
},
313-
314-
jekyll: {
315-
options: {
316-
bundleExec: true,
317-
config: '_config.yml',
318-
incremental: false
319-
},
320-
docs: {},
321-
github: {
322-
options: {
323-
raw: 'github: true'
324-
}
325-
}
326-
},
327-
328-
htmlmin: {
329-
dist: {
330-
options: {
331-
collapseBooleanAttributes: true,
332-
collapseWhitespace: true,
333-
conservativeCollapse: true,
334-
decodeEntities: false,
335-
minifyCSS: {
336-
compatibility: 'ie8',
337-
keepSpecialComments: 0
338-
},
339-
minifyJS: true,
340-
minifyURLs: false,
341-
processConditionalComments: true,
342-
removeAttributeQuotes: true,
343-
removeComments: true,
344-
removeOptionalAttributes: true,
345-
removeOptionalTags: true,
346-
removeRedundantAttributes: true,
347-
removeScriptTypeAttributes: true,
348-
removeStyleLinkTypeAttributes: true,
349-
removeTagWhitespace: false,
350-
sortAttributes: true,
351-
sortClassName: true
352-
},
353-
expand: true,
354-
cwd: '_gh_pages',
355-
dest: '_gh_pages',
356-
src: [
357-
'**/*.html',
358-
'!examples/**/*.html'
359-
]
360-
}
361-
},
362-
363-
pug: {
364-
options: {
365-
pretty: true,
366-
data: getLessVarsData
367-
},
368-
customizerVars: {
369-
src: 'docs/_pug/customizer-variables.pug',
370-
dest: 'docs/_includes/customizer-variables.html'
371-
},
372-
customizerNav: {
373-
src: 'docs/_pug/customizer-nav.pug',
374-
dest: 'docs/_includes/nav/customize.html'
375-
}
376-
},
377-
378-
htmllint: {
379-
options: {
380-
ignore: [
381-
'Attribute "autocomplete" not allowed on element "button" at this point.',
382-
'Attribute "autocomplete" is only allowed when the input type is "color", "date", "datetime", "datetime-local", "email", "hidden", "month", "number", "password", "range", "search", "tel", "text", "time", "url", or "week".',
383-
'Element "img" is missing required attribute "src".'
384-
]
385-
},
386-
src: '_gh_pages/**/*.html'
387-
},
388-
389-
watch: {
390-
src: {
391-
files: '<%= jshint.core.src %>',
392-
tasks: ['jshint:core', 'qunit', 'concat']
393-
},
394-
test: {
395-
files: '<%= jshint.test.src %>',
396-
tasks: ['jshint:test', 'qunit']
397-
},
398-
less: {
399-
files: 'less/**/*.less',
400-
tasks: 'less'
401-
}
402-
},
403-
404-
'saucelabs-qunit': {
405-
all: {
406-
options: {
407-
build: process.env.TRAVIS_JOB_ID,
408-
throttled: 10,
409-
maxRetries: 3,
410-
maxPollRetries: 4,
411-
urls: ['http://127.0.0.1:3000/js/tests/index.html?hidepassed'],
412-
browsers: grunt.file.readYAML('grunt/sauce_browsers.yml')
413-
}
414-
}
415-
},
416-
417-
exec: {
418-
npmUpdate: {
419-
command: 'npm update'
420-
}
421-
},
422-
423233
compress: {
424234
main: {
425235
options: {
@@ -446,42 +256,6 @@ module.exports = function (grunt) {
446256
require('load-grunt-tasks')(grunt, { scope: 'devDependencies' });
447257
require('time-grunt')(grunt);
448258

449-
// Docs HTML validation task
450-
grunt.registerTask('validate-html', ['jekyll:docs', 'htmllint']);
451-
452-
var runSubset = function (subset) {
453-
return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset;
454-
};
455-
var isUndefOrNonZero = function (val) {
456-
return val === undefined || val !== '0';
457-
};
458-
459-
// Test task.
460-
var testSubtasks = [];
461-
// Skip core tests if running a different subset of the test suite
462-
if (runSubset('core') &&
463-
// Skip core tests if this is a Savage build
464-
process.env.TRAVIS_REPO_SLUG !== 'twbs-savage/bootstrap') {
465-
testSubtasks = testSubtasks.concat(['dist-css', 'dist-js', 'csslint:dist', 'test-js', 'docs']);
466-
}
467-
// Skip HTML validation if running a different subset of the test suite
468-
if (runSubset('validate-html') &&
469-
// Skip HTML5 validator on Travis when [skip validator] is in the commit message
470-
isUndefOrNonZero(process.env.TWBS_DO_VALIDATOR)) {
471-
testSubtasks.push('validate-html');
472-
}
473-
// Only run Sauce Labs tests if there's a Sauce access key
474-
if (typeof process.env.SAUCE_ACCESS_KEY !== 'undefined' &&
475-
// Skip Sauce if running a different subset of the test suite
476-
runSubset('sauce-js-unit') &&
477-
// Skip Sauce on Travis when [skip sauce] is in the commit message
478-
isUndefOrNonZero(process.env.TWBS_DO_SAUCE)) {
479-
testSubtasks.push('connect');
480-
testSubtasks.push('saucelabs-qunit');
481-
}
482-
grunt.registerTask('test', testSubtasks);
483-
grunt.registerTask('test-js', ['jshint:core', 'jshint:test', 'jshint:grunt', 'jscs:core', 'jscs:test', 'jscs:grunt', 'qunit']);
484-
485259
// JS distribution task.
486260
grunt.registerTask('dist-js', ['concat', 'uglify:core', 'commonjs']);
487261

@@ -495,29 +269,9 @@ module.exports = function (grunt) {
495269
// Default task.
496270
grunt.registerTask('default', ['dist']);
497271

498-
grunt.registerTask('build-glyphicons-data', function () { generateGlyphiconsData.call(this, grunt); });
499-
500-
// task for building customizer
501-
grunt.registerTask('build-customizer', ['build-customizer-html', 'build-raw-files']);
502-
grunt.registerTask('build-customizer-html', 'pug');
503-
grunt.registerTask('build-raw-files', 'Add scripts/less files to customizer.', function () {
504-
var banner = grunt.template.process('<%= banner %>');
505-
generateRawFiles(grunt, banner);
506-
});
507-
508272
grunt.registerTask('commonjs', 'Generate CommonJS entrypoint module in dist dir.', function () {
509273
var srcFiles = grunt.config.get('concat.bootstrap.src');
510274
var destFilepath = 'dist/js/npm.js';
511275
generateCommonJSModule(grunt, srcFiles, destFilepath);
512276
});
513-
514-
// Docs task.
515-
grunt.registerTask('docs-css', ['autoprefixer:docs', 'autoprefixer:examples', 'csscomb:docs', 'csscomb:examples', 'cssmin:docs']);
516-
grunt.registerTask('lint-docs-css', ['csslint:docs', 'csslint:examples']);
517-
grunt.registerTask('docs-js', ['uglify:docsJs', 'uglify:customize']);
518-
grunt.registerTask('lint-docs-js', ['jshint:assets', 'jscs:assets']);
519-
grunt.registerTask('docs', ['docs-css', 'lint-docs-css', 'docs-js', 'lint-docs-js', 'clean:docs', 'copy:docs', 'build-glyphicons-data', 'build-customizer']);
520-
grunt.registerTask('docs-github', ['jekyll:github', 'htmlmin']);
521-
522-
grunt.registerTask('prep-release', ['dist', 'docs', 'docs-github', 'compress']);
523277
};

src/Bootstrap/dist/css/bootstrap-theme.css

Lines changed: 0 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Bootstrap/less/theme/all.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
@import "page-forgot-password.less";
1717
@import "page-home.less";
1818
@import "page-list-packages.less";
19-
@import "page-manage-curated-feed.less";
2019
@import "page-manage-organizations.less";
2120
@import "page-manage-owners.less";
2221
@import "page-manage-packages.less";

0 commit comments

Comments
 (0)