Skip to content

Commit

Permalink
Init new v2 addon
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Mar 15, 2024
1 parent 19baba1 commit e40de0b
Show file tree
Hide file tree
Showing 305 changed files with 1,018 additions and 24,067 deletions.
32 changes: 0 additions & 32 deletions .docfy-config.js

This file was deleted.

2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ indent_size = 2
[*.hbs]
insert_final_newline = false

[*.diff]
[*.{diff,md}]
trim_trailing_whitespace = false
4 changes: 0 additions & 4 deletions .ember-cli

This file was deleted.

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

This file was deleted.

67 changes: 30 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- master
pull_request: {}

concurrency:
Expand All @@ -12,82 +13,74 @@ concurrency:

jobs:
test:
name: Tests
name: "Tests"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Install Dependencies
run: pnpm install
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
- name: Build Tailwind
run: pnpm tailwind:build
- name: Run Tests
if: ${{ contains(github.event.*.labels.*.name, 'percy') == false }}
run: pnpm test:ember
- name: Run Tests With Percy
if: ${{ contains(github.event.*.labels.*.name, 'percy') }}
run: pnpx percy exec -- pnpm test:ember
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
run: pnpm test

floating:
name: Floating Dependencies
name: "Floating Dependencies"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Install Dependencies
run: pnpm install --no-lockfile
- name: Build Tailwind
run: pnpm tailwind:build
- name: Run Tests
run: pnpm test:ember
run: pnpm test

try-scenarios:
name: Scenario - ${{ matrix.try-scenario }}
name: ${{ matrix.try-scenario }}
runs-on: ubuntu-latest
needs: test
needs: 'test'
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
try-scenario:
- 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: actions/setup-node@v3
with:
node-version: 18.x
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Install Dependencies
run: pnpm install
- name: Build Tailwind
run: pnpm tailwind:build
run: pnpm install --frozen-lockfile
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup
working-directory: test-app
35 changes: 35 additions & 0 deletions .github/workflows/push-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Because this library needs to be built,
# we can't easily point package.json files at the git repo for easy cross-repo testing.
#
# This workflow brings back that capability by placing the compiled assets on a "dist" branch
# (configurable via the "branch" option below)
name: Push dist

on:
push:
branches:
- main
- master

jobs:
push-dist:
name: Push dist
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- uses: kategengler/[email protected]
with:
branch: dist
token: ${{ secrets.GITHUB_TOKEN }}
working-directory: 'velvet-thunder'
25 changes: 12 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
# compiled output
/declarations/
/dist/
/tests/dummy/public/assets/tailwind.css
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules/
node_modules/

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

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

# broccoli-debug
/DEBUG/
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

15 changes: 8 additions & 7 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Folders:
/.node_modules.ember-try/
/dist/
# Prettier is also run from each package, so the ignores here
# protect against files that may not be within a package

# misc
!.*
.lint-todo/

# Files:
# ember-try
/.node_modules.ember-try/
/pnpm-lock.ember-try.yaml
/pnpm-lock.yaml
/tests/dummy/public/assets/*.css
*.html
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,
};
8 changes: 0 additions & 8 deletions .stylelintrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions .template-lintrc.js

This file was deleted.

17 changes: 11 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Installation

- `git clone [email protected]:Bagaar/velvet-thunder.git`
- `git clone <repository-url>`
- `cd velvet-thunder`
- `pnpm install`

Expand All @@ -11,16 +11,21 @@
- `pnpm lint`
- `pnpm lint:fix`

## Building the addon

- `cd velvet-thunder`
- `pnpm build`

## Running tests

- `cd test-app`
- `pnpm test` – Runs the test suite on the current Ember version
- `pnpm test:ember --server` – Runs the test suite in "watch mode"
- `pnpm test:ember-compatibility` – Runs the test suite against multiple Ember versions
- `pnpm test:watch` – Runs the test suite in "watch mode"

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

- `pnpm tailwind:watch`
- `cd test-app`
- `pnpm start`
- Visit the dummy application at [http://localhost:4200](http://localhost:4200).
- Visit the test application at [http://localhost:4200](http://localhost:4200).

For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021
Copyright (c) 2024

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:

Expand Down
Loading

0 comments on commit e40de0b

Please sign in to comment.