-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [x] add ava config - [x] update babel config - [x] add rollup config for building project - [x] update license - [x] add husky & commitlint - [x] add jsconfig for better intellisense - [x] remove postcss config - [x] add prettier config - [x] remove `App.vue`
- Loading branch information
1 parent
c1f4608
commit 620cc90
Showing
13 changed files
with
10,386 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
require: ['./test/helpers/ava.setup.js'], | ||
files: ['./test/spec/**/*'], | ||
ignoredByWatcher: ['!**/*.{js,vue}'], | ||
snapshotDir: './test/snapshot', | ||
babel: true, | ||
tap: false, | ||
verbose: true, | ||
color: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/app' | ||
], | ||
"plugins": [ | ||
"transform-flow-comments" | ||
] | ||
} | ||
presets: ['@babel/preset-env'], | ||
env: { | ||
test: { | ||
plugins: [ | ||
[ | ||
'module-resolver', | ||
{ | ||
root: ['./'], | ||
alias: { | ||
'@': './', | ||
'~': './', | ||
}, | ||
}, | ||
], | ||
], | ||
ignore: ['ava.config.cjs'], | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import babel from '@rollup/plugin-babel'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import vue from 'rollup-plugin-vue'; | ||
|
||
export default [ | ||
// ESM build to be used with webpack/rollup. | ||
{ | ||
input: 'src/index.js', | ||
output: { | ||
format: 'esm', | ||
name: 'v-grid-layout', | ||
file: 'dist/v-grid-layout.esm.js', | ||
}, | ||
plugins: [ | ||
babel({ | ||
babelHelpers: 'bundled', | ||
exclude: 'node_modules/**', | ||
}), | ||
commonjs(), | ||
vue(), | ||
], | ||
external: ['@vue/composition-api'], | ||
}, | ||
// CommonJS build | ||
{ | ||
input: 'src/index.js', | ||
output: { | ||
format: 'cjs', | ||
name: 'v-grid-layout', | ||
file: 'dist/v-grid-layout.cjs.js', | ||
}, | ||
plugins: [ | ||
babel({ | ||
babelHelpers: 'bundled', | ||
exclude: 'node_modules/**', | ||
}), | ||
commonjs(), | ||
vue(), | ||
], | ||
external: ['@vue/composition-api'], | ||
}, | ||
// UMD build. | ||
{ | ||
input: 'src/index.js', | ||
output: { | ||
format: 'umd', | ||
name: 'v-grid-layout', | ||
file: 'dist/v-grid-layout.umd.js', | ||
globals: { | ||
'@vue/composition-api': 'vueCompositionApi', | ||
}, | ||
}, | ||
plugins: [ | ||
babel({ | ||
babelHelpers: 'bundled', | ||
exclude: 'node_modules/**', | ||
}), | ||
commonjs(), | ||
vue(), | ||
], | ||
external: ['@vue/composition-api'], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import babel from '@rollup/plugin-babel'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import { terser } from 'rollup-plugin-terser'; | ||
import vue from 'rollup-plugin-vue'; | ||
|
||
export default [ | ||
// UMD | ||
{ | ||
input: 'src/index.js', | ||
output: { | ||
format: 'umd', | ||
name: 'v-grid-layout', | ||
file: 'dist/v-grid-layout.umd.min.js', | ||
globals: { | ||
'@vue/composition-api': 'vueCompositionApi', | ||
}, | ||
}, | ||
plugins: [ | ||
babel({ | ||
babelHelpers: 'bundled', | ||
exclude: 'node_modules/**', | ||
}), | ||
commonjs(), | ||
terser(), | ||
vue(), | ||
], | ||
external: ['@vue/composition-api'], | ||
}, | ||
// CommonJS build | ||
{ | ||
input: 'src/index.js', | ||
output: { | ||
format: 'cjs', | ||
name: 'v-grid-layout', | ||
file: 'dist/v-grid-layout.cjs.min.js', | ||
}, | ||
plugins: [ | ||
babel({ | ||
babelHelpers: 'bundled', | ||
exclude: 'node_modules/**', | ||
}), | ||
commonjs(), | ||
terser(), | ||
vue(), | ||
], | ||
external: ['@vue/composition-api'], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
hooks: { | ||
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS', | ||
'pre-commit': 'npm run lint', | ||
'pre-push': 'npm run lint', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
}, | ||
"exclude": ["node_modules", "dist"] | ||
} |
Oops, something went wrong.