diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5e487c11..9ee2a26a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,6 +34,12 @@ jobs: with: go-version: "1.22" + - name: Install Node dependencies + run: npm ci + + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - name: Build test cli run: | go mod vendor diff --git a/.gitignore b/.gitignore index 72cb00b8..bb8ae9de 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,6 @@ build/ # Ignore files generated by Jetbrains' IDEs .idea/ + +# Ignore node_modules +node_modules/ diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..a8e9743a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,79 @@ +{ + "name": "kana", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "kana", + "version": "1.0.0", + "license": "GPL-3.0", + "devDependencies": { + "@playwright/test": "^1.44.1" + } + }, + "node_modules/@playwright/test": { + "version": "1.44.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.44.1.tgz", + "integrity": "sha512-1hZ4TNvD5z9VuhNJ/walIjvMVvYkZKf71axoF/uiAqpntQJXpG64dlXhoDXE3OczPuTuvjf/M5KWFg5VAVUS3Q==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright": "1.44.1" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/playwright": { + "version": "1.44.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.44.1.tgz", + "integrity": "sha512-qr/0UJ5CFAtloI3avF95Y0L1xQo6r3LQArLIg/z/PoGJ6xa+EwzrwO5lpNr/09STxdHuUoP2mvuELJS+hLdtgg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright-core": "1.44.1" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=16" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, + "node_modules/playwright-core": { + "version": "1.44.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.44.1.tgz", + "integrity": "sha512-wh0JWtYTrhv1+OSsLPgFzGzt67Y7BE/ZS3jEqgGBlp2ppp1ZDj8c+9IARNW4dwf1poq5MgHreEM2KV/GuR4cFA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=16" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..f905de68 --- /dev/null +++ b/package.json @@ -0,0 +1,25 @@ +{ + "name": "kana", + "description": "A simple, portable CLI for efficient WordPress development ", + "repository": { + "type": "git", + "url": "git+https://github.com/ChrisWiegman/kana.git" + }, + "keywords": [ + "docker", + "wordpress", + "plugins", + "themes", + "developer-tools", + "development-environment" + ], + "author": "Chris Wiegman ", + "license": "GPL-3.0", + "bugs": { + "url": "https://github.com/ChrisWiegman/kana/issues" + }, + "homepage": "https://github.com/ChrisWiegman/kana#readme", + "devDependencies": { + "@playwright/test": "^1.44.1" + } +} \ No newline at end of file