Skip to content

Commit ffd5b5f

Browse files
author
doapp-ryanp
committed
cleanup gitignore. add gitignore to new jaws project
1 parent 88521f9 commit ffd5b5f

File tree

3 files changed

+74
-21
lines changed

3 files changed

+74
-21
lines changed

.gitignore

+32-20
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,40 @@
1-
*.seed
1+
# Logs
2+
logs
23
*.log
3-
*.csv
4-
*.dat
5-
*.out
4+
npm-debug.log
5+
6+
# Runtime data
7+
pids
68
*.pid
7-
*.gz
8-
*.idea
9-
*.env
9+
*.seed
10+
dist
11+
12+
# Directory for instrumented libs generated by jscoverage/JSCover
13+
lib-cov
14+
15+
# Coverage directory used by tools like istanbul
16+
coverage
17+
18+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
19+
.grunt
20+
21+
# node-waf configuration
22+
.lock-wscript
1023

24+
# Compiled binary addons (http://nodejs.org/api/addons.html)
25+
build/Release
26+
27+
# Dependency directory
28+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
29+
node_modules
30+
31+
#IDE Stuff
1132
**/.idea
33+
34+
#OS STUFF
1235
.DS_Store
1336
.tmp
1437

15-
# Runtime data
16-
pids
17-
logs
18-
results
19-
npm-debug.log
38+
#JAWS STUFF
2039
admin.env
21-
22-
site/public/libs
23-
site/node_modules
24-
lib/node_modules
25-
cli/node_modules
26-
api/**/node_modules
27-
node_modules
28-
dist
40+
.env

lib/commands/new_project.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ CMD.prototype._createProjectDirectory = Promise.method(function() {
310310
var adminEnv = 'ADMIN_AWS_PROFILE=' + _this._profile + os.EOL;
311311

312312
// Prepare CloudFormation template
313-
var cfTemplate = require('../templates/resources-cf');
313+
var cfTemplate = utils.readAndParseJsonSync(__dirname + '/../templates/resources-cf.json');
314314
cfTemplate.Parameters.aaProjectName.Default = _this._name;
315315
cfTemplate.Parameters.aaProjectName.AllowedValues = [_this._name];
316316
cfTemplate.Parameters.aaStage.Default = _this._stage;
@@ -331,6 +331,7 @@ CMD.prototype._createProjectDirectory = Promise.method(function() {
331331
fs.mkdirAsync(path.join(_this._projectRootPath, 'back', 'aws_modules')),
332332
utils.writeFile(path.join(_this._projectRootPath, 'admin.env'), adminEnv),
333333
utils.generateResourcesCf(_this._projectRootPath, _this._name, _this._stage, _this._region, _this._notificationEmail),
334+
fs.writeFileAsync(path.join(_this._projectRootPath, '.gitignore'), fs.readFileSync(__dirname + '/../templates/gitignore')),
334335
]);
335336
});
336337
});

lib/templates/gitignore

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
dist
11+
12+
# Directory for instrumented libs generated by jscoverage/JSCover
13+
lib-cov
14+
15+
# Coverage directory used by tools like istanbul
16+
coverage
17+
18+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
19+
.grunt
20+
21+
# node-waf configuration
22+
.lock-wscript
23+
24+
# Compiled binary addons (http://nodejs.org/api/addons.html)
25+
build/Release
26+
27+
# Dependency directory
28+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
29+
node_modules
30+
31+
#IDE Stuff
32+
**/.idea
33+
34+
#OS STUFF
35+
.DS_Store
36+
.tmp
37+
38+
#JAWS STUFF
39+
admin.env
40+
.env

0 commit comments

Comments
 (0)