Skip to content

Commit

Permalink
Update to v1.4 of blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Jan 12, 2023
1 parent eff25a2 commit 1dd135e
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 156 deletions.
38 changes: 25 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,50 @@ on:
pull_request: {}

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

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

steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: npm
cache: pnpm
- name: Install Dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Lint
run: npm run lint
run: pnpm lint
- name: Run Tests
run: npm run test
run: pnpm test

floating:
name: "Floating Dependencies"
name: 'Floating Dependencies'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: 14.x
cache: npm
cache: pnpm
- name: Install Dependencies
run: npm install --no-shrinkwrap
run: pnpm install --no-lockfile
- name: Run Tests
run: npm run test
run: pnpm test

try-scenarios:
name: ${{ matrix.try-scenario }}
Expand All @@ -65,13 +73,17 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14.x
cache: npm
cache: pnpm
- name: Install Dependencies
run: npm ci
run: pnpm install --frozen-lockfile
- name: Run Tests
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
working-directory: test-app
2 changes: 1 addition & 1 deletion config/ember-cli-update.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packages": [
{
"name": "@embroider/addon-blueprint",
"version": "1.3.0",
"version": "1.4.0",
"blueprints": [
{
"name": "@embroider/addon-blueprint",
Expand Down
2 changes: 1 addition & 1 deletion ember-headless-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-proposal-decorators": "^7.17.0",
"@babel/plugin-syntax-decorators": "^7.17.0",
"@embroider/addon-dev": "^2.0.0",
"@embroider/addon-dev": "^3.0.0",
"@glint/core": "^0.9.7",
"@glint/environment-ember-loose": "^0.9.7",
"@tsconfig/ember": "^1.0.0",
Expand Down
16 changes: 10 additions & 6 deletions ember-headless-form/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,29 @@ export default {
plugins: [
// These are the modules that users should be able to import from your
// addon. Anything not listed here may get optimized away.
addon.publicEntrypoints(['components/**/*.js', 'index.js', 'template-registry.js']),
addon.publicEntrypoints([
'components/**/*.js',
'index.js',
'template-registry.js',
]),

// These are the modules that should get reexported into the traditional
// "app" tree. Things in here should also be in publicEntrypoints above, but
// not everything in publicEntrypoints necessarily needs to go here.
addon.appReexports(['components/**/*.js']),

// Follow the V2 Addon rules about dependencies. Your code can import from
// `dependencies` and `peerDependencies` as well as standard Ember-provided
// package names.
addon.dependencies(),

// compile TypeScript to latest JavaScript, including Babel transpilation
typescript({
transpiler: 'babel',
browserslist: false,
transpileOnly: false,
}),

// Follow the V2 Addon rules about dependencies. Your code can import from
// `dependencies` and `peerDependencies` as well as standard Ember-provided
// package names.
addon.dependencies(),

// Ensure that standalone .hbs files are properly integrated as Javascript.
addon.hbs(),

Expand Down
Loading

0 comments on commit 1dd135e

Please sign in to comment.