@cerema/cadriciel 0.5.6 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cmd/init.js +9 -0
- package/gitignore +50 -0
- package/package.json +1 -1
package/cmd/init.js
CHANGED
|
@@ -89,7 +89,16 @@ module.exports = function (program) {
|
|
|
89
89
|
process.cwd() + '/' + o.project + '/.project',
|
|
90
90
|
JSON.stringify(o)
|
|
91
91
|
);
|
|
92
|
+
var gitignore = fs.readFileSync(__dirname + '/gitignore', 'utf-8');
|
|
93
|
+
fs.writeFileSync(
|
|
94
|
+
process.cwd() + '/' + o.project + '/.gitignore',
|
|
95
|
+
gitignore
|
|
96
|
+
);
|
|
92
97
|
spinner.succeed(`projet ${o.project} crée avec succès.`);
|
|
98
|
+
console.log('\n');
|
|
99
|
+
console.log('cd ' + o.project);
|
|
100
|
+
console.log('cd ' + o.project);
|
|
101
|
+
console.log('\n');
|
|
93
102
|
console.log('\n🚀 Happy coding !\n');
|
|
94
103
|
});
|
|
95
104
|
});
|
package/gitignore
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
##########################
|
|
2
|
+
# Application specfic
|
|
3
|
+
##########################
|
|
4
|
+
# config/config.js
|
|
5
|
+
|
|
6
|
+
##########################
|
|
7
|
+
# General
|
|
8
|
+
##########################
|
|
9
|
+
|
|
10
|
+
#####
|
|
11
|
+
# OS X temporary files
|
|
12
|
+
#
|
|
13
|
+
# c.f. http://www.westwind.com/reference/os-x/invisibles.html
|
|
14
|
+
.DS_Store
|
|
15
|
+
__MACOSX
|
|
16
|
+
|
|
17
|
+
# c.f. http://www.westwind.com/reference/os-x/invisibles.html
|
|
18
|
+
.Trashes
|
|
19
|
+
|
|
20
|
+
# c.f. http://www.westwind.com/reference/os-x/invisibles.html
|
|
21
|
+
*.swp
|
|
22
|
+
|
|
23
|
+
#####
|
|
24
|
+
# Node stuff
|
|
25
|
+
#
|
|
26
|
+
# Logs
|
|
27
|
+
logs
|
|
28
|
+
*.log
|
|
29
|
+
npm-debug.log*
|
|
30
|
+
|
|
31
|
+
# Runtime data
|
|
32
|
+
pids
|
|
33
|
+
*.pid
|
|
34
|
+
*.seed
|
|
35
|
+
|
|
36
|
+
# Coverage directory used by tools like istanbul
|
|
37
|
+
coverage
|
|
38
|
+
|
|
39
|
+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
|
40
|
+
.grunt
|
|
41
|
+
|
|
42
|
+
# node-waf configuration
|
|
43
|
+
.lock-wscript
|
|
44
|
+
|
|
45
|
+
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
|
46
|
+
build/Release
|
|
47
|
+
|
|
48
|
+
# Dependency directory
|
|
49
|
+
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
|
|
50
|
+
node_modules
|