main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
970 bytes
|
Line | |
---|
1 | module.exports = function(grunt) {
|
---|
2 | grunt.initConfig({
|
---|
3 | pkg: grunt.file.readJSON("package.json"),
|
---|
4 |
|
---|
5 | uglify: {
|
---|
6 | options: {
|
---|
7 | banner: "/*! <%= pkg.name %> | <%= pkg.author %> | <%= pkg.license %> */\n",
|
---|
8 | sourceMap: true
|
---|
9 | },
|
---|
10 | build: {
|
---|
11 | files: [
|
---|
12 | {
|
---|
13 | src: "src/sprintf.js",
|
---|
14 | dest: "dist/sprintf.min.js"
|
---|
15 | },
|
---|
16 | {
|
---|
17 | src: "src/angular-sprintf.js",
|
---|
18 | dest: "dist/angular-sprintf.min.js"
|
---|
19 | }
|
---|
20 | ]
|
---|
21 | }
|
---|
22 | },
|
---|
23 |
|
---|
24 | watch: {
|
---|
25 | js: {
|
---|
26 | files: "src/*.js",
|
---|
27 | tasks: ["uglify"]
|
---|
28 | }
|
---|
29 | }
|
---|
30 | })
|
---|
31 |
|
---|
32 | grunt.loadNpmTasks("grunt-contrib-uglify")
|
---|
33 | grunt.loadNpmTasks("grunt-contrib-watch")
|
---|
34 |
|
---|
35 | grunt.registerTask("default", ["uglify", "watch"])
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.