-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #346 from ember-cli/convert-to-v2-format
Convert to v2 format
- Loading branch information
Showing
61 changed files
with
4,637 additions
and
4,347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
# unconventional js | ||
/blueprints/*/files/ | ||
/vendor/ | ||
|
||
# compiled output | ||
/dist/ | ||
/tmp/ | ||
/test-app/dist/ | ||
/test-app/tmp/ | ||
/scenario | ||
/dist | ||
|
||
# dependencies | ||
/bower_components/ | ||
/node_modules/ | ||
/test-app/node_modules | ||
|
||
# misc | ||
/coverage/ | ||
!.* | ||
.*/ | ||
.eslintcache | ||
|
||
# ember-try | ||
/.node_modules.ember-try/ | ||
/bower.json.ember-try | ||
/package.json.ember-try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,62 @@ | ||
name: CI | ||
name: Node CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- 'v*' # prior release branches (e.g. `v0.30.x` branch) | ||
tags: | ||
- v* | ||
pull_request: { } | ||
|
||
env: | ||
CI: true | ||
- 'v*' | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
timeout-minutes: 10 | ||
name: Lint | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install node | ||
uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v1 | ||
- uses: volta-cli/action@v1 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- uses: actions/cache@v2 | ||
id: yarn-cache | ||
with: | ||
node-version: 14.x | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile --non-interactive | ||
- name: Lint | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- run: yarn --frozen-lockfile | ||
- name: lint | ||
run: yarn lint | ||
|
||
floating-dependencies: | ||
timeout-minutes: 10 | ||
name: "Floating Dependencies" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
- name: Install Dependencies | ||
run: yarn install --no-lockfile | ||
- run: yarn test:ember | ||
|
||
try-scenarios: | ||
timeout-minutes: 10 | ||
name: "Try: ${{ matrix.ember-try-scenario }}" | ||
|
||
- name: test | ||
run: yarn test:ember | ||
- id: set-matrix | ||
run: echo "::set-output name=matrix::$(yarn --silent scenario-tester list --files ./scenarios.js --matrix 'yarn qunit ./scenarios.js --filter %s:')" | ||
working-directory: test-app | ||
|
||
compat-scenarios: | ||
needs: test | ||
name: ${{ matrix.name }} | ||
runs-on: ubuntu-latest | ||
|
||
needs: floating-dependencies | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ember-try-scenario: | ||
- ember-lts-3.20 | ||
- ember-lts-3.24 | ||
- ember-release | ||
- ember-beta | ||
- ember-canary | ||
- ember-default-with-jquery | ||
- ember-classic | ||
- embroider-safe | ||
- embroider-optimized | ||
|
||
matrix: ${{fromJson(needs.test.outputs.matrix)}} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install node | ||
uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v1 | ||
- uses: volta-cli/action@v1 | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- uses: actions/cache@v2 | ||
id: yarn-cache | ||
with: | ||
node-version: 12.x | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- run: yarn install --no-lockfile | ||
- name: test | ||
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup | ||
|
||
publish: | ||
name: Publish to npm | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
runs-on: ubuntu-latest | ||
needs: [floating-dependencies, try-scenarios] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: auto-dist-tag | ||
run: npx auto-dist-tag@1 --write | ||
|
||
- name: publish to npm | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
run: ${{ matrix.command }} | ||
working-directory: test-app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "pwa-node", | ||
"request": "launch", | ||
"name": "Build", | ||
"program": "${workspaceFolder}/test-app/node_modules/ember-cli/bin/ember", | ||
"args": ["build"], | ||
"cwd": "${workspaceFolder}/test-app", | ||
"outputCapture": "std", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use strict'; | ||
|
||
const { addonV1Shim } = require('@embroider/addon-shim'); | ||
|
||
module.exports = addonV1Shim(__dirname, { | ||
// this is a backward-compatibility feature that only works when this v2 addon | ||
// is consumed in a non-embroider build. Under embroider, you don't need this | ||
// because you can just delete <WelcomePage /> from your template and that | ||
// will cause it to be dropped from the build. | ||
disabled(options) { | ||
let welcomeConfig = options['ember-welcome-page'] || {}; | ||
return process.env.EMBER_ENV === 'production' && !welcomeConfig.enabled; | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.