Skip to content

Commit 887a5eb

Browse files
committed
Switch to vue-cli instead of custom webpack config
1 parent 61103fe commit 887a5eb

24 files changed

+7574
-6491
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not dead

.eslintrc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
'extends': [
7+
'plugin:vue/essential',
8+
'eslint:recommended'
9+
],
10+
parserOptions: {
11+
parser: 'babel-eslint'
12+
},
13+
rules: {
14+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
15+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
16+
}
17+
}

.gitignore

100755100644
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
.DS_Store
2-
node_modules/
2+
node_modules
3+
/dist
4+
/library-dist
5+
/plugin-dist
6+
7+
# local env files
8+
.env.local
9+
.env.*.local
10+
11+
# Log files
312
npm-debug.log*
413
yarn-debug.log*
514
yarn-error.log*
15+
pnpm-debug.log*
616

717
# Editor directories and files
818
.idea
@@ -11,3 +21,4 @@ yarn-error.log*
1121
*.ntvs*
1222
*.njsproj
1323
*.sln
24+
*.sw?

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.1.0] - 2021-08-13
8+
### Changed
9+
- The project now uses vue-cli 3 instead of custom webpack config files
10+
- `Pivot` and `PivotTable` import changed:
11+
From: `import Pivot from '@marketconnect/vue-pivot-table'`
12+
To: `import { Pivot } from '@click2buy/vue-pivot-table'`
13+
714
## [1.0.0] - 2020-03-27
815
### Changed
916
- `Pivot` component `fields`, `row-fields` and `col-fields` props were replaced by a global `fields` prop and `available-field-keys`, `row-field-keys`, `col-field-keys` props to affect fields to each draggable area of the Pivot

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# vue-pivot-table
22
A vue component for pivot table
33

4-
![vue-pivot-table screenshot](https://raw.githubusercontent.com/MarketConnect/vue-pivot-table/master/screenshot.png)
4+
![vue-pivot-table screenshot](https://raw.githubusercontent.com/Click2Buy/vue-pivot-table/master/screenshot.png)
55

66
[Live demo (jsfiddle)](https://jsfiddle.net/Owumaro/ezhp9fuc/)
77

88
## Install
99

10-
`npm install --save @marketconnect/vue-pivot-table`
10+
`npm install --save @click2buy/vue-pivot-table`
1111

1212
## Components
1313

@@ -30,7 +30,7 @@ Vue.use(VuePivot)
3030
#### Javascript
3131

3232
```js
33-
import Pivot from '@marketconnect/vue-pivot-table'
33+
import { Pivot } from '@click2buy/vue-pivot-table'
3434

3535
export default {
3636
components: { Pivot },
@@ -74,7 +74,7 @@ export default {
7474
#### Javascript
7575

7676
```js
77-
import PivotTable from '@marketconnect/vue-pivot-table'
77+
import { PivotTable } from '@click2buy/vue-pivot-table'
7878

7979
export default {
8080
components: { PivotTable },
@@ -238,10 +238,10 @@ See https://vuejs.org/v2/guide/instance.html#Data-and-Methods.
238238
npm install
239239

240240
# Serve with hot reload at localhost:8080
241-
npm run dev
241+
npm run serve
242242

243-
# Build js libraries in dist folder
244-
npm run build
243+
# Build js libraries
244+
npm run build-lib
245245
```
246246

247247
## Thanks

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

demo/main.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

dist/vue-pivot-table.browser.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

dist/vue-pivot-table.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

index.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)