@vidavidorra/create-project 1.0.0

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.
Files changed (40) hide show
  1. package/.editorconfig +12 -0
  2. package/.github/husky/commit-msg +4 -0
  3. package/.github/husky/pre-commit +4 -0
  4. package/.github/lint-staged.js +6 -0
  5. package/.github/renovate.json +4 -0
  6. package/.github/workflows/ci-cd.yml +36 -0
  7. package/.gitignore +355 -0
  8. package/.npmrc +1 -0
  9. package/LICENSE.md +619 -0
  10. package/README.md +76 -0
  11. package/dist/content/ci-cd.d.ts +246 -0
  12. package/dist/content/ci-cd.js +112 -0
  13. package/dist/content/file.d.ts +36 -0
  14. package/dist/content/file.js +52 -0
  15. package/dist/content/files.d.ts +4 -0
  16. package/dist/content/files.js +23 -0
  17. package/dist/content/index.d.ts +1 -0
  18. package/dist/content/index.js +2 -0
  19. package/dist/content/lint-staged.d.ts +12 -0
  20. package/dist/content/lint-staged.js +40 -0
  21. package/dist/content/package.d.ts +211 -0
  22. package/dist/content/package.js +122 -0
  23. package/dist/content/readme/badge.d.ts +15 -0
  24. package/dist/content/readme/badge.js +75 -0
  25. package/dist/content/readme/index.d.ts +1 -0
  26. package/dist/content/readme/index.js +2 -0
  27. package/dist/content/readme/readme.d.ts +17 -0
  28. package/dist/content/readme/readme.js +129 -0
  29. package/dist/content/readme/readme.js.map +1 -0
  30. package/dist/content/readme/readme.test.d.ts +1 -0
  31. package/dist/content/readme/readme.test.js +35 -0
  32. package/dist/content/readme/readme.test.js.map +1 -0
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +62 -0
  35. package/dist/options.d.ts +43 -0
  36. package/dist/options.js +52 -0
  37. package/dist/root-path.d.ts +2 -0
  38. package/dist/root-path.js +5 -0
  39. package/package.json +226 -0
  40. package/tsconfig.json +14 -0
package/.editorconfig ADDED
@@ -0,0 +1,12 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = space
5
+ indent_size = 2
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+
11
+ [*.md]
12
+ trim_trailing_whitespace = false
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ npx --no-install commitlint --edit "${1}"
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ npx --no-install lint-staged --config .github/lint-staged.js
@@ -0,0 +1,6 @@
1
+ const config = {
2
+ '*.{ts,tsx,js,jsx}': ['xo --fix', () => 'ava'],
3
+ '*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}':
4
+ 'prettier --write',
5
+ };
6
+ export default config;
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": ["github>vidavidorra/.github"]
4
+ }
@@ -0,0 +1,36 @@
1
+ name: CI/CD
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ - beta
7
+ - renovate/**
8
+ pull_request: null
9
+ jobs:
10
+ lint-commit-messages:
11
+ uses: vidavidorra/.github/.github/workflows/lint-commit-messages.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0
12
+ lint:
13
+ uses: vidavidorra/.github/.github/workflows/node-lint.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0
14
+ build:
15
+ uses: vidavidorra/.github/.github/workflows/node-build.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0
16
+ test:
17
+ uses: vidavidorra/.github/.github/workflows/node-test.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0
18
+ code-coverage:
19
+ uses: vidavidorra/.github/.github/workflows/node-test-coverage.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0
20
+ needs:
21
+ - lint
22
+ - build
23
+ - test
24
+ secrets:
25
+ codecovToken: ${{ secrets.CODECOV_TOKEN }}
26
+ release:
27
+ uses: vidavidorra/.github/.github/workflows/release.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0
28
+ needs:
29
+ - lint-commit-messages
30
+ - lint
31
+ - build
32
+ - test
33
+ - code-coverage
34
+ secrets:
35
+ privateKey: ${{ secrets.RELEASE_PRIVATE_KEY }}
36
+ npmToken: ${{ secrets.NPM_PUBLISH_TOKEN }}
package/.gitignore ADDED
@@ -0,0 +1,355 @@
1
+ ################################################################################
2
+ # macOS
3
+ # Source: https://www.gitignore.io
4
+ ################################################################################
5
+ # General
6
+ .DS_Store
7
+ .AppleDouble
8
+ .LSOverride
9
+
10
+ # Icon must end with two \r
11
+ Icon
12
+
13
+ # Thumbnails
14
+ ._*
15
+
16
+ # Files that might appear in the root of a volume
17
+ .DocumentRevisions-V100
18
+ .fseventsd
19
+ .Spotlight-V100
20
+ .TemporaryItems
21
+ .Trashes
22
+ .VolumeIcon.icns
23
+ .com.apple.timemachine.donotpresent
24
+
25
+ # Directories potentially created on remote AFP share
26
+ .AppleDB
27
+ .AppleDesktop
28
+ Network Trash Folder
29
+ Temporary Items
30
+ .apdisk
31
+
32
+
33
+ ################################################################################
34
+ # Linux
35
+ # Source: https://www.gitignore.io
36
+ ################################################################################
37
+ *~
38
+
39
+ # temporary files which can be created if a process still has a handle open of a deleted file
40
+ .fuse_hidden*
41
+
42
+ # KDE directory preferences
43
+ .directory
44
+
45
+ # Linux trash folder which might appear on any partition or disk
46
+ .Trash-*
47
+
48
+ # .nfs files are created when an open file is removed but is still being accessed
49
+ .nfs*
50
+
51
+
52
+ ################################################################################
53
+ # Windows
54
+ # Source: https://www.gitignore.io
55
+ ################################################################################
56
+ # Windows thumbnail cache files
57
+ Thumbs.db
58
+ Thumbs.db:encryptable
59
+ ehthumbs.db
60
+ ehthumbs_vista.db
61
+
62
+ # Dump file
63
+ *.stackdump
64
+
65
+ # Folder config file
66
+ [Dd]esktop.ini
67
+
68
+ # Recycle Bin used on file shares
69
+ $RECYCLE.BIN/
70
+
71
+ # Windows Installer files
72
+ *.cab
73
+ *.msi
74
+ *.msix
75
+ *.msm
76
+ *.msp
77
+
78
+ # Windows shortcuts
79
+ *.lnk
80
+
81
+
82
+ ################################################################################
83
+ # dotenv
84
+ # Source: https://www.gitignore.io
85
+ ################################################################################
86
+ .env
87
+
88
+
89
+ ################################################################################
90
+ # CMake
91
+ # Source: https://www.gitignore.io
92
+ ################################################################################
93
+ CMakeLists.txt.user
94
+ CMakeCache.txt
95
+ CMakeFiles
96
+ CMakeScripts
97
+ Testing
98
+ Makefile
99
+ cmake_install.cmake
100
+ install_manifest.txt
101
+ compile_commands.json
102
+ CTestTestfile.cmake
103
+ _deps
104
+
105
+ ### CMake Patch ###
106
+ # External projects
107
+ *-prefix/
108
+
109
+
110
+ ################################################################################
111
+ # Node
112
+ # Source: https://www.gitignore.io
113
+ ################################################################################
114
+ # Logs
115
+ logs
116
+ *.log
117
+ npm-debug.log*
118
+ yarn-debug.log*
119
+ yarn-error.log*
120
+ lerna-debug.log*
121
+
122
+ # Diagnostic reports (https://nodejs.org/api/report.html)
123
+ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
124
+
125
+ # Runtime data
126
+ pids
127
+ *.pid
128
+ *.seed
129
+ *.pid.lock
130
+
131
+ # Directory for instrumented libs generated by jscoverage/JSCover
132
+ lib-cov
133
+
134
+ # Coverage directory used by tools like istanbul
135
+ coverage
136
+ *.lcov
137
+
138
+ # nyc test coverage
139
+ .nyc_output
140
+
141
+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
142
+ .grunt
143
+
144
+ # Bower dependency directory (https://bower.io/)
145
+ bower_components
146
+
147
+ # node-waf configuration
148
+ .lock-wscript
149
+
150
+ # Compiled binary addons (https://nodejs.org/api/addons.html)
151
+ build/Release
152
+
153
+ # Dependency directories
154
+ node_modules/
155
+ jspm_packages/
156
+
157
+ # TypeScript v1 declaration files
158
+ typings/
159
+
160
+ # TypeScript cache
161
+ *.tsbuildinfo
162
+
163
+ # Optional npm cache directory
164
+ .npm
165
+
166
+ # Optional eslint cache
167
+ .eslintcache
168
+
169
+ # Microbundle cache
170
+ .rpt2_cache/
171
+ .rts2_cache_cjs/
172
+ .rts2_cache_es/
173
+ .rts2_cache_umd/
174
+
175
+ # Optional REPL history
176
+ .node_repl_history
177
+
178
+ # Output of 'npm pack'
179
+ *.tgz
180
+
181
+ # Yarn Integrity file
182
+ .yarn-integrity
183
+
184
+ # dotenv environment variables file
185
+ .env
186
+ .env.test
187
+ .env*.local
188
+
189
+ # parcel-bundler cache (https://parceljs.org/)
190
+ .cache
191
+ .parcel-cache
192
+
193
+ # Next.js build output
194
+ .next
195
+
196
+ # Nuxt.js build / generate output
197
+ .nuxt
198
+ dist
199
+
200
+ # Gatsby files
201
+ .cache/
202
+ # Comment in the public line in if your project uses Gatsby and not Next.js
203
+ # https://nextjs.org/blog/next-9-1#public-directory-support
204
+ # public
205
+
206
+ # vuepress build output
207
+ .vuepress/dist
208
+
209
+ # Serverless directories
210
+ .serverless/
211
+
212
+ # FuseBox cache
213
+ .fusebox/
214
+
215
+ # DynamoDB Local files
216
+ .dynamodb/
217
+
218
+ # TernJS port file
219
+ .tern-port
220
+
221
+ # Stores VSCode versions used for testing VSCode extensions
222
+ .vscode-test
223
+
224
+
225
+ ################################################################################
226
+ # C
227
+ # Source: https://www.gitignore.io
228
+ ################################################################################
229
+ # Prerequisites
230
+ *.d
231
+
232
+ # Object files
233
+ *.o
234
+ *.ko
235
+ *.obj
236
+ *.elf
237
+
238
+ # Linker output
239
+ *.ilk
240
+ *.map
241
+ *.exp
242
+
243
+ # Precompiled Headers
244
+ *.gch
245
+ *.pch
246
+
247
+ # Libraries
248
+ *.lib
249
+ *.a
250
+ *.la
251
+ *.lo
252
+
253
+ # Shared objects (inc. Windows DLLs)
254
+ *.dll
255
+ *.so
256
+ *.so.*
257
+ *.dylib
258
+
259
+ # Executables
260
+ *.exe
261
+ *.out
262
+ *.app
263
+ *.i*86
264
+ *.x86_64
265
+ *.hex
266
+
267
+ # Debug files
268
+ *.dSYM/
269
+ *.su
270
+ *.idb
271
+ *.pdb
272
+
273
+ # Kernel Module Compile Results
274
+ *.mod*
275
+ *.cmd
276
+ .tmp_versions/
277
+ modules.order
278
+ Module.symvers
279
+ Mkfile.old
280
+ dkms.conf
281
+
282
+
283
+ ################################################################################
284
+ # C++
285
+ # Source: https://www.gitignore.io
286
+ ################################################################################
287
+ # Prerequisites
288
+ *.d
289
+
290
+ # Compiled Object files
291
+ *.slo
292
+ *.lo
293
+ *.o
294
+ *.obj
295
+
296
+ # Precompiled Headers
297
+ *.gch
298
+ *.pch
299
+
300
+ # Compiled Dynamic libraries
301
+ *.so
302
+ *.dylib
303
+ *.dll
304
+
305
+ # Fortran module files
306
+ *.mod
307
+ *.smod
308
+
309
+ # Compiled Static libraries
310
+ *.lai
311
+ *.la
312
+ *.a
313
+ *.lib
314
+
315
+ # Executables
316
+ *.exe
317
+ *.out
318
+ *.app
319
+
320
+
321
+ ################################################################################
322
+ # Go
323
+ # Source: https://www.gitignore.io
324
+ ################################################################################
325
+ # Binaries for programs and plugins
326
+ *.exe
327
+ *.exe~
328
+ *.dll
329
+ *.so
330
+ *.dylib
331
+
332
+ # Test binary, built with `go test -c`
333
+ *.test
334
+
335
+ # Output of the go coverage tool, specifically when used with LiteIDE
336
+ *.out
337
+
338
+ # Dependency directories (remove the comment below to include it)
339
+ # vendor/
340
+
341
+ ### Go Patch ###
342
+ /vendor/
343
+ /Godeps/
344
+
345
+
346
+ ################################################################################
347
+ # Visual Studio Code
348
+ # Source: https://www.gitignore.io
349
+ ################################################################################
350
+ .vscode/*
351
+ !.vscode/settings.json
352
+ !.vscode/tasks.json
353
+ !.vscode/launch.json
354
+ !.vscode/extensions.json
355
+ *.code-workspace
package/.npmrc ADDED
@@ -0,0 +1 @@
1
+ save-exact=true