Skip to content

Commit 16a5a0e

Browse files
authored
Merge pull request #425 from NullVoxPopuli/real-package
(Real™ package™)™
2 parents fae32d2 + c10c159 commit 16a5a0e

78 files changed

Lines changed: 8913 additions & 14486 deletions

Some content is hidden

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

.attw.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignoreRules": ["cjs-resolves-to-esm"]
3+
}

.ember-cli

Lines changed: 0 additions & 9 deletions
This file was deleted.

.eslintignore

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,9 @@
11
# unconventional js
22
/blueprints/*/files/
3-
/vendor/
43

54
# compiled output
65
/dist/
7-
/tmp/
8-
9-
# dependencies
10-
/bower_components/
11-
/node_modules/
6+
/declarations/
127

138
# misc
149
/coverage/
15-
!.*
16-
.*/
17-
.eslintcache
18-
19-
# ember-try
20-
/.node_modules.ember-try/
21-
/bower.json.ember-try
22-
/package.json.ember-try
23-
24-

.eslintrc.cjs

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
'use strict';
2+
3+
module.exports = {
4+
root: true,
5+
parser: '@typescript-eslint/parser',
6+
parserOptions: {
7+
ecmaVersion: 'latest',
8+
},
9+
plugins: ['ember'],
10+
extends: [
11+
'eslint:recommended',
12+
'plugin:ember/recommended',
13+
'plugin:prettier/recommended',
14+
],
15+
env: {
16+
browser: true,
17+
},
18+
rules: {},
19+
overrides: [
20+
// ts files
21+
{
22+
files: ['**/*.ts', '**/*.gts'],
23+
extends: [
24+
'plugin:@typescript-eslint/eslint-recommended',
25+
'plugin:@typescript-eslint/recommended',
26+
],
27+
rules: {
28+
// Add any custom rules here
29+
},
30+
},
31+
// node files
32+
{
33+
files: [
34+
'./.eslintrc.cjs',
35+
'./.prettierrc.cjs',
36+
'./.template-lintrc.cjs',
37+
'./addon-main.cjs',
38+
],
39+
parserOptions: {
40+
sourceType: 'script',
41+
},
42+
env: {
43+
browser: false,
44+
node: true,
45+
},
46+
plugins: ['n'],
47+
extends: ['plugin:n/recommended'],
48+
},
49+
{
50+
files: ['./tests/type-tests/**'],
51+
rules: {
52+
'@typescript-eslint/ban-ts-comment': 'off',
53+
},
54+
},
55+
],
56+
};

.eslintrc.js

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/ci-build.yml

Lines changed: 0 additions & 122 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: pnpm/action-setup@v3
22+
with:
23+
version: 9
24+
- uses: actions/setup-node@v4
25+
with:
26+
cache: pnpm
27+
- name: Install Dependencies
28+
run: pnpm install --frozen-lockfile
29+
- run: pnpm build
30+
- name: Lint
31+
run: pnpm lint
32+
- name: Run Tests
33+
run: pnpm test
34+
35+
floating:
36+
name: "Floating Dependencies"
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: pnpm/action-setup@v3
42+
with:
43+
version: 9
44+
- uses: actions/setup-node@v4
45+
with:
46+
cache: pnpm
47+
- name: Install Dependencies
48+
run: pnpm install --no-lockfile
49+
- run: pnpm build
50+
- name: Run Tests
51+
run: pnpm test
52+
53+
types-scenarios:
54+
name: "Types: ${{ matrix.tsVersion }}"
55+
runs-on: ubuntu-latest
56+
needs: test
57+
58+
strategy:
59+
matrix:
60+
tsVersion:
61+
- '~5.0'
62+
- '~5.1'
63+
- '~5.2'
64+
- '~5.3'
65+
- '~5.4'
66+
- '~5.5'
67+
- 'beta'
68+
steps:
69+
- uses: actions/checkout@v4
70+
- uses: pnpm/action-setup@v3
71+
with:
72+
version: 9
73+
- uses: actions/setup-node@v4
74+
with:
75+
cache: pnpm
76+
- name: Install Dependencies
77+
run: pnpm install --frozen-lockfile
78+
- run: pnpm build
79+
- name: Swap TS Version
80+
run: pnpm add --save-dev typescript@${{ matrix.tsVersion }} --workspace-root
81+
- name: Check Types
82+
run: |
83+
pnpm tsc -v
84+
pnpm test:types

.github/workflows/push-dist.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: pnpm/action-setup@v3
21+
with:
22+
version: 8
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+
- uses: kategengler/put-built-npm-package-contents-on-branch@v2.0.0
30+
with:
31+
branch: dist
32+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)