Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Stas Karpov committed Mar 17, 2017
1 parent 76e321e commit c377d7a
Show file tree
Hide file tree
Showing 12 changed files with 921 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": ["es2015"],
"plugins": ["transform-runtime"],
"comments": false
}
37 changes: 37 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

root = true

[vendor/**]
; use default in this files
indent_style =
indent_size =
trim_trailing_whitespace = false
insert_final_newline = false

[node_modules/**]
; use default in this files
indent_style =
indent_size =
trim_trailing_whitespace = false
insert_final_newline = false

[*.{js,coffee,html,yml,vue}]
end_of_line = lf
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{json}]
end_of_line = lf
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[Makefile]
indent_style = tab
19 changes: 19 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"extends": "airbnb-base",
"rules": {
"brace-style": [2, "stroustrup", { allowSingleLine: true}],
"func-names": 0,
"global-require": 0,
"no-console": 0,
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0
},
"env": {
"browser": true,
"jasmine": true
},
"plugins": [
"vue",
"jasmine"
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
30 changes: 30 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// we can just use the exact same webpack config by requiring it
// however, remember to delete the original entry since we don't
// need it during tests
var webpackConfig = require('./webpack.config.js')
delete webpackConfig.entry

// karma.conf.js
module.exports = function (config) {
config.set({
browsers: ['Chrome'],
frameworks: ['jasmine'],
// this is the entry file for all our tests.
files: ['test/index.js'],
helpers: ['spec_helper.js'],
// we will pass the entry file to webpack for bundling.
preprocessors: {
'test/index.js': ['webpack', 'sourcemap'],
},
// use the webpack config
webpack: webpackConfig,
// avoid walls of useless text
webpackMiddleware: {
noInfo: true
},
// define browsers
customLaunchers: {
},
// singleRun: true
})
};
64 changes: 64 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "vudal",
"version": "1.0.0",
"description": "Another modal window for vue",
"main": "vudal.vue",
"scripts": {
"test": "node node_modules/karma/bin/karma start",
"lint": "node node_modules/eslint/bin/eslint.js test vudal.vue plugin.js --ext js,vue || true"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Egorvah/vudal.git"
},
"keywords": [
"modal",
"vue",
"dialog",
"window"
],
"author": "Egor Vakhrushev",
"license": "ISC",
"bugs": {
"url": "https://github.com/Egorvah/vudal/issues"
},
"homepage": "https://github.com/Egorvah/vudal#readme",
"devDependencies": {
"babel-core": "^6.13.2",
"babel-loader": "^6.2.4",
"babel-plugin-transform-runtime": "^6.12.0",
"babel-preset-es2015": "^6.18.0",
"css-loader": "^0.25.0",
"eslint": "^3.9.1",
"eslint-config-airbnb": "^10.0.1",
"eslint-config-airbnb-base": "^7.1.0",
"eslint-import-resolver-webpack": "^0.5.1",
"eslint-plugin-import": "^1.13.0",
"eslint-plugin-jasmine": "^2.0.0",
"eslint-plugin-vue": "^0.1.1",
"jasmine": "^2.5.2",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "^2.5.2",
"jquery": "^3.1.1",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-jasmine": "^1.0.2",
"karma-phantomjs-launcher": "^1.0.2",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^1.8.0",
"phantomjs": "^2.1.7+deprecated",
"vue-template-compiler": "2.2.4",
"vue-loader": "^10.0",
"webpack": "1"
},
"peerDependencies": {
"jquery": "^3.2.0",
"vue": "^2.2.4"
},
"dependencies": {
"element-resize-event": "^2.0.7",
"mobile-detect": "^1.3.5",
"object-assign": "^4.1.1",
"proxy-polyfill": "^0.1.6"
}
}
Loading

0 comments on commit c377d7a

Please sign in to comment.