Skip to content

Commit e727016

Browse files
committed
bump to v1.0,1
1 parent ca292a7 commit e727016

File tree

2 files changed

+7
-37
lines changed

2 files changed

+7
-37
lines changed

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "datetime-card",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A minimalistic card for Home Assistant Lovelace UI which shows how many days it has been between any input_datetime and today.",
55
"author": {
66
"email": "antpza@gmail.com",
@@ -9,8 +9,6 @@
99
},
1010
"scripts": {
1111
"build": "rollup -c",
12-
"dev": "rollup -c -w",
13-
"start": "sirv public --no-clear",
1412
"check": "svelte-check --tsconfig ./tsconfig.json",
1513
"test": "jest src",
1614
"test:watch": "npm run test -- --watch",
@@ -41,7 +39,6 @@
4139
"typescript": "^4.6.4"
4240
},
4341
"dependencies": {
44-
"sirv-cli": "^2.0.0",
4542
"svelte-dnd-action": "^0.9.18"
4643
},
4744
"repository": {

rollup.config.js

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import resolve from '@rollup/plugin-node-resolve';
44
import { terser } from 'rollup-plugin-terser';
55
import sveltePreprocess from 'svelte-preprocess';
66
import typescript from '@rollup/plugin-typescript';
7-
import css from 'rollup-plugin-css-only';
8-
9-
const production = !process.env.ROLLUP_WATCH;
107

118
export default {
129
input: 'src/main.ts',
@@ -18,36 +15,12 @@ export default {
1815
},
1916
plugins: [
2017
svelte({
21-
preprocess: sveltePreprocess({ sourceMap: !production }),
22-
compilerOptions: {
23-
customElement: true,
24-
// enable run-time checks when not in production
25-
dev: !production
26-
}
27-
}),
28-
// we'll extract any component CSS out into
29-
// a separate file - better for performance
30-
css({ output: 'datetime-card.css' }),
31-
32-
// If you have external dependencies installed from
33-
// npm, you'll most likely need these plugins. In
34-
// some cases you'll need additional configuration -
35-
// consult the documentation for details:
36-
// https://github.com/rollup/plugins/tree/master/packages/commonjs
37-
resolve({
38-
dedupe: ['svelte']
18+
preprocess: sveltePreprocess({ sourceMap: true }),
19+
compilerOptions: { customElement: true, dev: true }
3920
}),
21+
resolve({ dedupe: ['svelte'] }),
4022
commonjs(),
41-
typescript({
42-
sourceMap: !production,
43-
inlineSources: !production
44-
}),
45-
46-
// If we're building for production (npm run build
47-
// instead of npm run dev), minify
48-
production && terser()
49-
],
50-
watch: {
51-
clearScreen: false
52-
}
23+
typescript({ sourceMap: true, inlineSources: true }),
24+
terser()
25+
]
5326
};

0 commit comments

Comments
 (0)