Skip to content

Commit

Permalink
Add gitignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
rpofuk committed Sep 29, 2020
1 parent c3da149 commit 3b6be9b
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,18 @@ node_modules
.nrepl-port
out
re-gen.iml
/templates/project/*.log
/templates/project/target
/templates/project/*-init.clj
/templates/project/resources/public/js
/templates/project/resources/public/.rebel_redline_history
/templates/project/.idea
/templates/project/*.iml
/templates/project/.#*
/templates/project/.shadow-cljs
/templates/project/.cpcache
/templates/project/node_modules
/templates/project/.nrepl-port
/templates/project/out
/templates/project/re-gen.iml

22 changes: 21 additions & 1 deletion lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,27 @@ const initializeProject = (projectName) => {
const templatePath = path.resolve(__dirname) + '/../templates/project';
const targetDir = `${CURR_DIR}/${projectName}`
fs.mkdirSync(targetDir);

fs.appendFile(targetDir + '/.gitignore',
`/*.log
/target
/*-init.clj
/resources/public/js
.rebel_redline_history
.idea
.iml
.#*
.shadow-cljs
.cpcache
node_modules
.nrepl-port
out
.iml`, function (err) {
if (err) {
console.error(err)
} else {
console.log("Generated .gitingore")
}
})
createDirectoryContents(templatePath, targetDir, {"projectname" : projectName});
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rpofuk/re-gen",
"version": "1.1.0",
"version": "1.1.7",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion templates/project/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# syntax=docker/dockerfile:experimental

FROM docker.io/alphaprosoft/alpha-web-ansibe-img:b47
FROM docker.io/alphaprosoft/alpha-web-img:b57

0 comments on commit 3b6be9b

Please sign in to comment.