Skip to content
Permalink
Browse files

refactor 7: condense files with grunt

  • Loading branch information
bbraithwaite committed Apr 9, 2015
1 parent 8707f31 commit dc6d44244d4ff429a32ecaf1238ab3ecbc7ef0a4
Showing with 38 additions and 7 deletions.
  1. +32 −0 Gruntfile.js
  2. +2 −0 app/dist/sf-movies-web.min.js
  3. +1 −7 app/index.html
  4. +3 −0 package.json
@@ -0,0 +1,32 @@
'use strict';

module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/* <%= pkg.name %> <%= pkg.version %> */\n'
},
build: {
src: 'app/*.js',
dest: 'app/dist/<%= pkg.name %>.min.js'
}
},
jshint: {
options: {
jshintrc: true
},
beforeconcat: ['app/*.js']
}
});

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');

// Default task(s).
grunt.registerTask('default', ['uglify', 'jshint']);

};

Some generated files are not rendered by default. Learn more.

@@ -7,13 +7,7 @@
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="bower_components/boc-autocomplete/build/boc.autocomplete.min.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="map-service.js"></script>
<script type="text/javascript" src="templates.js"></script>
<script type="text/javascript" src="home-control.js"></script>
<script type="text/javascript" src="location-control.js"></script>
<script type="text/javascript" src="movie-control.js"></script>
<script type="text/javascript" src="search-control.js"></script>
<script type="text/javascript" src="app.js"></script>
<script type="text/javascript" src="dist/sf-movies-web.min.js"></script>
</head>
<body>
<div id="map-canvas"></div>
@@ -23,6 +23,9 @@
"homepage": "https://github.com/bbraithwaite/sf-movies-web",
"devDependencies": {
"bower": "^1.3.12",
"grunt": "^0.4.5",
"grunt-contrib-jshint": "^0.11.1",
"grunt-contrib-uglify": "^0.9.1",
"jshint": "^2.6.0",
"nodemon": "^1.3.7",
"pre-commit": "^1.0.5"

0 comments on commit dc6d442

Please sign in to comment.
You can’t perform that action at this time.