Skip to content

Commit

Permalink
Merge pull request #4 from obewds/dev
Browse files Browse the repository at this point in the history
0.1.2 - adding some base test files to test downstream use and prep project structure for future code
  • Loading branch information
oberocks authored Aug 1, 2023
2 parents 8889273 + d13d6b2 commit 792c308
Show file tree
Hide file tree
Showing 26 changed files with 274 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_modules
.npmrc

# Local Project Items
.vscode
### .vscode
.idea
.well-known
.htpasswd
Expand Down
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"cSpell.words": [
"apdisk",
"donotpresent",
"ehthumbs",
"encryptable",
"esktop",
"fseventsd",
"icns",
"msix",
"stackdump",
"timemachine"
]
}
1 change: 1 addition & 0 deletions dist/generators/jetstream/gitignore.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function (): string;
89 changes: 89 additions & 0 deletions dist/generators/jetstream/gitignore.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/generators/jetstream/gitignore.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/helpers/cliStartMessage.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function (): void;
15 changes: 15 additions & 0 deletions dist/helpers/cliStartMessage.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/helpers/cliStartMessage.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/helpers/cwd.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const _default: string;
export default _default;
3 changes: 3 additions & 0 deletions dist/helpers/cwd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/helpers/cwd.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/helpers/gradientText.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/helpers/gradientText.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 4 additions & 11 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/installers/installViltDsJetstream.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function (): void;
6 changes: 6 additions & 0 deletions dist/installers/installViltDsJetstream.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/installers/installViltDsJetstream.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@obewds/vilt-ds",
"version": "0.1.1",
"version": "0.1.2",
"description": "The official repository for the VILT Design System for the Vue.js, Inertia.js, Laravel, and Tailwind CSS web app stack that is turbocharged with Typescript and VueVentus.",
"license": "MIT",
"author": "Matt McT",
Expand Down
92 changes: 92 additions & 0 deletions src/generators/jetstream/gitignore.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
// ./src/generators/jetstream/gitignore.ts

export default function (): string {

const code = `# ./.gitignore
# Laravel 10
/.phpunit.cache
/bootstrap/ssr
/node_modules
/public/build
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.env.production
.phpunit.result.cache
Homestead.json
Homestead.yaml
auth.json
npm-debug.log
yarn-error.log
/.fleet
/.idea
/.vscode
# NPM Remote Credentials File
.npmrc
# Local Project Items
.vscode
.idea
.well-known
.htpasswd
error_log
# MacOS General
.DS_Store
.AppleDouble
.LSOverride
# MacOS Thumbnails
._*
# MacOS Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# MacOS Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
`

return code

}
18 changes: 18 additions & 0 deletions src/helpers/cliStartMessage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// ./cli/helpers/cliStartMessage.ts

import gradientText from './gradientText.js'

export default function (): void {

// show cli start message
console.log(`
${gradientText('Welcome to the VILT DS CLI!')}
${gradientText('---------------------------')}
Install VILT/Jetstream stack starter files with VILT DS powered by VueVentus.
`)

}
3 changes: 3 additions & 0 deletions src/helpers/cwd.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// ./src/helpers/cwd.ts

export default process.env.INIT_CWD
2 changes: 1 addition & 1 deletion src/helpers/gradientText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import gradient from 'gradient-string'

export default function (string:string): string {

return gradient('lightGreen', 'cyan')(string)
return gradient.pastel(string)

}
13 changes: 4 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
#!/usr/bin/env node
// ./src/index.ts

import gradientText from './helpers/gradientText.js'
import cliStartMessage from './helpers/cliStartMessage.js'

// show cli start message
console.log(`
import installViltDsJetstream from './installers/installViltDsJetstream.js'

cliStartMessage()

${gradientText('Welcome to the VILT DS CLI!')}
${gradientText('---------------------------')}
Install VILT stack starter files with VILT DS powered by VueVentus.
`)
installViltDsJetstream()
9 changes: 9 additions & 0 deletions src/installers/installViltDsJetstream.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// ./src/installers/installViltDsJetstream.ts

import gitignore from '../generators/jetstream/gitignore.js'

export default function (): void {

console.log(gitignore)

}

0 comments on commit 792c308

Please sign in to comment.