Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into fix-blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeAstapov committed Sep 13, 2023
2 parents a5ab21e + 4936f1a commit cbbd6cf
Show file tree
Hide file tree
Showing 75 changed files with 20,741 additions and 17,804 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/packages/ember-cli-mirage/"
directory: "/"
schedule:
interval: daily
103 changes: 69 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,26 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: yarn
node-version: 16.x
cache: pnpm

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install

- name: Lint
run: yarn workspace ember-cli-mirage lint
run: pnpm run lint
working-directory: packages/ember-cli-mirage

- name: Run Tests
run: yarn workspace ember-cli-mirage test:ember
run: pnpm run test:ember
working-directory: packages/ember-cli-mirage

floating:
name: "Floating Dependencies"
Expand All @@ -41,16 +47,24 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: yarn
node-version: 16.x
cache: pnpm

- name: Update resolution-mode
run: echo "resolution-mode=highest" >> .npmrc

- name: Install Dependencies
run: yarn install --no-lockfile
run: pnpm install --no-lockfile

- name: Run Tests
run: yarn test:ember
run: pnpm run test:ember
working-directory: packages/ember-cli-mirage

test-docs:
Expand All @@ -59,19 +73,26 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
node-version: 14.x
cache: yarn
version: 8

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: pnpm

- name: Install Dependencies
run: yarn install --no-lockfile
run: pnpm install

- name: Lint
run: yarn workspace ember-cli-mirage-docs lint
run: pnpm run lint
working-directory: packages/ember-cli-mirage-docs

- name: Run Tests
run: yarn workspace ember-cli-mirage-docs test:ember
run: pnpm run test:ember
working-directory: packages/ember-cli-mirage-docs

test-app-01:
name: "Tests - Basic App"
Expand All @@ -80,20 +101,26 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: yarn
node-version: 16.x
cache: pnpm

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install

- name: Lint
run: yarn workspace basic-app lint
run: pnpm run lint
working-directory: test-packages/01-basic-app

- name: Run Tests
run: yarn workspace basic-app test
run: pnpm run test
working-directory: test-packages/01-basic-app

test-app-02:
name: "Tests - App That Excludes Mirage"
Expand All @@ -102,20 +129,26 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: yarn
node-version: 16.x
cache: pnpm

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install

- name: Lint
run: yarn workspace app-that-excludes-mirage lint
run: pnpm run lint
working-directory: test-packages/02-app-that-excludes-mirage

- name: Run Tests
run: yarn workspace app-that-excludes-mirage test
run: pnpm run test
working-directory: test-packages/02-app-that-excludes-mirage

try-scenarios:
name: ${{ matrix.try-scenario }}
Expand All @@ -127,28 +160,30 @@ jobs:
fail-fast: false
matrix:
try-scenario:
- ember-lts-3.12
- ember-lts-3.16
- ember-lts-3.20
- ember-lts-3.24
- ember-lts-3.28
- ember-lts-4.4
- ember-lts-4.8
- ember-lts-4.12
- ember-release
- ember-beta
- ember-canary
- ember-classic
# - embroider-safe
# - embroider-optimized

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: yarn
node-version: 16.x
cache: pnpm

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install

- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: yarn
node-version: 16.x
cache: pnpm

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install

- name: Lint
run: yarn workspace ember-cli-mirage lint
run: pnpm run lint
working-directory: packages/ember-cli-mirage

- name: Run Browser Tests
run: yarn workspace ember-cli-mirage test:ember
run: pnpm run test:ember
working-directory: packages/ember-cli-mirage

- name: deploy docs
run: node_modules/.bin/ember deploy production
working-directory: packages/ember-cli-mirage
run: pnpm run deploy
working-directory: packages/ember-cli-mirage-docs
16 changes: 11 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: yarn
node-version: 16.x
cache: pnpm

- name: Install Dependencies
run: yarn install --frozen-lockfile
run: pnpm install

- name: Lint
run: yarn workspace ember-cli-mirage lint
run: pnpm run lint
working-directory: packages/ember-cli-mirage

- name: Run Tests
run: yarn workspace ember-cli-mirage test:ember
run: pnpm run test:ember
working-directory: packages/ember-cli-mirage

- uses: JS-DevTools/npm-publish@v1
with:
Expand Down
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
auto-install-peers=false
dedupe-peer-dependents=false
resolve-peers-from-workspace-root=false

18 changes: 10 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ To make more substantial changes, you'll want to be able to develop the docs sit

```shell
git clone [email protected]:miragejs/ember-cli-mirage.git
cd ember-cli-mirage/packages/ember-cli-mirage
yarn install
cd ember-cli-mirage
pnpm install
cd packages/ember-cli-mirage
ember s
```

Expand All @@ -29,17 +30,18 @@ To help out with Mirage development, first pull down the project locally and ver

```
git clone [email protected]:[your-name]/ember-cli-mirage.git
cd ember-cli-mirage/packages/ember-cli-mirage
yarn install
ember test
cd ember-cli-mirage
pnpm install
cd packages/ember-cli-mirage
pnpm run test:ember
```

If all tests pass, you should be all set. Checkout a new branch to start developing, then submit a PR when you're ready!

## Linting

* `yarn lint`
* `yarn lint:fix`
* `pnpm run lint`
* `pnpm run lint:fix`

## Running tests

Expand All @@ -52,4 +54,4 @@ If all tests pass, you should be all set. Checkout a new branch to start develop
* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ A client-side server to develop, test and prototype your Ember CLI app.
ember install ember-cli-mirage
```

Has a peer dependency on [MirageJS](https://miragejs.com/) which is added to your projects `package.json` during installation.

## Feature requests

Please open an issue and add a :+1: emoji reaction. We will use the number of reactions as votes to indicate community interest, which will in turn help us prioritize feature development.
Expand Down
4 changes: 2 additions & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Once the prep work is completed, the actual release is straight forward:
* First, ensure that you have installed your projects dependencies:

```sh
yarn install
pnpm install
```

* Second, ensure that you have obtained a
Expand All @@ -50,7 +50,7 @@ Once the prep work is completed, the actual release is straight forward:
* Do your release.

```sh
yarn release
pnpm run release
```

[release-it](https://github.com/release-it/release-it/) manages the actual
Expand Down
17 changes: 5 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@
},
"license": "MIT",
"author": "Sam Selikoff",
"workspaces": [
"packages/*",
"test-packages/*"
],
"scripts": {
"release": "release-it",
"test": "cd packages/ember-cli-mirage && yarn test:ember"
"test": "cd packages/ember-cli-mirage && pnpm run test:ember"
},
"resolutions": {
"@embroider/core": "1.6.0",
"@embroider/macros": "1.6.0",
"@embroider/shared-internals": "1.6.0",
"@embroider/util": "1.6.0",
"overrides": {
"ember-cli-babel": "7.26.11",
"colors": "1.4.0",
"favicons": "5.3.0"
},
Expand All @@ -37,7 +30,7 @@
"release-it": {
"hooks": {
"before:init": "cp CHANGELOG.md LICENSE.md README.md packages/ember-cli-mirage/",
"after:release": "cd packages/ember-cli-mirage-docs && yarn deploy"
"after:release": "cd packages/ember-cli-mirage-docs && pnpm run deploy"
},
"plugins": {
"release-it-lerna-changelog": {
Expand Down Expand Up @@ -72,7 +65,7 @@
"npm": false
},
"volta": {
"node": "14.19.1",
"node": "16.20.2",
"yarn": "1.22.18"
}
}
Loading

0 comments on commit cbbd6cf

Please sign in to comment.