Skip to content

Commit

Permalink
Bumped version to 2.1.1
Browse files Browse the repository at this point in the history
Renamed file useBarDrag to createBarDrag
Re-enabled default import
Added plugin for auto-injecting CSS in vite build
Updated README
  • Loading branch information
zunnzunn committed Sep 21, 2022
1 parent 2abc607 commit 7080144
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 6 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
/>

<b>Vue Ganttastic</b> is a simple, interactive and highly customizable Gantt chart component for Vue 3.

![image](https://user-images.githubusercontent.com/28678851/148191571-76bd8d61-4583-4538-8c59-cc2915494890.png)

</div>


Expand Down Expand Up @@ -92,6 +95,22 @@ const row2BarList = ref([

```

## Contributing
Clone the project, make some changes, test your changes out, create a pull request with a short summary of what changes you made. Contributing is warmly welcomed!

To test your changes out before creating a pull request, create a build:
```
npm run build
```
To test out the build, you should create a tarball using:
```
npm pack
```
Then, place the tarball in some other test project and install the package from the tarball by using:
```
npm install <name_of_the_package>.tgz
```

## Guide and Docs
For further guides and references, check out the [official docs](https://infectoone.github.io/vue-ganttastic/getting-started.html).

Expand Down
17 changes: 15 additions & 2 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@infectoone/vue-ganttastic",
"version": "3.0.0",
"version": "2.1.1",
"description": "A simple and customizable Gantt chart component for Vue.js",
"author": "Marko Zunic (@infectoone)",
"scripts": {
Expand All @@ -23,6 +23,7 @@
],
"devDependencies": {
"@rushstack/eslint-patch": "^1.1.4",
"@senojs/rollup-plugin-style-inject": "^0.1.1",
"@types/node": "^16.11.58",
"@types/postcss-preset-env": "^7.7.0",
"@vitejs/plugin-vue": "^3.1.0",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/composables/useBarDragManagement.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { GanttBarObject } from "../types"

import { ref } from "vue"
import createBarDrag from "./useBarDrag"
import createBarDrag from "./createBarDrag"
import useDayjsHelper from "./useDayjsHelper"
import provideConfig from "../provider/provideConfig"
import provideGetChartRows from "../provider/provideGetChartRows"
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ export const ganttastic: Plugin = {
app.component("GGanttRow", GGanttRow)
}
}

export default ganttastic
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createApp } from "vue"
import Playground from "./GanttPlayground.vue"
import { ganttastic } from "./index"
import ganttastic from "./index"

createApp(Playground).use(ganttastic).mount("#app")
8 changes: 7 additions & 1 deletion vite.config.ts → vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ import { fileURLToPath, URL } from "node:url"
import { defineConfig } from "vite"
import vue from "@vitejs/plugin-vue"
import postcssPresetEnv from "postcss-preset-env"
import styleInject from "@senojs/rollup-plugin-style-inject"

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
plugins: [
vue(),
styleInject({
insertAt: "top"
})
],
css: {
postcss: {
plugins: [postcssPresetEnv()]
Expand Down

0 comments on commit 7080144

Please sign in to comment.