Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit 0e94c12

Browse files
committed
template
1 parent 19d09ed commit 0e94c12

14 files changed

+383
-0
lines changed

.gitignore

100644100755
+3
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ node_modules
2626

2727
# Users Environment Variables
2828
.lock-wscript
29+
30+
*iml
31+
.idea/*

README.md

100644100755
File mode changed.

asyncawait/.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# Compiled binary addons (http://nodejs.org/api/addons.html)
20+
build/Release
21+
22+
# Dependency directory
23+
# Commenting this out is preferred by some people, see
24+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
25+
node_modules
26+
27+
# Users Environment Variables
28+
.lock-wscript

asyncawait/Gruntfile.js

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
var exec = require('child_process').exec;
2+
var path = require('path');
3+
4+
5+
module.exports = function (grunt, projectConfig) {
6+
7+
require('load-grunt-tasks')(grunt);
8+
9+
10+
var projectConfig = projectConfig != undefined ? projectConfig : {
11+
dev: 'src',
12+
release: 'build'
13+
};
14+
15+
grunt.initConfig({
16+
17+
project: projectConfig,
18+
19+
concurrent: {
20+
build: {
21+
tasks: ['watch:all', 'watch:deps'],
22+
options: {
23+
logConcurrentOutput: true
24+
}
25+
}
26+
},
27+
28+
29+
30+
shell: {
31+
sync: {
32+
command: 'mkdir -p ./build/<%= project.name %>/ && rsync -avzh --delete --exclude="node_modules" --exclude="build" --exclude="*.ts" ./ ./build/<%= project.name %>',
33+
options: {
34+
stdout: true
35+
}
36+
},
37+
typescript: {
38+
command: 'tsc src/app.ts --sourceMap --outDir build/ --module commonjs',
39+
options: {
40+
stdout: true
41+
}
42+
}
43+
}
44+
45+
});
46+
47+
grunt.registerTask('build', ['shell:sync', 'shell:typescript']);
48+
grunt.registerTask('fullbuild', ['shell:npm', 'shell:bower', 'build']);
49+
50+
51+
52+
};

asyncawait/package.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "",
3+
"version": "0.1.0",
4+
"dependencies": {
5+
6+
},
7+
"devDependencies": {
8+
"grunt": "~0.4.5",
9+
"grunt-shell": "0.4.0",
10+
"load-grunt-tasks": "~0.1.0",
11+
"time-grunt": "~0.1.1"
12+
}
13+
}
14+
15+

events/.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# Compiled binary addons (http://nodejs.org/api/addons.html)
20+
build/Release
21+
22+
# Dependency directory
23+
# Commenting this out is preferred by some people, see
24+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
25+
node_modules
26+
27+
# Users Environment Variables
28+
.lock-wscript

events/Gruntfile.js

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
var exec = require('child_process').exec;
2+
var path = require('path');
3+
4+
5+
module.exports = function (grunt, projectConfig) {
6+
7+
require('load-grunt-tasks')(grunt);
8+
9+
10+
var projectConfig = projectConfig != undefined ? projectConfig : {
11+
dev: 'src',
12+
release: 'build'
13+
};
14+
15+
grunt.initConfig({
16+
17+
project: projectConfig,
18+
19+
concurrent: {
20+
build: {
21+
tasks: ['watch:all', 'watch:deps'],
22+
options: {
23+
logConcurrentOutput: true
24+
}
25+
}
26+
},
27+
28+
29+
30+
shell: {
31+
sync: {
32+
command: 'mkdir -p ./build/<%= project.name %>/ && rsync -avzh --delete --exclude="node_modules" --exclude="build" --exclude="*.ts" ./ ./build/<%= project.name %>',
33+
options: {
34+
stdout: true
35+
}
36+
},
37+
typescript: {
38+
command: 'tsc src/app.ts --sourceMap --outDir build/ --module commonjs',
39+
options: {
40+
stdout: true
41+
}
42+
}
43+
}
44+
45+
});
46+
47+
grunt.registerTask('build', ['shell:sync', 'shell:typescript']);
48+
grunt.registerTask('fullbuild', ['shell:npm', 'shell:bower', 'build']);
49+
50+
51+
52+
};

events/package.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "",
3+
"version": "0.1.0",
4+
"dependencies": {
5+
6+
},
7+
"devDependencies": {
8+
"grunt": "~0.4.5",
9+
"grunt-shell": "0.4.0",
10+
"load-grunt-tasks": "~0.1.0",
11+
"time-grunt": "~0.1.1"
12+
}
13+
}
14+
15+

native-ts/.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# Compiled binary addons (http://nodejs.org/api/addons.html)
20+
build/Release
21+
22+
# Dependency directory
23+
# Commenting this out is preferred by some people, see
24+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
25+
node_modules
26+
27+
# Users Environment Variables
28+
.lock-wscript

native-ts/Gruntfile.js

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
var exec = require('child_process').exec;
2+
var path = require('path');
3+
4+
5+
module.exports = function (grunt, projectConfig) {
6+
7+
require('load-grunt-tasks')(grunt);
8+
9+
10+
var projectConfig = projectConfig != undefined ? projectConfig : {
11+
dev: 'src',
12+
release: 'build'
13+
};
14+
15+
grunt.initConfig({
16+
17+
project: projectConfig,
18+
19+
concurrent: {
20+
build: {
21+
tasks: ['watch:all', 'watch:deps'],
22+
options: {
23+
logConcurrentOutput: true
24+
}
25+
}
26+
},
27+
28+
29+
30+
shell: {
31+
sync: {
32+
command: 'mkdir -p ./build/<%= project.name %>/ && rsync -avzh --delete --exclude="node_modules" --exclude="build" --exclude="*.ts" ./ ./build/<%= project.name %>',
33+
options: {
34+
stdout: true
35+
}
36+
},
37+
typescript: {
38+
command: 'tsc src/app.ts --sourceMap --outDir build/ --module commonjs',
39+
options: {
40+
stdout: true
41+
}
42+
}
43+
}
44+
45+
});
46+
47+
grunt.registerTask('build', ['shell:sync', 'shell:typescript']);
48+
grunt.registerTask('fullbuild', ['shell:npm', 'shell:bower', 'build']);
49+
50+
51+
52+
};

native-ts/package.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "",
3+
"version": "0.1.0",
4+
"dependencies": {
5+
6+
},
7+
"devDependencies": {
8+
"grunt": "~0.4.5",
9+
"grunt-shell": "0.4.0",
10+
"load-grunt-tasks": "~0.1.0",
11+
"time-grunt": "~0.1.1"
12+
}
13+
}
14+
15+

promises/.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Logs
2+
logs
3+
*.log
4+
5+
# Runtime data
6+
pids
7+
*.pid
8+
*.seed
9+
10+
# Directory for instrumented libs generated by jscoverage/JSCover
11+
lib-cov
12+
13+
# Coverage directory used by tools like istanbul
14+
coverage
15+
16+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17+
.grunt
18+
19+
# Compiled binary addons (http://nodejs.org/api/addons.html)
20+
build/Release
21+
22+
# Dependency directory
23+
# Commenting this out is preferred by some people, see
24+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
25+
node_modules
26+
27+
# Users Environment Variables
28+
.lock-wscript

promises/Gruntfile.js

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
var exec = require('child_process').exec;
2+
var path = require('path');
3+
4+
5+
module.exports = function (grunt, projectConfig) {
6+
7+
require('load-grunt-tasks')(grunt);
8+
9+
10+
var projectConfig = projectConfig != undefined ? projectConfig : {
11+
dev: 'src',
12+
release: 'build'
13+
};
14+
15+
grunt.initConfig({
16+
17+
project: projectConfig,
18+
19+
concurrent: {
20+
build: {
21+
tasks: ['watch:all', 'watch:deps'],
22+
options: {
23+
logConcurrentOutput: true
24+
}
25+
}
26+
},
27+
28+
29+
30+
shell: {
31+
sync: {
32+
command: 'mkdir -p ./build/<%= project.name %>/ && rsync -avzh --delete --exclude="node_modules" --exclude="build" --exclude="*.ts" ./ ./build/<%= project.name %>',
33+
options: {
34+
stdout: true
35+
}
36+
},
37+
typescript: {
38+
command: 'tsc src/app.ts --sourceMap --outDir build/ --module commonjs',
39+
options: {
40+
stdout: true
41+
}
42+
}
43+
}
44+
45+
});
46+
47+
grunt.registerTask('build', ['shell:sync', 'shell:typescript']);
48+
grunt.registerTask('fullbuild', ['shell:npm', 'shell:bower', 'build']);
49+
50+
51+
52+
};

promises/package.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "",
3+
"version": "0.1.0",
4+
"dependencies": {
5+
6+
},
7+
"devDependencies": {
8+
"grunt": "~0.4.5",
9+
"grunt-shell": "0.4.0",
10+
"load-grunt-tasks": "~0.1.0",
11+
"time-grunt": "~0.1.1"
12+
}
13+
}
14+
15+

0 commit comments

Comments
 (0)