Permalink
Browse files

feat(grunt): try auto build

  • Loading branch information...
sparanoid committed Aug 12, 2015
1 parent 0b36f99 commit 4637df0fefdbc9c10940c62fd9874591abb2d40f
Showing with 54 additions and 16 deletions.
  1. +6 −0 .tm_properties
  2. 0 CHANGELOG.md
  3. +33 −8 Gruntfile.js
  4. +15 −8 package.json
@@ -0,0 +1,6 @@
# Variables
EXCLUDES = "{_amsf,_site,node_modules}"
# Exclude search list
excludeInFolderSearch = "$EXCLUDES"
excludeInFileChooser = "$EXCLUDES"
No changes.
@@ -10,7 +10,9 @@
module.exports = function(grunt) {
// Project configuration.
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
require("time-grunt")(grunt);
grunt.initConfig({
jshint: {
all: [
@@ -23,12 +25,10 @@ module.exports = function(grunt) {
},
},
// Before generating any new files, remove any previously-created files.
clean: {
tests: ['tmp'],
},
// Configuration to be run (and then tested).
assets_inline: {
default_options: {
files: {
@@ -42,20 +42,45 @@ module.exports = function(grunt) {
tests: ['test/*_test.js'],
},
conventionalChangelog: {
options: {
changelogOpts: {
preset: "angular"
}
},
dist: {
src: "CHANGELOG.md"
}
},
bump: {
options: {
files: ["package.json"],
commitMessage: 'chore: release v%VERSION%',
commitFiles: ["-a"],
tagMessage: 'chore: create tag %VERSION%',
push: false
}
}
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
// Whenever the "test" task is run, first clean the "tmp" dir, then run this
// plugin's task(s), then test the result.
grunt.registerTask('test', ['clean', 'assets_inline', 'nodeunit']);
grunt.registerTask('release', 'bump, changelog and publish to npm.', function(type) {
grunt.task.run([
'bump:' + (type || 'patch') + ':bump-only',
'conventionalChangelog',
'bump-commit',
'npm-publish'
]);
});
// By default, lint and run all tests.
grunt.registerTask('default', ['jshint', 'test']);
@@ -7,10 +7,12 @@
"name": "Tunghsiao Liu",
"email": "t@sparanoid.com"
},
"contributors": [{
"name": "Ben Breedlove",
"email": "benbreedlove@gmail.com"
}],
"contributors": [
{
"name": "Ben Breedlove",
"email": "benbreedlove@gmail.com"
}
],
"repository": {
"type": "git",
"url": "git://github.com/sparanoid/grunt-assets-inline.git"
@@ -31,10 +33,15 @@
"uglify-js": "~2.3.6"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-jshint": "~0.4.3",
"grunt-contrib-nodeunit": "^0.4.1"
"grunt": "^0.4.5",
"grunt-bump": "^0.3.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-jshint": "^0.11.1",
"grunt-contrib-nodeunit": "^0.4.1",
"grunt-conventional-changelog": "^4.0.0",
"grunt-npm": "0.0.2",
"matchdep": "^0.3.0",
"time-grunt": "^1.2.1"
},
"peerDependencies": {
"grunt": "~0.4.1"

0 comments on commit 4637df0

Please sign in to comment.