Skip to content

Commit 23f36cc

Browse files
committed
support wsl symlinks
0 parents  commit 23f36cc

27 files changed

+1328
-0
lines changed

.github/ISSUE_TEMPLATE.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
### Description
2+
3+
<!--
4+
[Description of the issue]
5+
-->
6+
7+
### Steps to Reproduce
8+
9+
<!--
10+
Please add a series of steps to reproduce the problem. See https://stackoverflow.com/help/mcve for in depth information
11+
on how to create a minimal, complete, and verifiable example.
12+
-->
13+
14+
**Expected behavior:** [What you expect to happen]
15+
16+
**Actual behavior:** [What actually happens]
17+
18+
**Reproduces how often:** [What percentage of the time does it reproduce?]
19+
20+
### Versions
21+
22+
<!-- If applicable, please specify: -->
23+
24+
- The first two lines of the `Help` -> `About` output:
25+
26+
<!--
27+
Example:
28+
IntelliJ IDEA 2018.2.4 (Ultimate Edition)
29+
Build #IU-182.4505.22, built on September 18, 2018
30+
-->
31+
32+
- The version of `intellij-emberjs` (`Settings` -> `Plugins` -> `Ember.js`):
33+
34+
<!--
35+
Example:
36+
2018.2.4-0
37+
-->
38+
39+
### Additional Information
40+
41+
<!--
42+
Any additional information, configuration or data that might be necessary to reproduce the issue.
43+
-->

.github/renovate.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"extends": [
3+
"config:base",
4+
":automergePatch",
5+
":dependencyDashboard",
6+
":maintainLockFilesWeekly",
7+
":pinDependencies",
8+
":prConcurrentLimitNone",
9+
":prHourlyLimitNone",
10+
":semanticCommitsDisabled"
11+
],
12+
"packageRules": [
13+
{
14+
"matchCurrentVersion": ">= 1.0.0",
15+
"updateTypes": ["minor"],
16+
"automerge": true
17+
},
18+
{
19+
"depTypeList": ["devDependencies"],
20+
"automerge": true
21+
}
22+
]
23+
}

.github/workflows/ci.yml

+171
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch: {}
5+
push:
6+
branches:
7+
- main
8+
- 'v*'
9+
pull_request: {}
10+
schedule:
11+
- cron: '0 3 * * *' # daily, at 3am
12+
13+
jobs:
14+
test:
15+
name: Tests
16+
runs-on: ${{ matrix.os }}
17+
18+
strategy:
19+
matrix:
20+
os: [ubuntu-latest, windows-latest]
21+
22+
steps:
23+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
24+
with:
25+
submodules: true
26+
27+
token: ${{ github.token }}
28+
29+
- uses: actions/setup-java@v4.2.0
30+
with:
31+
java-version: '17'
32+
distribution: 'zulu'
33+
34+
- uses: actions/cache@v4
35+
with:
36+
path: ~/.gradle/caches
37+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
38+
restore-keys: |
39+
${{ runner.os }}-gradle-
40+
41+
- run: chmod +x ./gradlew
42+
- run: ./gradlew assemble
43+
- run: ./gradlew check
44+
release:
45+
name: Update Changelog, Create Tag and Release
46+
runs-on: ubuntu-latest
47+
needs: test
48+
if: github.ref == 'refs/heads/main'
49+
steps:
50+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
51+
with:
52+
submodules: true
53+
fetch-depth: 0
54+
token: ${{ github.token }}
55+
- name: Use Node.js 18
56+
uses: actions/setup-node@v4
57+
with:
58+
node-version: 18
59+
- run: sudo apt-get install markdown -y
60+
- uses: actions/setup-java@v4.2.0
61+
with:
62+
java-version: '17'
63+
distribution: 'zulu'
64+
65+
- name: verify tag exists
66+
id: tag-exists
67+
run: |
68+
version=$(sh ./gradlew -q printVersion)
69+
TAG=v$version
70+
if git rev-parse "$TAG" >/dev/null 2>&1; then
71+
echo "tag exists";
72+
echo "exists=true" >> "$GITHUB_OUTPUT"
73+
else
74+
echo "exists=false" >> "$GITHUB_OUTPUT"
75+
fi
76+
- name: verify release already published
77+
id: already-published
78+
run: |
79+
version=$(sh ./gradlew -q printVersion)
80+
released=$(echo "$version" | sh ./gradlew verifyAlreadyReleased -q)
81+
echo "exists=$released" >> "$GITHUB_OUTPUT"
82+
- name: create changelog
83+
id: changelog
84+
env:
85+
TAG_EXISTS: ${{ steps.tag-exists.outputs.exists }}
86+
GITHUB_AUTH: ${{ github.token }}
87+
GITHUB_REPO: ${{ github.repository }}
88+
run: |
89+
version=$(sh ./gradlew -q printVersion)
90+
TAG=v$version
91+
if [[ "$TAG_EXISTS" == "true" ]]; then
92+
from=$(git tag --sort=-creatordate | grep -A 1 $TAG | tail -n 1)
93+
changelog=$(npx lerna-changelog --repo $GITHUB_REPO --from="$from" --to="$TAG")
94+
echo "$changelog" > new_changelog.txt
95+
else
96+
changelog=$(npx lerna-changelog --repo $GITHUB_REPO --next-version=$TAG)
97+
echo "$changelog" > new_changelog.txt
98+
fi
99+
echo "$changelog"
100+
echo "::debug::changelog $changelog"
101+
102+
103+
104+
html=$(echo "$changelog" | markdown)
105+
echo "html: $html"
106+
echo "::debug::html $html"
107+
108+
- name: create tag
109+
id: tag
110+
if: steps.tag-exists.outputs.exists == 'false'
111+
env:
112+
GITHUB_TOKEN: ${{ github.token }}
113+
GITHUB_ACTOR: ${{ github.actor }}
114+
GITHUB_COMMIT: ${{ github.sha }}
115+
GITHUB_REPO: ${{ github.repository }}
116+
117+
run: |
118+
set -e
119+
CHANGELOG=$(cat new_changelog.txt)
120+
echo "$CHANGELOG"
121+
version=$(sh ./gradlew -q printVersion)
122+
TAG=v$version
123+
echo -e "# Changelog\n\n$CHANGELOG\n$(tail --lines=+2 CHANGELOG.md)" > CHANGELOG.md
124+
git add CHANGELOG.md
125+
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
126+
git config --local user.name "$GITHUB_ACTOR"
127+
git commit -m "update changelog"
128+
git tag $TAG
129+
git fetch --all
130+
git rebase origin/main
131+
git push
132+
git push --tags
133+
echo "tag=created" >> "$GITHUB_OUTPUT"
134+
- if: (steps.tag.outputs.tag == 'created' || steps.tag-exists.outputs.exists == 'true') && steps.already-published.outputs.exists == 'false'
135+
env:
136+
ORG_GRADLE_PROJECT_intellijPublishToken: ${{ secrets.ORG_GRADLE_PROJECT_intellijPublishToken }}
137+
138+
run: |
139+
chmod +x ./gradlew
140+
CHANGELOG=$(cat new_changelog.txt | markdown)
141+
echo "$CHANGELOG" | sh ./gradlew updateChangelog
142+
./gradlew buildPlugin
143+
./gradlew publishPlugin
144+
145+
upload:
146+
name: Upload
147+
runs-on: ubuntu-latest
148+
needs: test
149+
steps:
150+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
151+
with:
152+
submodules: true
153+
154+
- uses: actions/setup-java@v4
155+
with:
156+
java-version: '17'
157+
distribution: 'zulu'
158+
159+
- uses: actions/cache@v4
160+
with:
161+
path: ~/.gradle/caches
162+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
163+
restore-keys: |
164+
${{ runner.os }}-gradle-
165+
- run: chmod +x ./gradlew
166+
- run: ./gradlew buildPlugin && ls ./build/distributions
167+
- uses: actions/upload-artifact@v4
168+
with:
169+
name: WslSymlinks.zip
170+
path: ./build/distributions/WslSymlinks.js-*.zip
171+

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*
2+
!.github
3+
!.github/**/*
4+
!src
5+
!src/**/*
6+
!.gitmodules
7+
!build.gradle.kts
8+
!CHANGELOG.md
9+
!gradle.properties
10+
!gradlew
11+
!gradlew.bat
12+
!LICENSE
13+
!README.md
14+
!settings.gradle

.gitmodules

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "src/test/resources/com/emberjs/fixtures/crates.io"]
2+
path = src/test/resources/com/emberjs/fixtures/crates.io
3+
url = https://github.com/rust-lang/crates.io.git
4+
[submodule "src/test/resources/com/emberjs/fixtures/dashboard.aptible.com"]
5+
path = src/test/resources/com/emberjs/fixtures/dashboard.aptible.com
6+
url = https://github.com/aptible/dashboard.aptible.com.git

.idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLibraryMappings.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Changelog

0 commit comments

Comments
 (0)