Skip to content

Commit

Permalink
Update TickWatch-js to version 1.0.2 and refine imports
Browse files Browse the repository at this point in the history
Version for TickWatch-js has been updated to 1.0.2 throughout the code base, reflected in the banner messages and the package manifests. Also, the import paths in various JavaScript files have been adjusted to enhance the organization of the file structure. Notably, the usage of an alias object in vite.config.js has been removed.
  • Loading branch information
HichemTab-tech committed Jun 19, 2024
1 parent e47bc6c commit abbadcf
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dist/TickWatch.min.js

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

2 changes: 1 addition & 1 deletion dist/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* TickWatch-js v1.0.1
* TickWatch-js v1.0.2
* (c) HichemTech
* Released under the MIT License.
* Github: github.com/HichemTab-tech/TickWatch-js
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@scss/style.scss';
import './src/scss/style.scss';
import {TickWatch} from "./src/TickWatch";

(function ($) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tickwatchjs",
"version": "1.0.1",
"version": "1.0.2",
"description": "TickWatch is a jQuery plugin that provides a customizable electronic clock with start, stop, and set functionalities. It can count up or down and display time in various formats.",
"keywords": [
"jquery",
Expand Down
2 changes: 1 addition & 1 deletion src/TickWatch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ClockSVG} from "@js/clock-creator";
import {ClockSVG} from "./js/clock-creator";
import {isDefined} from "npm-jquery-plugin-helpers/src/helpers";

export const TickWatch = function (options = {}, ...args) {
Expand Down
14 changes: 1 addition & 13 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,13 @@ import { terser } from 'rollup-plugin-terser';
import banner from 'vite-plugin-banner';

const bannerText = `/*
* TickWatch-js v1.0.1
* TickWatch-js v1.0.2
* (c) HichemTech
* Released under the MIT License.
* Github: github.com/HichemTab-tech/TickWatch-js
*/
`;

const aliasesStrings = ['js', 'scss', 'images'];

const aliases = {};
aliasesStrings.forEach(alias => {
aliases[`@${alias}`] = path.resolve(__dirname, `src/${alias}/`);
});

// noinspection JSUnusedGlobalSymbols
export default defineConfig(({ command }) => {
const isProduction = command === 'build';
Expand Down Expand Up @@ -48,11 +41,6 @@ export default defineConfig(({ command }) => {
},
server: {
port: 5001
},
resolve: {
alias: {
...aliases
}
}
};
});

0 comments on commit abbadcf

Please sign in to comment.