Skip to content

Commit

Permalink
Rename Modfile to Modfile.js in example directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyan committed Jan 1, 2014
1 parent fd5c057 commit bc39dbb
Show file tree
Hide file tree
Showing 47 changed files with 35 additions and 152 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion example/catcss/Modfile → example/catcss/Modfile.js
Expand Up @@ -3,7 +3,7 @@ module.exports = {
tasks: { tasks: {
cat: { cat: {
src: ["foo.css","bar.css"], src: ["foo.css","bar.css"],
dest: "foobar.css" dest: "dist/foobar.css"
} }
} }
}; };
2 changes: 0 additions & 2 deletions example/catcss/foobar.css

This file was deleted.

2 changes: 1 addition & 1 deletion example/catjs/Modfile → example/catjs/Modfile.js
Expand Up @@ -3,7 +3,7 @@ module.exports = {
tasks: { tasks: {
cat: { cat: {
src: ["foo.js", "bar.js"], src: ["foo.js", "bar.js"],
dest: "foobar.js" dest: "dist/foobar.js"
} }
} }
}; };
2 changes: 0 additions & 2 deletions example/catjs/foobar.js

This file was deleted.

File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions example/configasync/Modfile.js
Expand Up @@ -11,8 +11,8 @@ module.exports = function(options, done){
// "bar" target options may go here, overriding task-level options. // "bar" target options may go here, overriding task-level options.
}, },
group: [ group: [
{src: ['../catjs/foo.js', '../catjs/bar.js'], dest: './foobar.js'}, {src: ['../catjs/foo.js', '../catjs/bar.js'], dest: './dist/foobar.js'},
{src: ['../catcss/foo.css', '../catcss/bar.css'], dest: './foobar.css'}, {src: ['../catcss/foo.css', '../catcss/bar.css'], dest: './dist/foobar.css'},
] ]
} }
} }
Expand Down
Expand Up @@ -9,8 +9,8 @@ module.exports = {
// "bar" target options may go here, overriding task-level options. // "bar" target options may go here, overriding task-level options.
}, },
group: [ group: [
{src: ['../catjs/foo.js', '../catjs/bar.js'], dest: './foobar.js'}, {src: ['../catjs/foo.js', '../catjs/bar.js'], dest: './dist/foobar.js'},
{src: ['../catcss/foo.css', '../catcss/bar.css'], dest: './foobar.css'}, {src: ['../catcss/foo.css', '../catcss/bar.css'], dest: './dist/foobar.css'},
] ]
} }
} }
Expand Down
File renamed without changes.
Expand Up @@ -3,7 +3,7 @@ module.exports = {
cat: { cat: {
test: { test: {
src: ['{{ qux }}', 'baz/*.js'], // [['foo/*.js', 'bar/*.js'], 'baz/*.js'] src: ['{{ qux }}', 'baz/*.js'], // [['foo/*.js', 'bar/*.js'], 'baz/*.js']
dest: 'build/{{ baz }}.js', // 'build/abcde.js' dest: 'dist/{{ baz }}.js', // 'build/abcde.js'
} }
}, },
// Arbitrary properties used in task configuration templates. // Arbitrary properties used in task configuration templates.
Expand Down
3 changes: 0 additions & 3 deletions example/configtemplate/build/abcde.js

This file was deleted.

24 changes: 12 additions & 12 deletions example/cp/Modfile → example/cp/Modfile.js
Expand Up @@ -4,34 +4,34 @@ module.exports = {
cp: { cp: {
file: { file: {
src: ["../catjs/*.js", "../catcss/*.css"], src: ["../catjs/*.js", "../catcss/*.css"],
dest: "./a", dest: "./dist/a",
filter: /foobar/ filter: /foobar/
}, },
dir: { dir: {
src: ["./a/"], src: ["./dist/a/"],
dest: "./b" dest: "./dist/b"
}, },
subdir: { subdir: {
src: ["../catjs/foo.js"], src: ["../catjs/foo.js"],
dest: "./b/bb", dest: "./dist/b/bb",
backup: false backup: false
}, },
fileAndDir: { fileAndDir: {
src: ["./b"], src: ["./dist/b"],
dest: "./c" dest: "./dist/c"
}, },
fileAndDirFlatten: { fileAndDirFlatten: {
src: ["./b"], src: ["./dist/b"],
flatten: true, flatten: true,
dest: "./d" dest: "./dist/d"
}, },
flattenSrc: { flattenSrc: {
src: ["./b/**/*.js"], src: ["./dist/b/**/*.js"],
dest: "./e" dest: "./dist/e"
}, },
fileCopyRoot: { fileCopyRoot: {
src: "./", src: "./dist",
dest: "./f" dest: "./dist/f"
} }
} }
}, },
Expand Down
2 changes: 1 addition & 1 deletion example/datauri/Modfile
Expand Up @@ -3,7 +3,7 @@ module.exports = {
tasks: { tasks: {
datauri: { datauri: {
src: "test.css", src: "test.css",
dest: "test.datauri.css", dest: "dist/test.datauri.css",
igts: true igts: true
} }
} }
Expand Down
7 changes: 0 additions & 7 deletions example/datauri/test.datauri.css

This file was deleted.

File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions example/download/Modfile → example/download/Modfile.js
Expand Up @@ -7,11 +7,11 @@ module.exports = {
download: { download: {
jquery: { jquery: {
src: ["http://code.jquery.com/jquery-1.8.2.js"], src: ["http://code.jquery.com/jquery-1.8.2.js"],
dest: "./js" dest: "./dist/js"
}, },
github: { github: {
src: "jquery/jquery", src: "jquery/jquery",
dest: "./lib/jquery" dest: "./dist/lib/jquery"
} }
} }
}, },
Expand Down
2 changes: 1 addition & 1 deletion example/mincss/Modfile → example/mincss/Modfile.js
Expand Up @@ -3,7 +3,7 @@ module.exports = {
tasks: { tasks: {
min: { min: {
src: "test.css", src: "test.css",
dest: "test.min.css" dest: "dist/test.min.css"
} }
} }
}; };
1 change: 0 additions & 1 deletion example/mincss/test.min.css

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion example/mkdir/Modfile → example/mkdir/Modfile.js
Expand Up @@ -2,7 +2,7 @@
module.exports = { module.exports = {
tasks: { tasks: {
mkdir: { mkdir: {
dest: "test" dest: "dist"
} }
} }
}; };
Expand Up @@ -12,7 +12,7 @@ module.exports = {
}, },
dist: { dist: {
src: ['foo.js', 'bar.js'], src: ['foo.js', 'bar.js'],
dest: 'foobar.js', dest: 'dist/foobar.js',
}, },
} }
} }
Expand Down
1 change: 0 additions & 1 deletion example/plugingrunttask/foobar.js

This file was deleted.

File renamed without changes.
File renamed without changes.
Expand Up @@ -8,7 +8,7 @@ module.exports = {
tasks: { tasks: {
stylus: { stylus: {
src: "test.styl", src: "test.styl",
dest: "test.css" dest: "dist/test.css"
} }
} }
}; };
50 changes: 0 additions & 50 deletions example/pluginnpmtask/test.css

This file was deleted.

6 changes: 3 additions & 3 deletions example/replace/Modfile.js
Expand Up @@ -3,17 +3,17 @@ module.exports = {
replace: { replace: {
string: { string: {
src: "foo.js", src: "foo.js",
dest: "foo.replaced.js", dest: "dist/foo.js",
search: "TIMESTAMP", search: "TIMESTAMP",
replace: +new Date replace: +new Date
}, },
regexp: { regexp: {
src: "foo.replaced.js", src: "dist/foo.js",
search: /DEBUG/g, search: /DEBUG/g,
replace: true replace: true
}, },
func: { func: {
src: "foo.replaced.js", src: "dist/foo.js",
search: /v(\d+)/, search: /v(\d+)/,
replace: function(match, v){ replace: function(match, v){
var v = Number(v); var v = Number(v);
Expand Down
3 changes: 0 additions & 3 deletions example/replace/foo.replaced.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions example/stripcode/Modfile → example/stripcode/Modfile.js
Expand Up @@ -2,8 +2,8 @@
module.exports = { module.exports = {
tasks: { tasks: {
strip: { strip: {
src: "before.js", src: "foo.js",
dest: "after.js", dest: "dist/foo.js",
code: ['alert'] code: ['alert']
} }
} }
Expand Down
16 changes: 0 additions & 16 deletions example/stripcode/after.js

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions example/stripeol/Modfile → example/stripeol/Modfile.js
Expand Up @@ -2,8 +2,8 @@
module.exports = { module.exports = {
tasks: { tasks: {
strip: { strip: {
src: "before.js", src: "foo.js",
dest: "after.js", dest: "dist/foo.js",
eol: 'lf' eol: 'lf'
} }
} }
Expand Down
16 changes: 0 additions & 16 deletions example/stripeol/after.js

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions example/striptab/Modfile → example/striptab/Modfile.js
Expand Up @@ -2,8 +2,8 @@
module.exports = { module.exports = {
tasks: { tasks: {
strip: { strip: {
src: "before.js", src: "foo.js",
dest: "after.js", dest: "dist/foo.js",
eol: 'lf', eol: 'lf',
tab: ' ' tab: ' '
} }
Expand Down
16 changes: 0 additions & 16 deletions example/striptab/after.js

This file was deleted.

File renamed without changes.
File renamed without changes.

0 comments on commit bc39dbb

Please sign in to comment.