Skip to content

Commit 51fe447

Browse files
author
Lanny McNie
committed
Updated build process
Signed-off-by: Lanny McNie <[email protected]>
1 parent 1f4b202 commit 51fe447

File tree

15 files changed

+87
-851
lines changed

15 files changed

+87
-851
lines changed

build/Gruntfile.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module.exports = function (grunt) {
1414
// Setup doc names / paths.
1515
docsName: '<%= pkg.name %>_docs-<%= version %>',
1616
docsZip: "<%= docsName %>.zip",
17-
docsFolder: "./output/<%= docsName %>/",
1817

1918
// Setup Uglify for JS minification.
2019
uglify: {
@@ -55,13 +54,13 @@ module.exports = function (grunt) {
5554
url: '<%= pkg.url %>',
5655
logo: '<%= pkg.logo %>',
5756
options: {
58-
paths: ['../src/'],
57+
paths: ['./'],
5958
outdir: '<%= docsFolder %>',
6059
linkNatives: true,
6160
attributesEmit: true,
6261
selleck: true,
63-
helpers: ["./path.js"],
64-
themedir: "createjsTheme/"
62+
helpers: ["../build/path.js"],
63+
themedir: "../build/createjsTheme/"
6564
}
6665
}
6766
},
@@ -173,13 +172,22 @@ module.exports = function (grunt) {
173172
grunt.loadNpmTasks('grunt-contrib-copy');
174173
grunt.loadTasks('tasks/');
175174

175+
grunt.registerTask('setDocsBase', "Internal utility task to set a correct base for YUIDocs.", function() {
176+
grunt.file.setBase('../src');
177+
grunt.config.set('docsFolder', "../build/output/<%= docsName %>/");
178+
});
179+
180+
grunt.registerTask('resetBase', "Internal utility task to reset the base, after setDocsBase", function() {
181+
grunt.file.setBase('../build');
182+
grunt.config.set('docsFolder', "./output/<%= docsName %>/");
183+
});
184+
176185
/**
177186
* Build the docs using YUIdocs.
178187
*/
179188
grunt.registerTask('docs', [
180-
"yuidoc", "compress", "copy:docsZip"
189+
"setDocsBase", "yuidoc", "resetBase", "compress", "copy:docsZip"
181190
]);
182-
183191
/**
184192
* Sets out version to the version in package.json (defaults to NEXT)
185193
*/
-430 Bytes
Binary file not shown.

build/createjsTheme/assets/css/main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,8 @@ kbd .cmd {
851851
.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:hover {
852852
background: none !important;
853853
border: none !important;
854-
background-color: #8765d6 !important;
854+
background-color: #3399ff !important;
855855
}
856856
.yui3-skin-sam .yui3-tabview-list {
857-
border-bottom: 5px solid #8765d6 !important;
857+
border-bottom: 5px solid #3399ff !important;
858858
}

build/createjsTheme/assets/css/yui-cssgrids-min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
2.54 KB
Loading
121 KB
Binary file not shown.

build/createjsTheme/assets/js/api-filter.js

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

build/createjsTheme/assets/js/api-list.js

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

0 commit comments

Comments
 (0)