Skip to content

Commit

Permalink
Update build to align with blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Mar 3, 2023
1 parent fd2af3c commit 51c0f7c
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/actions/assert-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
echo '
target: ${{ env.dist }}
setup:
run: pnpm build:js
run: pnpm build
cwd: ./ember-resources
expect: |
core/index.js
Expand Down
1 change: 1 addition & 0 deletions ember-resources/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# copied from root
/README.md
/LICENSE.md

# output
dist/
Expand Down
1 change: 1 addition & 0 deletions ember-resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
"prettier": "^2.8.4",
"prettier-plugin-ember-template-tag": "^0.3.2",
"rollup": "3.18.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-ts": "^3.0.0",
"tslib": "^2.4.0",
"typescript": "~4.9.0"
Expand Down
9 changes: 9 additions & 0 deletions ember-resources/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// @ts-nocheck
import ts from 'rollup-plugin-ts';
import { Addon } from '@embroider/addon-dev/rollup';
import copy from 'rollup-plugin-copy';
import { defineConfig } from 'rollup';

const addon = new Addon({
Expand Down Expand Up @@ -77,5 +78,13 @@ export default defineConfig({

// Start with a clean output directory before building
addon.clean(),

// Copy Readme and License into published package
copy({
targets: [
{ src: '../README.md', dest: '.' },
{ src: '../LICENSE.md', dest: '.' },
],
}),
],
});
50 changes: 43 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 51c0f7c

Please sign in to comment.