Skip to content

Commit

Permalink
Merge pull request #39 from mkszepp/addon-to-v2
Browse files Browse the repository at this point in the history
Update addon to V2 & add release-it
  • Loading branch information
mkszepp authored Jan 11, 2024
2 parents 0028a3f + c0108f2 commit a5c4b46
Show file tree
Hide file tree
Showing 79 changed files with 14,733 additions and 18,210 deletions.
9 changes: 0 additions & 9 deletions .ember-cli

This file was deleted.

58 changes: 0 additions & 58 deletions .eslintrc.js

This file was deleted.

124 changes: 124 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
name: CI

on:
push:
branches:
- main
- master
pull_request: {}

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2.2.4
with:
version: 8

- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: pnpm

- name: 'Install dependencies'
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm --filter ember-assign-helper lint

test:
name: "Tests"
runs-on: ubuntu-latest
needs: lint

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2.2.4
with:
version: 8

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

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

- name: Run Tests
run: pnpm --filter test-app test:ember

floating:
name: "Floating Dependencies"
runs-on: ubuntu-latest
needs: lint

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2.2.4
with:
version: 8

- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: pnpm

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

- name: Run Tests
run: pnpm --filter test-app test:ember

try-scenarios:
name: ${{ matrix.try-scenario }}
runs-on: ubuntu-latest
continue-on-error: true
needs: test

strategy:
fail-fast: false
matrix:
try-scenario:
- ember-lts-3.28
- ember-lts-4.4
- ember-lts-4.8
- ember-lts-4.12
- ember-lts-5.4
- ember-release
- ember-beta
- ember-canary
- embroider-safe
- embroider-optimized

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2.2.4
with:
version: 8

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

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

- name: Run Tests
env:
EMBER_TRY_SCENARIO: ${{ matrix.try-scenario }}
run: pnpm --filter test-app test:ember-try $EMBER_TRY_SCENARIO
29 changes: 13 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/
node_modules/

# misc
/.env*
/.pnp*
/.sass-cache
/connect.lock
/coverage/
/libpeerconnection.log
/npm-debug.log*
/testem.log
/yarn-error.log
.env*
.pnp*
.pnpm-debug.log
.sass-cache
.eslintcache
coverage/
npm-debug.log*
yarn-error.log

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
/pnpm-lock.ember-try.yaml

32 changes: 0 additions & 32 deletions .npmignore

This file was deleted.

6 changes: 6 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

module.exports = {
plugins: ['prettier-plugin-ember-template-tag'],
singleQuote: true,
};
58 changes: 0 additions & 58 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .watchmanconfig

This file was deleted.

1 change: 1 addition & 0 deletions CHANGELOG.md
31 changes: 18 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,30 @@

## Installation

* `git clone <repository-url>`
* `cd my-addon`
* `npm install`
- `git clone <repository-url>`
- `cd ember-assign-helper`
- `npm install`

## Linting

* `npm run lint:hbs`
* `npm run lint:js`
* `npm run lint:js -- --fix`
- `npm run lint`
- `npm run lint:fix`

## Building the addon

- `cd ember-assign-helper`
- `npm build`

## Running tests

* `ember test` – Runs the test suite on the current Ember version
* `ember test --server` – Runs the test suite in "watch mode"
* `ember try:each` – Runs the test suite against multiple Ember versions
- `cd test-app`
- `npm run test` – Runs the test suite on the current Ember version
- `npm run test:watch` – Runs the test suite in "watch mode"

## Running the dummy application
## Running the test application

* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
- `cd test-app`
- `npm run start`
- Visit the test 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/).
9 changes: 0 additions & 9 deletions LICENSE.md

This file was deleted.

Loading

0 comments on commit a5c4b46

Please sign in to comment.