Skip to content

Commit 0778e33

Browse files
feat: version 1.0.0 (#20)
* feat: Add npm login resource * feat: Added initial changes to support linux * Updated tests to not have direct references to zsh * Updated android studio, aws-cli, aws-profile and homebrew to use the new pty + tests * Updated jenv + git * Updated python, ssh (partial), pgcli, shell, scripting, npm resources * Updated git, terraform, python, vscode, xcode-tools, git, files, actions and asdf * Updated asdf to support linux. Util changes * COnverted ssh-add, homebrew, aws-cli, asdf to linux * Add apt install and yum * Add dnf resource * Added snap * Switched asdf and file to zod schema * Switched to exported zod (fixes build issues) + added readMEs for testing * Added tart resource * Removed github CI * Fixed tests to use testSpawn. Fixed alias resource. * Fixed tests with resolve. Which don't actually throw during the test. Fixed path, macports and homebrew. * Added the ability to launch persistent vms (which cuts down all of the npm install and VM launch times) * A bunch of test fixes for linux and macOS. Also added linux testing to the persistent tests. Switched the linux tests over to tart instead of docker. * Fixed all tests for macOS * Fixed resources for linux (ubuntu) * Fixed snap * Fixed vscode * Changed git repositories to support multiple repositories at once * Added aliases resource (multiple aliases all at once) * Allow alias, path and git to declare multiple things at once (clean up the config file by alot) * chore: Updated package name from codify-plugin-lib to @codifycli/plugin-core * fix: Made declarationOnly optional for aliases resource. Made git installable * feat: Add README and CLAUDE.md. Fixes for aliases and git repositories resources * feat: replaced codify-schemas with @codifycli/schemas. Updated packages. * chore: package updates * chore: bumped package version to 1.0.0 * feat: Updated package description * chore: Replace codify-plugin-test with @codifycli/plugin-test * fix: Fix links in the README.md * chore: Update to latest plugin-core and plugin-test * feat: Added keywords * feat: Add github test only for one common resource. * fix: Fix test filter * chore: update README.md * fix: Fixes to the README.md * fix: Fix VSCode download link * fix: Fix example configs in the README.md
1 parent d9b9e2c commit 0778e33

File tree

159 files changed

+10549
-4521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+10549
-4521
lines changed

.cirrus.yml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,35 @@ run_dev_task:
1212
run_script:
1313
- sleep 2000
1414

15-
integration_test_dev_task:
15+
integration_test_dev_macos_task:
16+
timeout_in: 120m
1617
macos_instance:
1718
image: codify-test-vm
19+
cpu: 4
20+
memory: 6124
21+
storage: 100
1822
node_modules_cache:
1923
folder: node_modules
2024
fingerprint_script: cat package-lock.json
2125
populate_script: npm ci
2226
test_script:
27+
- zsh -i -c "npm run test:integration -- --disable-console-intercept $DEBUG --no-file-parallelism"
28+
29+
integration_test_dev_linux_task:
30+
# trick cirrus CI to use tart here to run a linux instance
31+
macos_instance:
32+
image: codify-test-vm-linux
33+
# node_modules_cache:
34+
# folder: node_modules
35+
# fingerprint_script: cat package-lock.json
36+
# populate_script: npm ci
37+
test_script:
38+
# - adduser --disabled-password --gecos '' newuser
39+
# - su - newuser
40+
- npm ci
2341
- npm run test:integration -- --disable-console-intercept $DEBUG --no-file-parallelism
2442

25-
integration_individual_test_task:
43+
integration_individual_test_macos_task:
2644
macos_instance:
2745
image: codify-test-vm
2846
node_modules_cache:
@@ -31,4 +49,19 @@ integration_individual_test_task:
3149
populate_script: npm ci
3250
test_script:
3351
- echo $FILE_NAME
52+
- zsh -i -c "npm run test -- $FILE_NAME --disable-console-intercept $DEBUG --no-file-parallelism"
53+
54+
integration_individual_test_linux_task:
55+
# trick cirrus CI to use tart here to run a linux instance
56+
macos_instance:
57+
image: codify-test-vm-linux
58+
# node_modules_cache:
59+
# folder: node_modules
60+
# fingerprint_script: cat package-lock.json
61+
# populate_script: npm ci
62+
test_script:
63+
# - chown -R node /tmp/cirrus-ci/working-dir
64+
# - su node -c "npm install"
65+
- echo $FILE_NAME
66+
- npm ci
3467
- npm run test -- $FILE_NAME --disable-console-intercept $DEBUG --no-file-parallelism

.github/dependabot.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'
7+
day: 'saturday'
8+
versioning-strategy: 'increase'
9+
labels:
10+
- 'dependencies'
11+
open-pull-requests-limit: 5
12+
pull-request-branch-name:
13+
separator: '-'
14+
commit-message:
15+
# cause a release for non-dev-deps
16+
prefix: fix(deps)
17+
# no release for dev-deps
18+
prefix-development: chore(dev-deps)
19+
ignore:
20+
- dependency-name: '@salesforce/dev-scripts'
21+
- dependency-name: '*'
22+
update-types: ['version-update:semver-major']

.github/workflows/ci.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on: ['push']
7+
8+
jobs:
9+
build-and-test:
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macos-latest]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Use Node.js 22
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '22.x'
22+
cache: 'npm'
23+
- run: npm ci
24+
- run: npm run test -- test/git/*.test.ts

.run/test_integration_dev -- $FilePathRelativeToProjectRoot$.run.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
<arguments value="-- $FilePathRelativeToProjectRoot$" />
99
<node-interpreter value="project" />
1010
<envs />
11+
<EXTENSION ID="com.intellij.javascript.debugger.execution.StartBrowserRunConfigurationExtension">
12+
<browser with-js-debugger="true" />
13+
</EXTENSION>
1114
<method v="2" />
1215
</configuration>
1316
</component>

.run/test_integration_dev.run.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
</scripts>
88
<node-interpreter value="project" />
99
<envs />
10+
<EXTENSION ID="com.intellij.javascript.debugger.execution.StartBrowserRunConfigurationExtension">
11+
<browser with-js-debugger="true" />
12+
</EXTENSION>
1013
<method v="2" />
1114
</configuration>
1215
</component>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="test:integration:dev:linux" type="js.build_tools.npm">
3+
<package-json value="$PROJECT_DIR$/package.json" />
4+
<command value="run" />
5+
<scripts>
6+
<script value="test:integration:dev" />
7+
</scripts>
8+
<arguments value="-- --operatingSystem=linux" />
9+
<node-interpreter value="project" />
10+
<envs />
11+
<EXTENSION ID="com.intellij.javascript.debugger.execution.StartBrowserRunConfigurationExtension">
12+
<browser with-js-debugger="true" />
13+
</EXTENSION>
14+
<method v="2" />
15+
</configuration>
16+
</component>

0 commit comments

Comments
 (0)