showdown-ghost-footnotes
Advanced tools
Comparing version
@@ -12,3 +12,4 @@ { | ||
"showdown", | ||
"showdown extension", | ||
"showdown", | ||
"extension", | ||
"footnotes" | ||
@@ -21,3 +22,5 @@ ], | ||
}, | ||
"main": ["src/showdown-ghost-footnotes.js"], | ||
"main": [ | ||
"dist/showdown-ghost-footnotes.js" | ||
], | ||
"ignore": [ | ||
@@ -30,4 +33,9 @@ "test/", | ||
".travis.yml", | ||
"Gruntfile.js" | ||
"Gruntfile.js", | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
] | ||
} |
@@ -7,2 +7,3 @@ /** | ||
var config = { | ||
pkg: grunt.file.readJSON('package.json'), | ||
simplemocha: { | ||
@@ -21,2 +22,25 @@ test: { | ||
all: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'] | ||
}, | ||
concat: { | ||
options: { | ||
sourceMap: true, | ||
banner: ';/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %>', | ||
}, | ||
dist: { | ||
src: [ | ||
'src/*.js' | ||
], | ||
dest: 'dist/<%= pkg.name %>.js' | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
sourceMap: true, | ||
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n' | ||
}, | ||
dist: { | ||
files: { | ||
'dist/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>'] | ||
} | ||
} | ||
} | ||
@@ -29,5 +53,8 @@ }; | ||
grunt.loadNpmTasks('grunt-simple-mocha'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.registerTask('test', ['jshint', 'simplemocha']); | ||
grunt.registerTask('default', ['test']); | ||
grunt.registerTask('build', ['test', 'concat', 'uglify']); | ||
grunt.registerTask('default', ['build']); | ||
}; |
{ | ||
"name": "showdown-ghost-footnotes", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Add footnotes support to showdown in ghost", | ||
@@ -15,3 +15,3 @@ "keywords": [ | ||
"author": "Estevão Soares dos Santos", | ||
"main": "./src/showdown-ghost-footnotes.js", | ||
"main": "./dist/showdown-ghost-footnotes.js", | ||
"repository": { | ||
@@ -25,7 +25,8 @@ "type": "git", | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-concat": "^1.0.0", | ||
"grunt-contrib-jshint": "^0.11.2", | ||
"grunt-contrib-uglify": "^2.0.0", | ||
"grunt-simple-mocha": "^0.4.0", | ||
"js-beautify": "^1.5.10", | ||
"showdown": "^1.6.2" | ||
"showdown": "showdownjs/showdown#develop" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
106822
76.67%35
20.69%615
74.72%7
16.67%