Skip to content

Commit 991b765

Browse files
committed
Add rollup build, now demo works
1 parent 0771230 commit 991b765

File tree

5 files changed

+49
-1
lines changed

5 files changed

+49
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { VerticalCollection as default } from '@html-next/vertical-collection';
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
export default {
2-
plugins: [],
2+
plugins: [
3+
[
4+
'module:babel-plugin-ember-template-compilation',
5+
{
6+
targetFormat: 'hbs',
7+
transforms: [],
8+
},
9+
],
10+
],
311
};

vertical-collection/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
"name": "Chris Thoburn (@runspired)",
2424
"url": "https://runspired.com"
2525
},
26+
"exports": {
27+
".": {
28+
"default": "./dist/index.js"
29+
},
30+
"./-private/index": {
31+
"default": "./dist/-private/index.js"
32+
}
33+
},
2634
"contributors": [
2735
{
2836
"name": "Chris Garrett (@pzuraq)",
@@ -37,9 +45,12 @@
3745
],
3846
"files": [
3947
"src",
48+
"dist",
4049
"addon-shim.cjs"
4150
],
4251
"scripts": {
52+
"build": "rollup --config",
53+
"prepack": "rollup --config",
4354
"format": "prettier . --cache --write",
4455
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
4556
"lint:css": "stylelint \"**/*.css\"",
@@ -56,7 +67,10 @@
5667
"devDependencies": {
5768
"@babel/eslint-parser": "^7.22.10",
5869
"@ember/test-waiters": "~3.1.0",
70+
"@embroider/addon-dev": "^8.2.0",
5971
"@eslint/js": "^9.39.2",
72+
"@rollup/plugin-babel": "^6.1.0",
73+
"babel-plugin-ember-template-compilation": "^4.0.0",
6074
"concurrently": "^8.2.0",
6175
"ember-inflector": "^6.0.0",
6276
"ember-perf-timeline": "^2.0.0",
@@ -73,6 +87,7 @@
7387
"globals": "^16.5.0",
7488
"prettier": "^3.0.2",
7589
"prettier-plugin-ember-template-tag": "^2.0.6",
90+
"rollup": "^4.56.0",
7691
"stylelint": "^17.0.0",
7792
"stylelint-config-standard": "^40.0.0",
7893
"stylelint-prettier": "^5.0.3"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { Addon } from '@embroider/addon-dev/rollup';
2+
import { babel } from '@rollup/plugin-babel';
3+
4+
const addon = new Addon({
5+
srcDir: 'src',
6+
destDir: 'dist',
7+
});
8+
9+
export default {
10+
output: addon.output(),
11+
12+
plugins: [
13+
addon.publicEntrypoints(['index.js', '-private/index.js']),
14+
addon.dependencies(),
15+
babel({
16+
extensions: ['.js', '.gjs', '.ts', '.gts'],
17+
babelHelpers: 'bundled',
18+
}),
19+
addon.gjs(),
20+
addon.keepAssets(['**/*.css']),
21+
addon.clean(),
22+
],
23+
};

vertical-collection/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as VerticalCollection } from './components/vertical-collection.gjs';

0 commit comments

Comments
 (0)