Skip to content

Commit

Permalink
Merge branch 'davestewart-feature/folder-refactor' into feature/folde…
Browse files Browse the repository at this point in the history
…r-refactor
  • Loading branch information
kutlugsahin committed Nov 18, 2018
2 parents 654cc88 + 33eaff1 commit 2766220
Show file tree
Hide file tree
Showing 67 changed files with 16,106 additions and 8,334 deletions.
23 changes: 12 additions & 11 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"presets": [
["env", {
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
}
}],
"stage-2"
],
"plugins": ["transform-vue-jsx", "transform-runtime"]
}
"env": {
"testing": {
"presets":[
["env", { "modules": false }],
"react",
],
"plugins": [
"transform-es2015-modules-commonjs",
]
}
}
}
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

22 changes: 2 additions & 20 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// https://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
parserOptions: {
Expand All @@ -8,24 +6,8 @@ module.exports = {
env: {
browser: true,
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'standard'
],
// required to lint *.vue files
plugins: [
'vue'
],
// add your custom rules here
extends: 'standard',
rules: {
'semi': 1,
'no-extra-semi': 1,
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
'comma-dangle': 0,
}
}
16 changes: 9 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
.DS_Store
node_modules/
/dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
dist/
npm-debug.log
yarn-error.log

build/.rpt2_cache
tests/coverage
/coverage


# Editor directories and files
.idea
.vscode
.idea
*.suo
*.ntvs*
*.njsproj
*.sln

vue-smooth-dnd/dist
10 changes: 0 additions & 10 deletions .postcssrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# vue-smooth-dnd
# Vue Smooth DnD

A fast and lightweight drag&drop, sortable library for Vue.js with many configuration options covering many d&d scenarios.

Expand Down
3 changes: 3 additions & 0 deletions build/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bundle of: <%= pkg.name %>
Generated: <%= moment().format('YYYY-MM-DD') %>
Version: <%= pkg.version %>
41 changes: 0 additions & 41 deletions build/build.js

This file was deleted.

54 changes: 0 additions & 54 deletions build/check-versions.js

This file was deleted.

Binary file removed build/logo.png
Binary file not shown.
53 changes: 53 additions & 0 deletions build/rollup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// ------------------------------------------------------------------------------------------
// setup
// ------------------------------------------------------------------------------------------

import path from 'path'
import license from 'rollup-plugin-license'
import commonjs from 'rollup-plugin-commonjs'
import uglify from 'rollup-plugin-uglify'
import buble from 'rollup-plugin-buble'

const pkg = require('../package.json')
const external = Object.keys(pkg.dependencies || {})
const name = pkg.name
const className = name.replace(/(^\w|-\w)/g, c => c.replace('-', '').toUpperCase())

function output (ext, format = 'umd') {
return {
name: className,
file: `dist/${name}.${ext}`,
format: format,
exports: 'named',
}
}

// ------------------------------------------------------------------------------------------
// build
// ------------------------------------------------------------------------------------------

const umd = {
input: 'src/main.js',
external: external,
output: output('js'),
plugins: [
license({
banner: {
file: path.join(__dirname, 'banner.txt')
},
}),
commonjs(),
buble()
]
}

const min = Object.assign({}, umd, {
output: output('min.js'),
plugins: [...umd.plugins, uglify()]
})

const es = Object.assign({}, umd, {
output: output('esm.js', 'es')
})

export default [umd, min, es]
101 changes: 0 additions & 101 deletions build/utils.js

This file was deleted.

22 changes: 0 additions & 22 deletions build/vue-loader.conf.js

This file was deleted.

Loading

0 comments on commit 2766220

Please sign in to comment.