Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

created grunt build task

  • Loading branch information...
commit 4ffac4f920e4ee58f00a8871696c68768dc60850 1 parent 5e9f2aa
Arron Schaar pennyfx authored
Showing with 31 additions and 4 deletions.
  1. +1 −0  .gitignore
  2. +19 −0 Gruntfile.js
  3. +8 −3 README.md
  4. +3 −1 package.json
1  .gitignore
View
@@ -1,3 +1,4 @@
+dist
components
node_modules
.grunt
19 Gruntfile.js
View
@@ -30,9 +30,27 @@ module.exports = function (grunt) {
options: {
jshintrc: '.jshintrc'
}
+ },
+ concat: {
+ all:{
+ src:[
+ 'components/document.register/src/document.register.js',
+ 'src/core.js'
+ ],
+ dest: 'dist/x-tag-core.js'
+ }
+ },
+ uglify: {
+ all: {
+ files :{
+ 'dist/x-tag-core.min.js': ['dist/x-tag-core.js']
+ }
+ }
}
});
+ grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
@@ -42,5 +60,6 @@ module.exports = function (grunt) {
// Default task.
grunt.registerTask('default', ['test']);
+ grunt.registerTask('build', ['test','concat','uglify']);
};
11 README.md
View
@@ -25,12 +25,17 @@ To get started hacking on X-Tag:
$ bower install // installs component dependencies
-
-
Tests
Jasmine tests via grunt are not working yet, please open
- test/index.html to see if everything passes.
+ test/index.html in your browser to see if everything passes.
+
+
+Build
+
+ $ grunt build
+
+ // See ./dist/ directory for the build library that can be used in your project
4 package.json
View
@@ -14,7 +14,9 @@
"grunt": "~0.4.0rc5",
"grunt-contrib-jasmine": "0.3.0rc5",
"grunt-contrib-jshint": "0.1.1rc5",
- "grunt-contrib-watch": "0.2.0rc5"
+ "grunt-contrib-watch": "0.2.0rc5",
+ "grunt-contrib-concat": "~0.1.2rc6",
+ "grunt-contrib-uglify": "~0.1.1rc6"
},
"dependencies": {}
}
Please sign in to comment.
Something went wrong with that request. Please try again.