Skip to content

Commit 5703700

Browse files
committed
Updated .gitignore
1 parent bd866bf commit 5703700

File tree

3 files changed

+171
-1
lines changed

3 files changed

+171
-1
lines changed

solves/.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
/dist
22

3+
########################################################
4+
# Package Manager Files #
5+
# (Very handy for quickly generating and testing code) #
6+
########################################################
7+
8+
/base-template/.yarn
9+
/base-template/.pnp.cjs
10+
/base-template/.pnp.loader.mjs
11+
/base-template/.yarnrc.yml
12+
13+
# I need to override the actual yarn.lock file, so I rename the actual file
14+
# and keep the file I'm using unstaged
15+
/base-template/yarn.lock*
16+

solves/base-template/.gitignore

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
################################
2+
### Project-Specific Ignores ###
3+
################################
4+
5+
/dist
6+
7+
##############################
8+
### yarn Generated Ignores ###
9+
##############################
10+
11+
/.yarn/*
12+
!/.yarn/patches
13+
!/.yarn/plugins
14+
!/.yarn/releases
15+
!/.yarn/sdks
16+
17+
# Swap the comments on the following lines if you don't wish to use zero-installs
18+
# Documentation here: https://yarnpkg.com/features/zero-installs
19+
!/.yarn/cache
20+
#/.pnp.*
21+
22+
############################################################################################
23+
### Ignores template from <https://github.com/github/gitignore/blob/main/Node.gitignore> ###
24+
############################################################################################
25+
26+
# Logs
27+
logs
28+
*.log
29+
npm-debug.log*
30+
yarn-debug.log*
31+
yarn-error.log*
32+
lerna-debug.log*
33+
.pnpm-debug.log*
34+
35+
# Diagnostic reports (https://nodejs.org/api/report.html)
36+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
37+
38+
# Runtime data
39+
pids
40+
*.pid
41+
*.seed
42+
*.pid.lock
43+
44+
# Directory for instrumented libs generated by jscoverage/JSCover
45+
lib-cov
46+
47+
# Coverage directory used by tools like istanbul
48+
coverage
49+
*.lcov
50+
51+
# nyc test coverage
52+
.nyc_output
53+
54+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
55+
.grunt
56+
57+
# Bower dependency directory (https://bower.io/)
58+
bower_components
59+
60+
# node-waf configuration
61+
.lock-wscript
62+
63+
# Compiled binary addons (https://nodejs.org/api/addons.html)
64+
build/Release
65+
66+
# Dependency directories
67+
node_modules/
68+
jspm_packages/
69+
70+
# Snowpack dependency directory (https://snowpack.dev/)
71+
web_modules/
72+
73+
# TypeScript cache
74+
*.tsbuildinfo
75+
76+
# Optional npm cache directory
77+
.npm
78+
79+
# Optional eslint cache
80+
.eslintcache
81+
82+
# Optional stylelint cache
83+
.stylelintcache
84+
85+
# Microbundle cache
86+
.rpt2_cache/
87+
.rts2_cache_cjs/
88+
.rts2_cache_es/
89+
.rts2_cache_umd/
90+
91+
# Optional REPL history
92+
.node_repl_history
93+
94+
# Output of 'npm pack'
95+
*.tgz
96+
97+
# Yarn Integrity file
98+
.yarn-integrity
99+
100+
# dotenv environment variable files
101+
.env
102+
.env.development.local
103+
.env.test.local
104+
.env.production.local
105+
.env.local
106+
107+
# parcel-bundler cache (https://parceljs.org/)
108+
.cache
109+
.parcel-cache
110+
111+
# Next.js build output
112+
.next
113+
out
114+
115+
# Nuxt.js build / generate output
116+
.nuxt
117+
#dist
118+
119+
# Gatsby files
120+
.cache/
121+
# Comment in the public line in if your project uses Gatsby and not Next.js
122+
# https://nextjs.org/blog/next-9-1#public-directory-support
123+
# public
124+
125+
# vuepress build output
126+
.vuepress/dist
127+
128+
# vuepress v2.x temp and cache directory
129+
.temp
130+
.cache
131+
132+
# Docusaurus cache and generated files
133+
.docusaurus
134+
135+
# Serverless directories
136+
.serverless/
137+
138+
# FuseBox cache
139+
.fusebox/
140+
141+
# DynamoDB Local files
142+
.dynamodb/
143+
144+
# TernJS port file
145+
.tern-port
146+
147+
# Stores VSCode versions used for testing VSCode extensions
148+
.vscode-test
149+
150+
# yarn v2
151+
#.yarn/cache
152+
#.yarn/unplugged
153+
#.yarn/build-state.yml
154+
#.yarn/install-state.gz
155+
#.pnp.*
156+

solves/src/code-generator/base-template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function copyDirAndApplyTemplate(
4141
const retypedSubstitutions: {[key: string]: any} = Object.fromEntries(
4242
Object.entries(substitutions),
4343
);
44+
4445
_copyDirAndApplyTemplate(src, dst, retypedSubstitutions);
4546
copyWorkspaces(dst);
4647
}
@@ -88,7 +89,6 @@ function _copyDirAndApplyTemplate(
8889
const modifiedSubstitutions = {...substitutions, ...templatesHelperAPI};
8990
const ht = helperTemplates.get(nameWithoutExt + HELPERS_EXTENSION);
9091
if (ht !== undefined) modifiedSubstitutions["ht"] = ht;
91-
console.log(modifiedSubstitutions);
9292
try {
9393
fs.writeFileSync(modifiedDST, ejs.render(fileData, modifiedSubstitutions));
9494
} catch (err) {

0 commit comments

Comments
 (0)