Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.2.2 - adding more tests and converting more generator files to kebob case files #19

Merged
merged 25 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d6381c4
adding new ./tests/generators/jetstream/generate-tsconfig-json.test.ts
oberocks Aug 3, 2023
259cf99
adding new ./tests/generators/jetstream/resources/js/generate-vite-ts…
oberocks Aug 3, 2023
c3f3cc0
adding new ./tests/generators/jetstream/resources/js/generate-vite-wi…
oberocks Aug 3, 2023
625d50b
adding new ./src/generators/jetstream/generate-tsconfig-json.ts
oberocks Aug 3, 2023
32ea67b
adding new ./src/generators/jetstream/resources/js/generate-vite-tsx-…
oberocks Aug 3, 2023
3624525
adding new ./src/generators/jetstream/generate-vite-window-d-ts.ts
oberocks Aug 3, 2023
b54a311
updating installTsconfigJson.ts to use generate-tsconfig-json.js
oberocks Aug 3, 2023
3ceb724
updating installViteTsxDts.ts to use generate-vite-tsx-d-ts.js
oberocks Aug 3, 2023
fd0a377
updating installViteWindowDts.ts to use generate-vite-window-d-ts.js
oberocks Aug 3, 2023
6073ef6
removing ./src/generators/jetstream/generateViteTsxDts.ts
oberocks Aug 3, 2023
2613813
removing ./src/generators/jetstream/generateViteWindowDts.ts
oberocks Aug 3, 2023
f92d0cb
adding new ./tests/generators/jetstream/generate-gitignore.test.ts
oberocks Aug 3, 2023
1e9fa73
adding new ./tests/generators/jetstream/generate-tailwind-config-ts.t…
oberocks Aug 3, 2023
4419f71
adding new ./tests/generators/jetstream/generate-vite-config-ts.test.ts
oberocks Aug 3, 2023
ab68b39
adding new ./src/generators/jetstream/generate-gitignore.ts
oberocks Aug 3, 2023
544b9e5
adding new ./src/generators/jetstream/generate-tailwind-config-ts.ts
oberocks Aug 3, 2023
151ee0d
adding new ./src/generators/jetstream/generate-vite-config-ts.ts
oberocks Aug 3, 2023
35a8171
switching imported helpers over to new kebob case files
oberocks Aug 3, 2023
0472d62
improving test coverage for ./tests/helpers/run.test.ts
oberocks Aug 3, 2023
923946f
improving test coverage for ./tests/helpers/update-when-file-exists.t…
oberocks Aug 3, 2023
bea97a2
removing ./src/generators/jetstream/generateGitignore.ts
oberocks Aug 3, 2023
1206540
removing ./src/generators/jetstream/generateTailwindConfigTs.ts
oberocks Aug 3, 2023
faa88c1
removing ./src/generators/jetstream/generateViteConfigTs.ts
oberocks Aug 3, 2023
4a13973
generated fresh dist files to test build
oberocks Aug 3, 2023
c400147
0.2.2
oberocks Aug 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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/generate-gitignore.js.map

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

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

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

6 changes: 6 additions & 0 deletions dist/generators/jetstream/generate-tsconfig-json.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/generate-tsconfig-json.js.map

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

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/generate-vite-config-ts.js.map

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

1 change: 0 additions & 1 deletion dist/generators/jetstream/generateGitignore.js.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/generators/jetstream/generateTailwindConfigTs.js.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/generators/jetstream/generateViteConfigTs.js.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/generators/jetstream/generateViteTsxDts.js.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/generators/jetstream/generateViteWindowDts.js.map

This file was deleted.

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

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

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function (): string;

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

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

2 changes: 1 addition & 1 deletion dist/installers/jetstream/installTailwindConfigTs.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/installers/jetstream/installTailwindConfigTs.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 dist/installers/jetstream/installTsconfigJson.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/installers/jetstream/installTsconfigJson.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/installers/jetstream/installViteConfigTs.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/installers/jetstream/installViteConfigTs.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/installers/jetstream/installViteTsxDts.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/installers/jetstream/installViteTsxDts.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/installers/jetstream/installViteWindowDts.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/installers/jetstream/installViteWindowDts.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/updaters/jetstream/updateGitignore.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/updaters/jetstream/updateGitignore.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.2.1",
"version": "0.2.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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ./src/generators/jetstream/generateGitignore.ts
// ./src/generators/jetstream/generate-gitignore.ts

import viltDsDeveloperGitignore from '../../data/gitignore/vilt-ds-developer-gitignore.js'
import viltDsMacGitignore from '../../data/gitignore/vilt-ds-mac-gitignore.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ./src/generators/jetstream/generateTailwindConfigTs.ts
// ./src/generators/jetstream/generate-tailwind-config-ts.ts

export default function (): string {

Expand Down
9 changes: 9 additions & 0 deletions src/generators/jetstream/generate-tsconfig-json.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// ./src/generators/jetstream/generate-tsconfig-json.ts

import viltDsTypescriptConfig from '../../data/typescript/vilt-ds-typescript-config.js'

export default function (): string {

return JSON.stringify(viltDsTypescriptConfig, null, 4)

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ./src/generators/jetstream/generateViteConfigTs.ts
// ./src/generators/jetstream/generate-vite-config-ts.ts

export default function (): string {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ./src/generators/jetstream/generateViteTsxDts.ts
// ./src/generators/jetstream/resources/js/generate-vite-tsx-d-ts.ts

export default function (): string {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ./src/generators/jetstream/generateViteWindowDts.ts
// ./src/generators/jetstream/generate-vite-window-d-ts.ts

export default function (): string {

Expand Down
2 changes: 1 addition & 1 deletion src/installers/jetstream/installTailwindConfigTs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import installWhenNoFile from '../../helpers/install-when-no-file.js'

import generateTailwindConfigTs from '../../generators/jetstream/generateTailwindConfigTs.js'
import generateTailwindConfigTs from '../../generators/jetstream/generate-tailwind-config-ts.js'

export default function (): void {

Expand Down
4 changes: 2 additions & 2 deletions src/installers/jetstream/installTsconfigJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import installWhenNoFile from '../../helpers/install-when-no-file.js'

import viltDsTypescriptConfig from '../../data/typescript/vilt-ds-typescript-config.js'
import generateTsconfigJson from '../../generators/jetstream/generate-tsconfig-json.js'

export default function (): void {

installWhenNoFile( '/', 'tsconfig.json', JSON.stringify(viltDsTypescriptConfig, null, 4) )
installWhenNoFile( '/', 'tsconfig.json', generateTsconfigJson() )

}
2 changes: 1 addition & 1 deletion src/installers/jetstream/installViteConfigTs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import installWhenNoFile from '../../helpers/install-when-no-file.js'

import generateViteConfigTs from '../../generators/jetstream/generateViteConfigTs.js'
import generateViteConfigTs from '../../generators/jetstream/generate-vite-config-ts.js'

export default function (): void {

Expand Down
2 changes: 1 addition & 1 deletion src/installers/jetstream/installViteTsxDts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import installWhenNoFile from '../../helpers/install-when-no-file.js'

import generateViteTsxDts from '../../generators/jetstream/generateViteTsxDts.js'
import generateViteTsxDts from '../../generators/jetstream/resources/js/generate-vite-tsx-d-ts.js'

export default function (): void {

Expand Down
2 changes: 1 addition & 1 deletion src/installers/jetstream/installViteWindowDts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import installWhenNoFile from '../../helpers/install-when-no-file.js'

import generateViteWindowDts from '../../generators/jetstream/generateViteWindowDts.js'
import generateViteWindowDts from '../../generators/jetstream/resources/js/generate-vite-window-d-ts.js'

export default function (): void {

Expand Down
2 changes: 1 addition & 1 deletion src/updaters/jetstream/updateGitignore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import fs from 'fs-extra'

import generateGitignore from '../../generators/jetstream/generateGitignore.js'
import generateGitignore from '../../generators/jetstream/generate-gitignore.js'

import cliSuccessMessage from '../../helpers/cli-success-message.js'
import cliWarningMessage from '../../helpers/cli-warning-message.js'
Expand Down
20 changes: 20 additions & 0 deletions tests/generators/jetstream/generate-gitignore.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// ./tests/generators/jetstream/generate-gitignore.test.ts

import { describe, expect, test } from '@jest/globals'
import generateGitignore from '../../../src/generators/jetstream/generate-gitignore'

describe('./src/generators/jetstream/vscode/generate-gitignore.test module', () => {

test('module can be imported and a value can be accessed successfully', () => {

expect(generateGitignore).toBeTruthy()

})

test('module default value is a valid string', () => {

expect(typeof generateGitignore('# some gitignore text to insert') === 'string').toBe(true)

})

})
20 changes: 20 additions & 0 deletions tests/generators/jetstream/generate-tailwind-config-ts.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// ./tests/generators/jetstream/generate-tailwind-config-ts.test.ts

import { describe, expect, test } from '@jest/globals'
import generateTailwindConfigTs from '../../../src/generators/jetstream/generate-tailwind-config-ts'

describe('./src/generators/jetstream/vscode/generate-tailwind-config-ts.test module', () => {

test('module can be imported and a value can be accessed successfully', () => {

expect(generateTailwindConfigTs).toBeTruthy()

})

test('module default value is a valid string', () => {

expect(typeof generateTailwindConfigTs() === 'string').toBe(true)

})

})
Loading