Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.

Commit

Permalink
Reconstruction of build process
Browse files Browse the repository at this point in the history
  • Loading branch information
oBlissing committed Sep 4, 2015
1 parent 19f4279 commit 5bb8702
Show file tree
Hide file tree
Showing 37 changed files with 2,309 additions and 13 deletions.
19 changes: 13 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ module.exports = function(grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

grunt.registerTask('default', ['build']);
grunt.registerTask('build', ['less', 'replace', 'kss', 'copy']);
grunt.registerTask('build', ['less', 'replace', 'kss', 'copy:main', 'copy:dist']);
grunt.registerTask('serve', ['connect', 'watch']);
grunt.registerTask('deploy', ['clean', 'build', 'gh-pages']);

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: ['build'],
clean: ['build', 'dist'],
connect: {
all: {
options: {port: 8500, hostname: "0.0.0.0"}
Expand All @@ -31,13 +31,13 @@ module.exports = function(grunt) {
optimization: 2
},
files: {
"build/css/kb-style.css": "custom/custom.less"
"build/css/kb-style.css": "theme/theme.less"
}
},
kssdev: {
options: {
compress: false,
yucompress: false,
compress: true,
yucompress: true,
optimization: 2
},
files: {
Expand All @@ -47,7 +47,7 @@ module.exports = function(grunt) {
},
kss: {
options: {
css: './css/kb-style.css',
// css: './css/kb-style.css',
template: 'template'
},
dist: {
Expand Down Expand Up @@ -79,6 +79,13 @@ module.exports = function(grunt) {
{expand: true, flatten: true, src: ['node_modules/bootstrap/dist/js/bootstrap.min.js'], dest: 'build/vendor/'},
{expand: true, flatten: true, src: ['node_modules/jquery/dist/jquery.min.js'], dest: 'build/vendor/'},
]
},
dist: {
files: [
{expand: true, cwd: 'assets/', src: ['*'], dest: 'dist/assets/'},
{expand: true, cwd: 'build/css/', src: ['*'], dest: 'dist/css/'},
{expand: true, cwd: 'custom/', src: ['**/*.less'], dest: 'dist/less/'}
]
}
},
'gh-pages': {
Expand Down
1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,3 @@ Affirmer's express Statement of Purpose.

For more information, please see
<http://creativecommons.org/publicdomain/zero/1.0/>

20 changes: 20 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "kungbib-styles",
"homepage": "https://github.com/Kungbib/frontend-guide",
"authors": [
"Ola Blissing <[email protected]>"
],
"description": "Stylesheet accompanying the style guide for web development at the National Library of Sweden.",
"main": "dist/css/kb-style.css",
"ignore": [
"assets",
"custom",
"examples",
"template",
"theme",
".gitignore",
"gruntfile.js",
"package.json",
"README.md"
]
}
5 changes: 0 additions & 5 deletions custom/custom.less → custom/kb-styles.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@

// Import standard bootstrap
@import '../node_modules/bootstrap/less/bootstrap.less';

// Custom files
@import 'mixins.less';
@import 'colors.less';
Expand All @@ -17,7 +13,6 @@
@import 'jumbotron.less';

//** Load fonts from this directory.
// @icon-font-path: "../preview/fonts/";
@import url(//fonts.googleapis.com/css?family=Open+Sans:400italic,700,400);

//** File name for all font files.
Expand Down
Binary file added dist/assets/beta_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/beta_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/beta_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions dist/assets/kb_logo_black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5bb8702

Please sign in to comment.