Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added TV specific files to build system
  • Loading branch information
jseanxu committed Aug 14, 2015
1 parent f60d3e9 commit b20b465
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gruntfile.js
Expand Up @@ -52,8 +52,8 @@

// Tasks that drop things in bin/ (should have "_postProcess" as the last task)
grunt.registerTask("storePackage", ["configureStore", "default"]);
grunt.registerTask("quick", ["clean", "ts:src", "less", "concat", "onefile:base", "requirejs:ui", "requirejs:intrinsics", "copy:fonts", "_postProcess"]);
grunt.registerTask("default", ["_preBuild", "onefile:base", "requirejs:ui", "requirejs:intrinsics", "_copyFinal", "replace", "_postProcess"]);
grunt.registerTask("quick", ["clean", "ts:src", "less", "concat", "onefile:base", "requirejs:ui", "requirejs:intrinsics", "requirejs:tv", "copy:fonts", "_postProcess"]);
grunt.registerTask("default", ["_preBuild", "onefile:base", "requirejs:ui", "requirejs:intrinsics", "requirejs:tv", "_copyFinal", "replace", "_postProcess"]);

grunt.registerTask("release", ["lint", "default", "uglify", "cssmin", "_postProcess"]);
grunt.registerTask("minify", ["uglify", "_postProcess"]);
Expand Down
8 changes: 8 additions & 0 deletions src/js/tv.js
@@ -0,0 +1,8 @@
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information.
define([
'WinJS/Controls/ScrollViewer',

'require-style!less/styles-tv',
'require-style!less/colors-tv'
], function (ScrollViewer) {
});
4 changes: 4 additions & 0 deletions src/less/colors-tv.less
@@ -0,0 +1,4 @@
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information.
.Colors(@theme) {

}
2 changes: 2 additions & 0 deletions src/less/styles-tv.less
@@ -0,0 +1,2 @@
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information.

10 changes: 10 additions & 0 deletions tasks/options/requirejs.js
Expand Up @@ -185,6 +185,16 @@
end: footerWithoutExport("intrinsics")
}
}
}),
tv: defaults('tv', {
options: {
cssOutputSuffix: "-tv",
exclude: ['./base', './ui'],
wrap: {
start: header("tv", ['./base', './ui']),
end: footerWithoutExport("tv")
}
}
})
};

Expand Down

0 comments on commit b20b465

Please sign in to comment.