Skip to content

Commit

Permalink
Create test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed May 6, 2016
1 parent 8cfde38 commit a874195
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 122 deletions.
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": ["es2015", "stage-0"],
"plugins": ["transform-runtime"],
"comments": false
}
175 changes: 83 additions & 92 deletions dist/vue-form-generator.js

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions dist/vue-form-generator.min.js

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dev": "webpack-dev-server --config webpack.dev.config.js --inline --hot --content-base dev/",
"lint": "eslint --ext=.js,.vue src",
"coverage": "set TEST_TYPE=coverage & karma start karma.config.js",
"unit": "karma start test/unit/karma.conf.js --single-run",
"unit": "karma start test/unit/karma.conf.js",
"e2e": "node test/e2e/runner.js",
"test": "npm run lint && npm run unit && npm run e2e",
"ci": "karma start test/unit/karma.conf.js --auto-watch --no-single-run --reporters=dots"
Expand All @@ -22,6 +22,10 @@
"schema",
"json"
],
"repository": {
"type": "git",
"url": "https://github.com/icebob/vue-form-generator.git"
},
"files": [
"dist/vue-form-generator.js",
"dist/vue-form-generator.min.js",
Expand All @@ -32,11 +36,9 @@
"devDependencies": {
"babel-core": "6.7.7",
"babel-loader": "6.2.4",
"babel-plugin-espower": "2.1.2",
"babel-plugin-transform-runtime": "6.7.5",
"babel-preset-es2015": "6.6.0",
"babel-preset-stage-0": "6.5.0",
"babel-runtime": "5.8.38",
"chai": "3.5.0",
"css-loader": "0.23.1",
"eslint": "2.9.0",
Expand Down Expand Up @@ -77,6 +79,7 @@
"vue-loader": "8.2.3",
"vue-style-loader": "1.0.0",
"webpack": "1.13.0",
"webpack-dev-middleware": "1.6.1",
"webpack-dev-server": "1.14.1",
"webpack-merge": "0.12.0"
},
Expand Down
2 changes: 1 addition & 1 deletion test/unit/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function(config) {

reporters: ['spec', 'coverage'],

frameworks: ['mocha', 'chai'/*, 'sinon-chai'*/],
frameworks: ['mocha', 'chai', 'sinon-chai'],

files: ['./index.js'],

Expand Down
9 changes: 1 addition & 8 deletions webpack.build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@ var loaders = [
{
"test": /\.js?$/,
"exclude": /node_modules/,
"loader": "babel",
"query": {
"presets": [
"es2015",
"stage-0"
],
"plugins": []
}
"loader": "babel"
},
{
"test": /\.vue?$/,
Expand Down
9 changes: 1 addition & 8 deletions webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@ var loaders = [
{
"test": /\.js?$/,
"exclude": /node_modules/,
"loader": "babel",
"query": {
"presets": [
"es2015",
"stage-0"
],
"plugins": []
}
"loader": "babel"
},
{
"test": /\.css?$/,
Expand Down

0 comments on commit a874195

Please sign in to comment.