-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stas Karpov
committed
Mar 17, 2017
1 parent
76e321e
commit c377d7a
Showing
12 changed files
with
921 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"presets": ["es2015"], | ||
"plugins": ["transform-runtime"], | ||
"comments": false | ||
} |
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,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 |
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,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" | ||
] | ||
} |
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 @@ | ||
node_modules |
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,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 | ||
}) | ||
}; |
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,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" | ||
} | ||
} |
Oops, something went wrong.