Skip to content

Commit

Permalink
feat: Initial draft for v0.5.0
Browse files Browse the repository at this point in the history
rstoenescu committed Jul 19, 2016
1 parent 0469077 commit 3bd224e
Showing 478 changed files with 6,485 additions and 25,743 deletions.
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"env": {
"development": {
"presets": ["es2015", "stage-2"],
"comments": false
},
"production": {
"presets": ["es2015-rollup"],
"comments": false
}
}
}
5 changes: 3 additions & 2 deletions .bithoundrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"ignore": [
"**/*dependencies*",
"dist/**"
"dist/**",
"test/**",
"dev/**"
]
}
22 changes: 22 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
root: true,
parserOptions: {
sourceType: 'module'
},
env: {
browser: true
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
'rules': {
'arrow-parens': 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'one-var': [2, 'always'],
'brace-style': [2, 'stroustrup', { 'allowSingleLine': true }]
}
}
32 changes: 0 additions & 32 deletions .eslintrc.json

This file was deleted.

13 changes: 5 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/node_modules
/dist
/coverage
/preview/node_modules
preview/coverage
/preview/dist
/preview/wrapper/platforms/*
/preview/wrapper/plugins
.DS_Store
node_modules/
dist/
npm-debug.log
test/unit/coverage/
test/e2e/dist/
35 changes: 0 additions & 35 deletions .stylintrc

This file was deleted.

Empty file removed CHANGELOG.md
Empty file.
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Razvan Stoenescu
Copyright (c) 2016 Razvan Stoenescu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ Head on to the Quasar Framework official website: [http://quasar-framework.org](
## Related Components

* [Quasar Framework CLI](https://github.com/rstoenescu/quasar-cli)
* [Quasar Framework Templates](https://github.com/rstoenescu/quasar-templates)

## Contributing

3 changes: 3 additions & 0 deletions build/git-hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

npm run lint
9 changes: 9 additions & 0 deletions build/hot-reload.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* eslint-disable */
require('eventsource-polyfill')
var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')

hotClient.subscribe(function (event) {
if (event.action === 'reload') {
window.location.reload()
}
})
21 changes: 21 additions & 0 deletions build/karma.base.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
var webpackConfig = require('./webpack.test.config')

delete webpackConfig.entry
webpackConfig.devtool = 'inline-source-map'

// shared config for all unit tests
module.exports = {
frameworks: ['jasmine'],
files: [
'../test/unit/lib/jquery.js',
'../test/unit/index.js'
],
preprocessors: {
'../test/unit/index.js': ['webpack', 'sourcemap']
},
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true
},
singleRun: true
}
18 changes: 18 additions & 0 deletions build/karma.cover.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var
assign = require('object-assign'),
base = require('./karma.base.config.js')

module.exports = function (config) {
var options = assign(base, {
browsers: ['PhantomJS'],
reporters: ['progress', 'coverage'],
coverageReporter: {
reporters: [
{ type: 'lcov', dir: '../test/unit/coverage', subdir: '.' },
{ type: 'text-summary', dir: '../test/unit/coverage', subdir: '.' }
]
}
})

config.set(options)
}
83 changes: 83 additions & 0 deletions build/karma.sauce.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@

/**
* Having too many tests running concurrently on saucelabs
* causes timeouts and errors, so we have to run them in
* smaller batches.
*/

var
assign = require('object-assign'),
base = require('./karma.base.config.js'),
batches = [
// the cool kids
{
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 7'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox'
},
sl_mac_safari: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.10'
}
},
// ie family
{
sl_ie_9: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '9'
},
sl_ie_10: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8',
version: '10'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8.1',
version: '11'
}
},
// mobile
{
sl_ios_safari: {
base: 'SauceLabs',
browserName: 'iphone',
platform: 'OS X 10.9',
version: '7.1'
},
sl_android: {
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
version: '4.2'
}
}
]

module.exports = function (config) {
var batch = batches[process.argv[4] || 0]

config.set(assign(base, {
browsers: Object.keys(batch),
customLaunchers: batch,
reporters: ['progress', 'saucelabs'],
sauceLabs: {
testName: 'Quasar Framework unit tests',
recordScreenshots: false,
build: process.env.CIRCLE_BUILD_NUM || process.env.SAUCE_BUILD_ID || Date.now()
},
// mobile emulators are really slow
captureTimeout: 300000,
browserNoActivityTimeout: 300000
}))
}
10 changes: 10 additions & 0 deletions build/karma.unit.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var
assign = require('object-assign'),
base = require('./karma.base.config.js')

module.exports = function (config) {
config.set(assign(base, {
browsers: ['Chrome', 'Firefox'],
reporters: ['progress']
}))
}
Loading
Oops, something went wrong.

0 comments on commit 3bd224e

Please sign in to comment.