Skip to content

Commit f60e9f7

Browse files
ember-tomsterNullVoxPopuli
authored andcommitted
Initial Commit from Ember CLI v6.5.0
_..., ,:^;,...; -+===;. ,,--++====++-,,, .: /....., :::::~+++++#:,+#++++++++++++++++++#*..: /,...... (,,,,,,::=+++##++++++++++++++++++++++#. :....../ ...,,,,,::++++++++++++++++++++++++++++++*..,...: *..+...,#@@@@@@@@@++++++++++++++++++++++#*....* @#,;##############@@@+*+#@@@@@@@@@@#*++#..< *@##@@+,-*^^^*-+@####@@@######@@@#####@@,,,+ @#@* @#@@@@#@@+--*^^*--#@@@@@@# @#@. @# @##+++@#, .@@#@@ #@# @@ +@@++++#@@ @@ :@@ :@#* @#@++++++@#* #@ @@+ :*+@@#;,.__.+@#@+,-^^.++@# @@++ ;* :*@@@##@@@@;++r._j^.+@##@+,.__,,@@++. /* ........+++++++++++++#@@@@@###@@#++++, ,: ...,@@@#++===----==@@@####,,....+++++ .: ......@@##@\ ; :@####@,,...... +++. ; .........@###, ; ;xx#@;,,..... *;+, | ........,*;xxxx--^--=xxx,........ :+#; ; ......,,;xxxxxxxxxxxxx;,..... *+# ; ......,::xxxx;. ...... +. . *; ......... +### .... / ,. /:| ,. .+: ... ;##++##, . ,#. (..v..;*./ ** ## ###* .:*&&&+. \.,....<, #&+**==-..,,__ ;## ### :,*+&&&&&&&v+#&,,.._/ #&&&&*...,::,,. ##; ,##* .*****;:&&&&&&&&& ,+*+;~*..*** *.* ### ###* ******* *+#&;* ##,;## **** :, ** ##### ## ### ###, ######## .##### ;## ## ####### ;## #### ,###. ########## ######## ### #### ### ### ### ########## #### #### ,## ### #######* ### ,### ##############: ## ### #### ,## :#### ### ##; ########## ########### ## .## ,### ####### ##### :###### ###### .###### #### ## ### ### ######* :##### #### ############# #### ################ ######## ### #####* *#* #: :### *###* *#### #*
0 parents  commit f60e9f7

29 files changed

Lines changed: 13006 additions & 0 deletions

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
indent_style = space
13+
indent_size = 2
14+
15+
[*.hbs]
16+
insert_final_newline = false
17+
18+
[*.{diff,md}]
19+
trim_trailing_whitespace = false

.env.development

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file is committed to git and should not contain any secrets.
2+
#
3+
# Vite recommends using .env.local or .env.[mode].local if you need to manage secrets
4+
# SEE: https://vite.dev/guide/env-and-mode.html#env-files for more information.
5+
6+
7+
# Default NODE_ENV with vite build --mode=test is production
8+
NODE_ENV=development

.github/workflows/ci.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request: {}
9+
10+
concurrency:
11+
group: ci-${{ github.head_ref || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
lint:
16+
name: "Lints"
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: pnpm/action-setup@v4
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 18
26+
cache: pnpm
27+
- name: Install Dependencies
28+
run: pnpm install --frozen-lockfile
29+
- name: Lint
30+
run: pnpm lint
31+
32+
test:
33+
name: "Tests"
34+
runs-on: ubuntu-latest
35+
timeout-minutes: 10
36+
outputs:
37+
matrix: ${{ steps.set-matrix.outputs.matrix }}
38+
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: pnpm/action-setup@v4
42+
- uses: actions/setup-node@v4
43+
with:
44+
node-version: 18
45+
cache: pnpm
46+
- name: Install Dependencies
47+
run: pnpm install --frozen-lockfile
48+
- name: Run Tests
49+
run: pnpm test
50+
# For the Try Scenarios
51+
- id: set-matrix
52+
run: |
53+
echo "matrix=$(pnpm -s dlx @embroider/try list)" >> $GITHUB_OUTPUT
54+
55+
56+
floating:
57+
name: "Floating Dependencies"
58+
runs-on: ubuntu-latest
59+
timeout-minutes: 10
60+
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: pnpm/action-setup@v4
64+
- uses: actions/setup-node@v4
65+
with:
66+
node-version: 18
67+
cache: pnpm
68+
- name: Install Dependencies
69+
run: pnpm install --no-lockfile
70+
- name: Run Tests
71+
run: pnpm test
72+
73+
try-scenarios:
74+
name: ${{ matrix.name }}
75+
runs-on: ubuntu-latest
76+
needs: "test"
77+
timeout-minutes: 10
78+
strategy:
79+
fail-fast: false
80+
matrix: ${{fromJson(needs.test.outputs.matrix)}}
81+
82+
steps:
83+
- uses: actions/checkout@v4
84+
- uses: pnpm/action-setup@v4
85+
- uses: actions/setup-node@v4
86+
with:
87+
node-version: 18
88+
cache: pnpm
89+
- name: Apply Scenario
90+
run: |
91+
pnpm dlx @embroider/try apply ${{ matrix.name }}
92+
93+
- name: Install Dependencies
94+
run: pnpm install --no-lockfile
95+
- name: Run Tests
96+
run: |
97+
pnpm test
98+
99+
env: ${{ matrix.env }}

.github/workflows/push-dist.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Because this library needs to be built,
2+
# we can't easily point package.json files at the git repo for easy cross-repo testing.
3+
#
4+
# This workflow brings back that capability by placing the compiled assets on a "dist" branch
5+
# (configurable via the "branch" option below)
6+
name: Push dist
7+
8+
on:
9+
push:
10+
branches:
11+
- main
12+
- master
13+
14+
jobs:
15+
push-dist:
16+
name: Push dist
17+
permissions:
18+
contents: write
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 10
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: pnpm/action-setup@v4
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 18
28+
cache: pnpm
29+
- name: Install Dependencies
30+
run: pnpm install --frozen-lockfile
31+
- uses: kategengler/[email protected]
32+
with:
33+
branch: dist
34+
token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# compiled output
2+
dist/
3+
dist-tests/
4+
declarations/
5+
6+
# from scenarios
7+
tmp/
8+
config/optional-features.json
9+
ember-cli-build.js
10+
11+
# npm/pnpm/yarn pack output
12+
*.tgz
13+
14+
# deps & caches
15+
node_modules/
16+
.eslintcache
17+
.prettiercache

.prettierignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# unconventional js
2+
/blueprints/*/files/
3+
4+
# compiled output
5+
/dist/
6+
/dist-*/
7+
/declarations/
8+
9+
# misc
10+
/coverage/
11+
pnpm-lock.yaml
12+
config/ember-cli-update.json
13+
*.yaml
14+
*.yml
15+
*.md
16+
*.html

.prettierrc.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict';
2+
3+
module.exports = {
4+
plugins: ['prettier-plugin-ember-template-tag'],
5+
overrides: [
6+
{
7+
files: '*.{js,gjs,ts,gts,mjs,mts,cjs,cts}',
8+
options: {
9+
singleQuote: true,
10+
templateSingleQuote: false,
11+
},
12+
},
13+
],
14+
};

.template-lintrc.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict';
2+
3+
module.exports = {
4+
extends: 'recommended',
5+
checkHbsTemplateLiterals: false,
6+
};

.try.mjs

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
// When building your addon for older Ember versions you need to have the required files
2+
const compatFiles = {
3+
'ember-cli-build.js': `const EmberApp = require('ember-cli/lib/broccoli/ember-app');
4+
const { compatBuild } = require('@embroider/compat');
5+
module.exports = async function (defaults) {
6+
const { buildOnce } = await import('@embroider/vite');
7+
let app = new EmberApp(defaults);
8+
return compatBuild(app, buildOnce);
9+
};`,
10+
'config/optional-features.json': JSON.stringify({
11+
'application-template-wrapper': false,
12+
'default-async-observers': true,
13+
'jquery-integration': false,
14+
'template-only-glimmer-components': true,
15+
'no-implicit-route-model': true,
16+
}),
17+
};
18+
19+
const compatDeps = {
20+
'@embroider/compat': '^4.0.3',
21+
'ember-cli': '^5.12.0',
22+
'ember-auto-import': '^2.10.0',
23+
'@ember/optional-features': '^2.2.0',
24+
};
25+
26+
export default {
27+
scenarios: [
28+
{
29+
name: 'ember-lts-5.8',
30+
npm: {
31+
devDependencies: {
32+
'ember-source': '~5.8.0',
33+
...compatDeps,
34+
},
35+
},
36+
env: {
37+
ENABLE_COMPAT_BUILD: true,
38+
},
39+
files: compatFiles,
40+
},
41+
{
42+
name: 'ember-lts-5.12',
43+
npm: {
44+
devDependencies: {
45+
'ember-source': '~5.12.0',
46+
...compatDeps,
47+
},
48+
},
49+
env: {
50+
ENABLE_COMPAT_BUILD: true,
51+
},
52+
files: compatFiles,
53+
},
54+
{
55+
name: `ember-lts-6.4`,
56+
npm: {
57+
devDependencies: {
58+
'ember-source': `npm:ember-source@~6.4.0`,
59+
},
60+
},
61+
},
62+
{
63+
name: `ember-latest`,
64+
npm: {
65+
devDependencies: {
66+
'ember-source': `npm:ember-source@latest`,
67+
},
68+
},
69+
},
70+
{
71+
name: `ember-beta`,
72+
npm: {
73+
devDependencies: {
74+
'ember-source': `npm:ember-source@beta`,
75+
},
76+
},
77+
},
78+
{
79+
name: `ember-alpha`,
80+
npm: {
81+
devDependencies: {
82+
'ember-source': `npm:ember-source@alpha`,
83+
},
84+
},
85+
},
86+
],
87+
};

CONTRIBUTING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# How To Contribute
2+
3+
## Installation
4+
5+
- `git clone <repository-url>`
6+
- `cd ember-strict-resolver`
7+
- `pnpm install`
8+
9+
## Linting
10+
11+
- `pnpm lint`
12+
- `pnpm lint:fix`
13+
14+
## Building the addon
15+
16+
- `pnpm build`
17+
18+
## Running tests
19+
20+
- `pnpm test` – Runs the test suite on the current Ember version
21+
- `pnpm test:watch` – Runs the test suite in "watch mode"
22+
23+
## Running the test application
24+
25+
- `pnpm start`
26+
- Visit the test application at [http://localhost:4200](http://localhost:4200).
27+
28+
For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).

0 commit comments

Comments
 (0)