Skip to content

Commit

Permalink
Merge pull request #596 from simonihmig/align-blueprint
Browse files Browse the repository at this point in the history
Align v2 addon boilerplate with latest blueprint
  • Loading branch information
simonihmig authored Nov 15, 2022
2 parents e6eaaaf + dc0b2e8 commit 31adcb3
Show file tree
Hide file tree
Showing 20 changed files with 463 additions and 258 deletions.
93 changes: 45 additions & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,80 +3,77 @@ name: CI
on:
push:
branches:
- main
- master
- renovate/*
tags:
- '*'
pull_request:
schedule:
- cron: '0 4 * * 5' # Fridays at 4am
pull_request: {}

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

jobs:
test:
name: Tests
name: 'Tests'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node.js
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14
- name: Install dependencies
uses: bahmutov/npm-install@v1
node-version: 14.x
cache: yarn
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Test
- name: Run Tests
run: yarn test

# re-enable this when the socket.io issue has been resolved.
# `bahmutov/npm-install` does not work with yarn resolutions here, as yarn is not used due to https://github.com/bahmutov/npm-install/issues/95
# test-no-lock:
# name: Floating Dependencies
# runs-on: ubuntu-latest
# needs:
# - test
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Setup node.js
# uses: actions/setup-node@v2
# with:
# node-version: 12
# - name: Install dependencies
# uses: bahmutov/npm-install@v1
# with:
# useLockFile: false
# - name: Test
# run: yarn test:ember
floating:
name: 'Floating Dependencies'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.x
cache: yarn
- name: Install Dependencies
run: yarn install --no-lockfile
- name: Run Tests
run: yarn test

test-try:
name: Additional Tests
try-scenarios:
name: ${{ matrix.try-scenario }}
runs-on: ubuntu-latest
needs:
- test
needs: 'test'

strategy:
fail-fast: false
matrix:
scenario:
try-scenario:
- ember-lts-3.24
- ember-lts-3.28
- ember-lts-4.4
- ember-release
- ember-beta
- ember-canary
- ember-default-with-jquery
- ember-classic
- embroider-safe
- embroider-optimized
fail-fast: false

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node.js
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Test
run: yarn ember try:one ${{ matrix.scenario }}
node-version: 14.x
cache: yarn
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Run Tests
run: yarn ember try:one ${{ matrix.try-scenario }}
working-directory: test-app
21 changes: 21 additions & 0 deletions config/ember-cli-update.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"schemaVersion": "1.0.0",
"packages": [
{
"name": "@embroider/addon-blueprint",
"version": "1.3.0",
"blueprints": [
{
"name": "@embroider/addon-blueprint",
"isBaseBlueprint": true,
"options": [
"--yarn",
"--ci-provider=github",
"--release-it",
"--typescript"
]
}
]
}
]
}
14 changes: 0 additions & 14 deletions ember-stargate/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
# unconventional js
/blueprints/*/files/
/vendor/

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/

# misc
/coverage/
!.*
.*/
.eslintcache

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
20 changes: 8 additions & 12 deletions ember-stargate/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true,
},
ecmaVersion: 'latest',
},
plugins: ['ember', '@typescript-eslint'],
plugins: ['ember'],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
Expand Down Expand Up @@ -39,7 +35,12 @@ module.exports = {
},
// node files
{
files: ['.eslintrc.js', '.template-lintrc.js', 'addon-main.js'],
files: [
'./.eslintrc.js',
'./.prettierrc.js',
'./.template-lintrc.js',
'./addon-main.js',
],
parserOptions: {
sourceType: 'script',
},
Expand All @@ -50,10 +51,5 @@ module.exports = {
plugins: ['node'],
extends: ['plugin:node/recommended'],
},
{
// Test files:
files: ['tests/**/*-test.{js,ts}'],
extends: ['plugin:qunit/recommended'],
},
],
};
25 changes: 25 additions & 0 deletions ember-stargate/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
dist/

# dependencies
node_modules/

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

# ember-try
/.node_modules.ember-try/
/package.json.ember-try
/yarn.lock.ember-try
62 changes: 0 additions & 62 deletions ember-stargate/CHANGELOG.md

This file was deleted.

9 changes: 9 additions & 0 deletions ember-stargate/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2020

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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit 31adcb3

Please sign in to comment.