-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
3,216 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
module.exports = function( grunt ) { | ||
var pkg = grunt.file.readJSON( 'package.json' ); | ||
|
||
grunt.initConfig( { | ||
pkg: pkg, | ||
/** | ||
* Delete files and directories. | ||
*/ | ||
clean: { | ||
build: [ '.tmp', 'dist' ], | ||
release: [ '.tmp' ] | ||
}, | ||
/** | ||
* Copy files and directories. | ||
*/ | ||
copy: { | ||
html: { | ||
files: [ { | ||
expand: true, | ||
cwd: 'src/html', | ||
src: [ '*.html'], | ||
dest: 'dist' | ||
} ] | ||
} | ||
}, | ||
|
||
useminPrepare: { | ||
html: 'src/html/*.html', | ||
options: { | ||
dest: 'dist' | ||
} | ||
}, | ||
/** | ||
* Combines and compresses CSS and JavaScript, and updates the HTML reference path. | ||
*/ | ||
usemin: { | ||
html: 'dist/*.html', | ||
options: { | ||
dest: 'dist' | ||
} | ||
}, | ||
|
||
uglify: { | ||
options: { | ||
output: { | ||
comments: 'some' | ||
} | ||
}, | ||
// dist: { | ||
// files: { | ||
// // Output file: Original file | ||
// 'dist/AutoContentsMenuGenerator.min.js': 'dist/AutoContentsMenuGenerator.js' | ||
// } | ||
// } | ||
}, | ||
|
||
// concat: { | ||
// files: { | ||
// // Original file | ||
// src : 'src/*.js', | ||
// // Output file | ||
// dest: 'concat/AutoContentsMenuGenerator.js' | ||
// } | ||
// }, | ||
|
||
/** | ||
* Settings to monitor changes to the folder. | ||
* While running "$ grunt watch", perform the specified task every time there is a change. | ||
* @type {Object} | ||
*/ | ||
watch: { | ||
scripts: { | ||
files: [ 'src/css/*.css', 'src/js/*.js' ], | ||
tasks: [ 'build' ] | ||
} | ||
} | ||
} ); | ||
|
||
Object.keys( pkg.devDependencies ).forEach( function( devDependency ) { | ||
if( devDependency.match( /^grunt\-/ ) ) { | ||
grunt.loadNpmTasks( devDependency ); | ||
} | ||
} ); | ||
|
||
grunt.registerTask( 'build', [ 'clean:build', 'copy', 'useminPrepare', 'concat', 'uglify', 'cssmin', 'usemin', 'clean:release' ] ); | ||
grunt.registerTask( 'default', [ 'watch' ] ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ol>li{list-style-type:none} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.