Skip to content

Commit

Permalink
gitignore generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
oakmac committed Feb 15, 2016
1 parent 7096d8e commit 5aca5fd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
14 changes: 9 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# ignore the publish directory
00-publish/

# ignore node_modules
node_modules/

# ignore CLJS-generated files
target/
public/index.html
public/js/cheatsheet.js
public/js/cheatsheet.min.js
app.js

# ignore node_modules
node_modules/

# ignore the publish directory
00-publish/
# ignore less-generated css file
public/js/main.min.css

# ignore diff files
*.diff
8 changes: 7 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ function squeezeClasses() {
//------------------------------------------------------------------------------

function buildCheatsheetSanityCheck() {
if (! grunt.file.exists('public/index.html')) {
grunt.fail.warn('Could not find public/index.html! Aborting...');
}

if (! grunt.file.exists('public/js/cheatsheet.min.js')) {
grunt.fail.warn('Could not find public/js/cheatsheet.min.js! Aborting...');
}
Expand Down Expand Up @@ -260,7 +264,9 @@ grunt.loadNpmTasks('grunt-contrib-watch');

grunt.registerTask('build-cheatsheet-sanity-check', buildCheatsheetSanityCheck);
grunt.registerTask('hash-cheatsheet', hashCheatsheetFiles);
grunt.registerTask('squeeze-classes', squeezeClasses);

// TODO: this is unfinished
//grunt.registerTask('squeeze-classes', squeezeClasses);

grunt.registerTask('build-cheatsheet', [
'build-cheatsheet-sanity-check',
Expand Down
1 change: 0 additions & 1 deletion public/css/main.min.css

This file was deleted.

4 changes: 0 additions & 4 deletions public/index.html

This file was deleted.

0 comments on commit 5aca5fd

Please sign in to comment.