Skip to content

Commit

Permalink
Delta-321 Quasar Boilerplate > Version > Upgrade to v0.16 (#22)
Browse files Browse the repository at this point in the history
Approved By:
- @cedricabuso 
- @wilbertverayin 

* Updated .gitignore
* Updated package.json for initial upgrade setup
* Updated .babelrc
* Updated .eslintrc.js
* Added .postcssrc.js
* Added PWA setup
* Updated .eslintignore
* Removed unnecessary files after upgrade
* Added esdoc and vue to resolve deps issue
* Removed test setup. Use jest later
* Removed templates folder - not needed anymore
* Initial src setup
* Only add proxy options when needed
* Ignore .quasar directory
* Removed sample module
* Updated .editorconfig to follow eslint:vue
* Removed quasar assets
* Renamed main logo file
* Refactor sample quasar app to follow eslint rules
* Added vue-router as dependency
* Removed sample app to avoid future conflicts
* Use strict mode in Vuex when not in prod mode
* Updated process.env config
* Refactored to follow eslint
* Added google analytics integration
* Remove default quasar options
* Integrated google analytics and build time config
* Fix moment build size issue
* Updated axios plugin
* Added Vuelidate plugin
* Added jwt plugin
* Added google-api plugin
* Use Freedom icon as default PWA icons
* Added i18next plugin
* Added LanguageSelector component
* Add option to disable analyze tool on build
* Use only $axios for uniformity
* Apply company standards to eslint
* Update quasar.conf.js
- Uncomment only the plugins you need
- PWA manifest depends on package.json fields
  - manifest.name = pkg.productName
  - manifest.short_name = pkg.name
  - manifest.description = pkg.description
* Added lodash alias for lodash-es
  • Loading branch information
Ferriel Melarpis authored May 29, 2018
1 parent 84e3f76 commit 971681b
Show file tree
Hide file tree
Showing 104 changed files with 659 additions and 2,643 deletions.
37 changes: 21 additions & 16 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
{
"presets": [
[
"env",
"@babel/preset-env",
{
"modules": false
"modules": false,
"loose": false,
"useBuiltIns": "usage"
}
],
"stage-2"
[
"@babel/preset-stage-2",
{
"modules": false,
"loose": false,
"useBuiltIns": true,
"decoratorsLegacy": true
}
]
],
"plugins": [
"transform-runtime"
[
"@babel/transform-runtime",
{
"polyfill": false,
"regenerator": false
}
]
],
"comments": false,
"env": {
"test": {
"presets": [
"env",
"stage-2"
],
"plugins": [
"istanbul"
]
}
}
"comments": false
}
6 changes: 3 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
build/*.js
config/*.js
dist/*.js
/dist
quasar.conf.js
config/
52 changes: 36 additions & 16 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ module.exports = {
sourceType: 'module'
},
env: {
browser: true,
node: true,
es6: true,
browser: true
},
extends: [
// https://github.com/eslint/eslint/blob/master/conf/eslint-recommended.js
Expand All @@ -20,28 +18,50 @@ module.exports = {
],
// required to lint *.vue files
plugins: [
'html',
'import'
'vue',
'import',
],
globals: {
'ga': true, // Google Analytics
'cordova': true,
'DEV': true,
'PROD': true,
'__THEME': true
'__statics': true,
'process': true,
},
// add your custom rules here
'rules': {
// company standard
'vue/html-indent': ['error', 4, {
'attribute': 1,
'closeBracket': 0,
'alignAttributesVertically': true,
'ignores': []
}],
'vue/script-indent': ['error', 4, {
'baseIndent': 1,
'switchCase': 1,
'ignores': []
}],
'semi': ['error', 'always'],

// allow async-await
'generator-star-spacing': 'off',

// allow paren-less arrow functions
'arrow-parens': 0,
'one-var': 0,
'import/first': 0,
'import/named': 2,
'import/namespace': 2,
'import/default': 2,
'import/export': 2,
'arrow-parens': 'off',
'one-var': 'off',

'import/first': 'off',
'import/named': 'error',
'import/namespace': 'error',
'import/default': 'error',
'import/export': 'error',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',

// allow console and debugger during development
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'brace-style': [2, 'stroustrup', { 'allowSingleLine': true }]
'brace-style': ['error', 'stroustrup', { 'allowSingleLine': true }]
}
};
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,16 @@ typings/

# dependencies lock file
package-lock.json
yarn.lock

# Quasar Framework ignored files
.quasar
.DS_Store
.thumbs.db
dist/
cordova/platforms
cordova/plugins
/src-cordova/platforms
/src-cordova/plugins
/src-cordova/www

# esdoc
docs/
8 changes: 8 additions & 0 deletions .postcssrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// https://github.com/michael-ciniawsky/postcss-load-config

module.exports = {
plugins: [
// to edit target browsers: use "browserslist" field in package.json
require('autoprefixer')
]
};
90 changes: 0 additions & 90 deletions build/css-utils.js

This file was deleted.

12 changes: 0 additions & 12 deletions build/env-utils.js

This file was deleted.

78 changes: 0 additions & 78 deletions build/fs-utils.js

This file was deleted.

12 changes: 0 additions & 12 deletions build/google-analytics.js

This file was deleted.

3 changes: 0 additions & 3 deletions build/hot-reload.js

This file was deleted.

Loading

0 comments on commit 971681b

Please sign in to comment.