Skip to content

Commit 88e2951

Browse files
committed
Initial Release
Initial release of the Vite Helpers for ColdBox. For use with Vite and coldbox-vite-plugin. BREAKING CHANGE: Initial Release
0 parents  commit 88e2951

Some content is hidden

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

71 files changed

+2838
-0
lines changed

.cfformat.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"array.empty_padding": false,
3+
"array.padding": true,
4+
"array.multiline.min_length": 40,
5+
"array.multiline.element_count": 2,
6+
"array.multiline.leading_comma.padding": true,
7+
"array.multiline.leading_comma": false,
8+
"alignment.consecutive.assignments": true,
9+
"alignment.consecutive.properties": true,
10+
"alignment.consecutive.params": true,
11+
"brackets.padding": true,
12+
"comment.asterisks": "align",
13+
"binary_operators.padding": true,
14+
"for_loop_semicolons.padding": true,
15+
"function_call.empty_padding": false,
16+
"function_call.padding": true,
17+
"function_call.multiline.leading_comma.padding": true,
18+
"function_call.casing.builtin": "cfdocs",
19+
"function_call.casing.userdefined": "camel",
20+
"function_call.multiline.element_count": 3,
21+
"function_call.multiline.leading_comma": false,
22+
"function_call.multiline.min_length": 40,
23+
"function_declaration.padding": true,
24+
"function_declaration.empty_padding": false,
25+
"function_declaration.multiline.leading_comma": false,
26+
"function_declaration.multiline.leading_comma.padding": true,
27+
"function_declaration.multiline.element_count": 3,
28+
"function_declaration.multiline.min_length": 40,
29+
"function_declaration.group_to_block_spacing": "spaced",
30+
"function_anonymous.empty_padding": false,
31+
"function_anonymous.group_to_block_spacing": "spaced",
32+
"function_anonymous.multiline.element_count": 3,
33+
"function_anonymous.multiline.leading_comma": false,
34+
"function_anonymous.multiline.leading_comma.padding": true,
35+
"function_anonymous.multiline.min_length": 40,
36+
"function_anonymous.padding": true,
37+
"indent_size": 4,
38+
"keywords.block_to_keyword_spacing": "spaced",
39+
"keywords.group_to_block_spacing": "spaced",
40+
"keywords.padding_inside_group": true,
41+
"keywords.spacing_to_block": "spaced",
42+
"keywords.spacing_to_group": true,
43+
"keywords.empty_group_spacing": false,
44+
"max_columns": 120,
45+
"metadata.multiline.element_count": 3,
46+
"metadata.multiline.min_length": 40,
47+
"newline": "\n",
48+
"property.multiline.element_count": 3,
49+
"property.multiline.min_length": 40,
50+
"parentheses.padding": true,
51+
"strings.quote": "double",
52+
"strings.convertNestedQuotes": false,
53+
"strings.attributes.quote": "double",
54+
"struct.separator": " : ",
55+
"struct.padding": true,
56+
"struct.empty_padding": false,
57+
"struct.multiline.leading_comma": false,
58+
"struct.multiline.leading_comma.padding": true,
59+
"struct.multiline.element_count": 2,
60+
"struct.multiline.min_length": 40,
61+
"tab_indent": true
62+
}

.github/workflows/cron.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Cron
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * 1
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
name: Tests
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
cfengine: ["lucee@5", "lucee@be", "adobe@2018", "adobe@2021", "adobe@2023", "adobe@be"]
15+
coldbox: ["coldbox@6", "coldbox@7", "coldbox@be"]
16+
javaVersion: ["openjdk8", "openjdk11"]
17+
steps:
18+
- name: Checkout Repository
19+
uses: actions/checkout@v2
20+
21+
- name: Setup Java JDK
22+
uses: actions/[email protected]
23+
with:
24+
java-version: 11
25+
26+
- name: Set Up CommandBox
27+
uses: elpete/[email protected]
28+
29+
- name: Install dependencies
30+
run: |
31+
box install
32+
box install ${{ matrix.coldbox }} --noSave
33+
34+
- name: Start server
35+
run: box server start cfengine=${{ matrix.cfengine }} javaVersion=${{ matrix.javaVersion }} --noSaveSettings
36+
37+
- name: Run TestBox Tests
38+
run: box testbox run

.github/workflows/pr.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: PRs and Branches
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- "main"
7+
- "master"
8+
- "development"
9+
pull_request:
10+
branches:
11+
- main
12+
- master
13+
- development
14+
15+
jobs:
16+
#############################################
17+
# Tests First baby! We fail, no build :(
18+
#############################################
19+
tests:
20+
uses: ./.github/workflows/tests.yml
21+
22+
format:
23+
runs-on: ubuntu-latest
24+
name: Format
25+
steps:
26+
- name: Checkout Repository
27+
uses: actions/checkout@v2
28+
29+
- name: Setup Java JDK
30+
uses: actions/[email protected]
31+
with:
32+
java-version: 11
33+
34+
- name: Set Up CommandBox
35+
uses: elpete/[email protected]
36+
37+
- name: Install CFFormat
38+
run: box install commandbox-cfformat
39+
40+
- name: Run CFFormat
41+
run: box run-script format
42+
43+
- name: Commit Format Changes
44+
uses: stefanzweifel/git-auto-commit-action@v4
45+
with:
46+
commit_message: Apply cfformat changes

.github/workflows/prerelease.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Prerelease
2+
3+
on:
4+
push:
5+
branches:
6+
- development
7+
8+
jobs:
9+
tests:
10+
uses: ./.github/workflows/tests.yml
11+
# release:
12+
# name: Semantic Release
13+
# if: "!contains(github.event.head_commit.message, '__SEMANTIC RELEASE VERSION UPDATE__')"
14+
# needs: tests
15+
# runs-on: ubuntu-latest
16+
# env:
17+
# GA_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
18+
# steps:
19+
# - name: Checkout Repository
20+
# uses: actions/checkout@v2
21+
# with:
22+
# fetch-depth: 0
23+
24+
# - name: Setup Java JDK
25+
# uses: actions/[email protected]
26+
# with:
27+
# java-version: 11
28+
29+
# - name: Set Up CommandBox
30+
# uses: elpete/[email protected]
31+
32+
# - name: Install and Configure Semantic Release
33+
# run: |
34+
# box install commandbox-semantic-release
35+
# box config set endpoints.forgebox.APIToken=${{ secrets.FORGEBOX_TOKEN }}
36+
# box config set modules.commandbox-semantic-release.plugins='{ "VerifyConditions": "GitHubActionsConditionsVerifier@commandbox-semantic-release", "FetchLastRelease": "ForgeBoxReleaseFetcher@commandbox-semantic-release", "RetrieveCommits": "JGitCommitsRetriever@commandbox-semantic-release", "ParseCommit": "ConventionalChangelogParser@commandbox-semantic-release", "FilterCommits": "DefaultCommitFilterer@commandbox-semantic-release", "AnalyzeCommits": "DefaultCommitAnalyzer@commandbox-semantic-release", "VerifyRelease": "NullReleaseVerifier@commandbox-semantic-release", "GenerateNotes": "GitHubMarkdownNotesGenerator@commandbox-semantic-release", "UpdateChangelog": "FileAppendChangelogUpdater@commandbox-semantic-release", "CommitArtifacts": "NullArtifactsCommitter@commandbox-semantic-release", "PublishRelease": "ForgeBoxReleasePublisher@commandbox-semantic-release", "PublicizeRelease": "GitHubReleasePublicizer@commandbox-semantic-release" }'
37+
38+
# - name: Run Semantic Release
39+
# env:
40+
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
# run: box semantic-release --prerelease

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
9+
jobs:
10+
tests:
11+
uses: ./.github/workflows/tests.yml
12+
13+
release:
14+
name: Semantic Release
15+
if: "!contains(github.event.head_commit.message, '__SEMANTIC RELEASE VERSION UPDATE__')"
16+
needs: tests
17+
runs-on: ubuntu-latest
18+
env:
19+
GA_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
20+
steps:
21+
- name: Checkout Repository
22+
uses: actions/checkout@v2
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Setup Java JDK
27+
uses: actions/[email protected]
28+
with:
29+
java-version: 11
30+
31+
- name: Set Up CommandBox
32+
uses: elpete/[email protected]
33+
34+
- name: Install and Configure Semantic Release
35+
run: |
36+
box install commandbox-semantic-release
37+
box config set endpoints.forgebox.APIToken=${{ secrets.FORGEBOX_TOKEN }}
38+
box config set modules.commandbox-semantic-release.targetBranch=main
39+
box config set modules.commandbox-semantic-release.plugins='{ "VerifyConditions": "GitHubActionsConditionsVerifier@commandbox-semantic-release", "FetchLastRelease": "ForgeBoxReleaseFetcher@commandbox-semantic-release", "RetrieveCommits": "JGitCommitsRetriever@commandbox-semantic-release", "ParseCommit": "ConventionalChangelogParser@commandbox-semantic-release", "FilterCommits": "DefaultCommitFilterer@commandbox-semantic-release", "AnalyzeCommits": "DefaultCommitAnalyzer@commandbox-semantic-release", "VerifyRelease": "NullReleaseVerifier@commandbox-semantic-release", "GenerateNotes": "GitHubMarkdownNotesGenerator@commandbox-semantic-release", "UpdateChangelog": "FileAppendChangelogUpdater@commandbox-semantic-release", "CommitArtifacts": "NullArtifactsCommitter@commandbox-semantic-release", "PublishRelease": "ForgeBoxReleasePublisher@commandbox-semantic-release", "PublicizeRelease": "GitHubReleasePublicizer@commandbox-semantic-release" }'
40+
41+
- name: Run Semantic Release
42+
env:
43+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
run: box semantic-release

.github/workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test Suites
2+
3+
# We are a reusable Workflow only
4+
on:
5+
workflow_call:
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
name: Tests
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
cfengine: ["lucee@5", "adobe@2018", "adobe@2021", "adobe@2023"]
15+
coldbox: ["coldbox@6", "coldbox@7"]
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v2
19+
20+
- name: Setup Java JDK
21+
uses: actions/[email protected]
22+
with:
23+
java-version: 11
24+
25+
- name: Set Up CommandBox
26+
uses: elpete/[email protected]
27+
28+
- name: Install dependencies
29+
run: |
30+
box install
31+
box install ${{ matrix.coldbox }} --noSave
32+
33+
- name: Start server
34+
run: box server start cfengine=${{ matrix.cfengine }} --noSaveSettings
35+
36+
- name: Run TestBox Tests
37+
run: box testbox run

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/testbox
2+
/tests/results
3+
/tests/resources/app/coldbox
4+
/node_modules
5+
/modules
6+
jmimemagic.log
7+
8+
.vscode

CHANGELOG.md

Whitespace-only changes.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Eric Peterson
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

ModuleConfig.cfc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
component {
2+
3+
this.name = "vite-helpers";
4+
this.author = "";
5+
this.webUrl = "https://github.com/coldbox-modules/vite-helpers";
6+
this.cfmapping = "vite-helpers";
7+
this.applicationHelper = [ "includes/helpers.cfm" ];
8+
9+
function configure() {
10+
}
11+
12+
}

0 commit comments

Comments
 (0)