Skip to content

Commit

Permalink
reorganize project folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tasxatzial committed Jul 1, 2024
1 parent 3fcf846 commit f98a658
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
src/node_modules/
src/dist/
node_modules/
dist/
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@
</script>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/calc.css">
<script src="node_modules/decimal.js/decimal.mjs" type="module"></script>
<script src="js/script.js" type="module"></script>
<script src="node_modules/focus-visible/dist/focus-visible.js" type="module"></script>
<script src="../node_modules/focus-visible/dist/focus-visible.js" type="module"></script>
</head>
<body>
<div aria-label="Calculator app" class="calc" role="region">
Expand Down
2 changes: 1 addition & 1 deletion src/js/CalculationModel.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Stack from './Stack.js';
import Model from './Model.js';
import Decimal from '../node_modules/decimal.js/decimal.mjs';
import { Decimal } from 'decimal.js';

export default class CalculationModel extends Model {
constructor(props) {
Expand Down
21 changes: 0 additions & 21 deletions src/vite.config.js

This file was deleted.

23 changes: 23 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { defineConfig } from 'vite';
import license from 'rollup-plugin-license';
import path from 'path';

export default defineConfig({
root: "src",
build: {
outDir: '../dist',
emptyOutDir: true,
rollupOptions: {
plugins: [
license({
thirdParty: {
includePrivate: true,
output: {
file: path.join(__dirname, 'dist', 'dependencies.txt'),
},
},
}),
],
},
},
});

0 comments on commit f98a658

Please sign in to comment.