Skip to content

Commit

Permalink
New tools: gulp, tailwindcss, webpack (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-newzoo committed Nov 3, 2023
1 parent 857e96c commit efe8cf8
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ plugins:
```

This repo is open to contributions! See our
[contribution guidelines](https://github.com/trunk-io/plugins/blob/main/contributing.md) and join
[contribution guidelines](https://github.com/trunk-io/plugins/blob/main/CONTRIBUTING.md) and join
our [slack community][slack] for help. **If you're adding new tools, please see our
[testing guide](tests/README.md) as well!**

Expand Down
12 changes: 12 additions & 0 deletions tools/gulp/gulp.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { makeToolTestConfig, toolTest } from "tests";

toolTest({
toolName: "gulp",
toolVersion: "4.0.2",
testConfigs: [
makeToolTestConfig({
command: ["gulp", "--version"],
expectedOut: "Local version: 4.0.2",
}),
],
});
9 changes: 9 additions & 0 deletions tools/gulp/plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 0.1
tools:
definitions:
- name: gulp
runtime: node
package: gulp
known_good_version: 4.0.2
shims:
- gulp
9 changes: 9 additions & 0 deletions tools/tailwindcss/plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 0.1
tools:
definitions:
- name: tailwindcss
runtime: node
package: tailwindcss
known_good_version: 3.3.5
shims:
- tailwindcss
12 changes: 12 additions & 0 deletions tools/tailwindcss/tailwindcss.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { makeToolTestConfig, toolTest } from "tests";

toolTest({
toolName: "tailwindcss",
toolVersion: "3.3.5",
testConfigs: [
makeToolTestConfig({
command: ["tailwindcss", "--help"],
expectedOut: "tailwindcss v3.3.5",
}),
],
});
11 changes: 11 additions & 0 deletions tools/webpack/plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 0.1
tools:
definitions:
- name: webpack
runtime: node
package: webpack
known_good_version: 5.89.0
shims:
- webpack
extra_packages:
- webpack-cli
12 changes: 12 additions & 0 deletions tools/webpack/webpack.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { makeToolTestConfig, toolTest } from "tests";

toolTest({
toolName: "webpack",
toolVersion: "5.89.0",
testConfigs: [
makeToolTestConfig({
command: ["webpack", "--version"],
expectedOut: "Binaries:",
}),
],
});

0 comments on commit efe8cf8

Please sign in to comment.