Skip to content

Commit 8ff9a1d

Browse files
committed
Migrate to embroider
1 parent 2f06065 commit 8ff9a1d

File tree

94 files changed

+5327
-5481
lines changed

Some content is hidden

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

94 files changed

+5327
-5481
lines changed

.ember-cli

-9
This file was deleted.

.eslintrc.js

-63
This file was deleted.
File renamed without changes.

.github/workflows/ci.yml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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+
test:
16+
name: "Tests"
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: pnpm/action-setup@v4
23+
with:
24+
version: 8
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+
- name: Lint
32+
run: pnpm lint
33+
- name: Run Tests
34+
run: pnpm test
35+
36+
floating:
37+
name: "Floating Dependencies"
38+
runs-on: ubuntu-latest
39+
timeout-minutes: 10
40+
41+
steps:
42+
- uses: actions/checkout@v4
43+
- uses: pnpm/action-setup@v4
44+
with:
45+
version: 8
46+
- uses: actions/setup-node@v4
47+
with:
48+
node-version: 18
49+
cache: pnpm
50+
- name: Install Dependencies
51+
run: pnpm install --no-lockfile
52+
- name: Run Tests
53+
run: pnpm test
54+
55+
try-scenarios:
56+
name: ${{ matrix.try-scenario }}
57+
runs-on: ubuntu-latest
58+
needs: 'test'
59+
timeout-minutes: 10
60+
61+
strategy:
62+
fail-fast: false
63+
matrix:
64+
try-scenario:
65+
- ember-lts-4.12
66+
- ember-lts-5.4
67+
- ember-release
68+
- ember-beta
69+
- ember-canary
70+
- embroider-safe
71+
- embroider-optimized
72+
73+
steps:
74+
- uses: actions/checkout@v4
75+
- uses: pnpm/action-setup@v4
76+
with:
77+
version: 8
78+
- uses: actions/setup-node@v4
79+
with:
80+
node-version: 18
81+
cache: pnpm
82+
- name: Install Dependencies
83+
run: pnpm install --frozen-lockfile
84+
- name: Run Tests
85+
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup
86+
working-directory: test-app

.github/workflows/push-dist.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: pnpm/action-setup@v4
23+
with:
24+
version: 8
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 }}
35+
working-directory: 'ember-cli-stripe'

.gitignore

+13-16
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

3-
# compiled output
4-
/dist/
5-
/tmp/
6-
73
# dependencies
8-
/bower_components/
9-
/node_modules/
4+
node_modules/
105

116
# misc
12-
/.env*
13-
/.pnp*
14-
/.sass-cache
15-
/connect.lock
16-
/coverage/
17-
/libpeerconnection.log
18-
/npm-debug.log*
19-
/testem.log
20-
/yarn-error.log
7+
.env*
8+
.pnp*
9+
.pnpm-debug.log
10+
.sass-cache
11+
.eslintcache
12+
coverage/
13+
npm-debug.log*
14+
yarn-error.log
2115

2216
# ember-try
2317
/.node_modules.ember-try/
24-
/bower.json.ember-try
2518
/package.json.ember-try
19+
/package-lock.json.ember-try
20+
/yarn.lock.ember-try
21+
/pnpm-lock.ember-try.yaml
22+

.npmignore

-35
This file was deleted.

.prettierignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Prettier is also run from each package, so the ignores here
2+
# protect against files that may not be within a package
3+
4+
# misc
5+
!.*
6+
.lint-todo/
7+
8+
# ember-try
9+
/.node_modules.ember-try/
10+
/pnpm-lock.ember-try.yaml

.prettierrc.cjs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict';
2+
3+
module.exports = {
4+
plugins: ['prettier-plugin-ember-template-tag'],
5+
singleQuote: true,
6+
};

.template-lintrc.js

-9
This file was deleted.

.watchmanconfig

-3
This file was deleted.

CONTRIBUTING.md

+18-13
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,30 @@
22

33
## Installation
44

5-
* `git clone <repository-url>`
6-
* `cd ember-cli-stripe`
7-
* `pnpm install`
5+
- `git clone <repository-url>`
6+
- `cd ember-cli-stripe`
7+
- `pnpm install`
88

99
## Linting
1010

11-
* `pnpm lint:hbs`
12-
* `pnpm lint:js`
13-
* `pnpm lint:js --fix`
11+
- `pnpm lint`
12+
- `pnpm lint:fix`
13+
14+
## Building the addon
15+
16+
- `cd ember-cli-stripe`
17+
- `pnpm build`
1418

1519
## Running tests
1620

17-
* `ember test` – Runs the test suite on the current Ember version
18-
* `ember test --server` – Runs the test suite in "watch mode"
19-
* `ember try:each` – Runs the test suite against multiple Ember versions
21+
- `cd test-app`
22+
- `pnpm test` – Runs the test suite on the current Ember version
23+
- `pnpm test:watch` – Runs the test suite in "watch mode"
2024

21-
## Running the dummy application
25+
## Running the test application
2226

23-
* `ember serve`
24-
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
27+
- `cd test-app`
28+
- `pnpm start`
29+
- Visit the test application at [http://localhost:4200](http://localhost:4200).
2530

26-
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
31+
For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019
3+
Copyright (c) 2025
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

0 commit comments

Comments
 (0)