Skip to content

Commit

Permalink
CSS bundle.
Browse files Browse the repository at this point in the history
  • Loading branch information
oncletom committed Jul 25, 2014
1 parent 4eb483c commit 3c14d7e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 354 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.grunt
dist
src/bundle.js
src/bundle.*
18 changes: 15 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,26 @@
module.exports = function(grunt){
grunt.initConfig({

less: {
main: {
src: [
'bower_components/normalize-css/normalize.css',
'node_modules/codemirror/lib/codemirror.css',
'node_modules/codemirror/theme/neo.css',
'src/main.css'
],
dest: 'src/bundle.css'
}
},

'gh-pages': {
github: {
src: [
'index.html',
'src/**/*',
'!src/**/*.js',
'src/bundle.js',
'media/*',
'bower_components/**/*.css'
'media/*'
],
options: {
base: './',
Expand All @@ -27,8 +38,9 @@ module.exports = function(grunt){
}
});

grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-gh-pages');
grunt.loadNpmTasks('grunt-open');

grunt.registerTask('default', ['gh-pages', 'open']);
grunt.registerTask('default', ['less', 'gh-pages', 'open']);
};
5 changes: 1 addition & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="bower_components/normalize-css/normalize.css">
<link rel="stylesheet" type="text/css" href="src/ui/codemirror.css">
<link rel="stylesheet" type="text/css" href="src/ui/neo.css">
<link rel="stylesheet" type="text/css" href="src/main.css">
<link rel="stylesheet" type="text/css" href="src/bundle.css">

<title>Elevator simulator: use JavaScript to implement your destination dispatch algorithm — elevato.rs</title>
</head>
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-less": "^0.11.3",
"grunt-gh-pages": "~0.8.0",
"grunt-open": "~0.2.2",
"karma": "^0.12.17",
Expand Down
1 change: 0 additions & 1 deletion src/.gitignore

This file was deleted.

301 changes: 0 additions & 301 deletions src/ui/codemirror.css

This file was deleted.

Loading

0 comments on commit 3c14d7e

Please sign in to comment.