Skip to content

v1.0.11 #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## [vue](./README.md) version `changelog`

##### `v1.0.11`
- refactor: project directory structure
- update: vuejs-templates/webpack to `1.3.1`
- update: vue to `2.5.13`
- chore: dependencies update

##### `v1.0.10`
- fix: `className` -> `class`
- refactor: `<b-input-group-prepend>`
Expand Down Expand Up @@ -33,7 +39,7 @@
- refactor: Modal's ok-button variants
- refactor: forms with validation feedback
- update: bootstrap-vue to `1.1.0`
- update: to vue: `2.5.6`
- update: vue to `2.5.6`

###### `v1.0.5`
- update: bootstrap-vue to `1.0.x`
Expand Down
12 changes: 8 additions & 4 deletions Vue_Full_Project/.babelrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{
"presets": [
["env", { "modules": false }],
["env", {
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 9"]
}
}],
"stage-2"
],
"plugins": ["transform-runtime"],
"comments": false,
"plugins": ["transform-vue-jsx", "transform-runtime"],
"env": {
"test": {
"presets": ["env", "stage-2"],
"plugins": [ "istanbul" ]
"plugins": ["transform-vue-jsx", "istanbul"]
}
}
}
8 changes: 6 additions & 2 deletions Vue_Full_Project/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
build/*.js
config/*.js
/build/
/config/
/dist/
/*.js
/test/unit/coverage/
/test/e2e/specs
24 changes: 13 additions & 11 deletions Vue_Full_Project/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
// http://eslint.org/docs/user-guide/configuring
// https://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
parser: 'babel-eslint'
},
env: {
browser: true,
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'standard'
],
// required to lint *.vue files
plugins: [
'html'
'vue'
],
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
rules: {
// allow async-await
'generator-star-spacing': 0,
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
}
14 changes: 11 additions & 3 deletions Vue_Full_Project/.gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
.DS_Store
node_modules/
dist/
/dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
test/unit/coverage
test/e2e/reports
/test/unit/coverage/
/test/e2e/reports/
selenium-debug.log

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
4 changes: 3 additions & 1 deletion Vue_Full_Project/.postcssrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

module.exports = {
"plugins": {
// to edit target browsers: use "browserlist" field in package.json
"postcss-import": {},
"postcss-url": {},
// to edit target browsers: use "browserslist" field in package.json
"autoprefixer": {}
}
}
8 changes: 7 additions & 1 deletion Vue_Full_Project/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## [vue](./README.md) version `changelog`

##### `v1.0.11`
- refactor: project directory structure
- update: vuejs-templates/webpack to `1.3.1`
- update: vue to `2.5.13`
- chore: dependencies update

##### `v1.0.10`
- fix: `className` -> `class`
- refactor: `<b-input-group-prepend>`
Expand Down Expand Up @@ -33,7 +39,7 @@
- refactor: Modal's ok-button variants
- refactor: forms with validation feedback
- update: bootstrap-vue to `1.1.0`
- update: to vue: `2.5.6`
- update: vue to `2.5.6`

###### `v1.0.5`
- update: bootstrap-vue to `1.0.x`
Expand Down
6 changes: 3 additions & 3 deletions Vue_Full_Project/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# core-ui
# CoreUI Vue

> Open Source Admin Template
> CoreUI Vue Open Source Bootsrtap 4 Admin Template

## Build Setup

Expand All @@ -27,4 +27,4 @@ npm run e2e
npm test
```

For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
26 changes: 16 additions & 10 deletions Vue_Full_Project/build/build.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
'use strict'
require('./check-versions')()

process.env.NODE_ENV = 'production'

var ora = require('ora')
var rm = require('rimraf')
var path = require('path')
var chalk = require('chalk')
var webpack = require('webpack')
var config = require('../config')
var webpackConfig = require('./webpack.prod.conf')
const ora = require('ora')
const rm = require('rimraf')
const path = require('path')
const chalk = require('chalk')
const webpack = require('webpack')
const config = require('../config')
const webpackConfig = require('./webpack.prod.conf')

var spinner = ora('building for production...')
const spinner = ora('building for production...')
spinner.start()

rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
if (err) throw err
webpack(webpackConfig, function (err, stats) {
webpack(webpackConfig, (err, stats) => {
spinner.stop()
if (err) throw err
process.stdout.write(stats.toString({
colors: true,
modules: false,
children: false,
children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
chunks: false,
chunkModules: false
}) + '\n\n')

if (stats.hasErrors()) {
console.log(chalk.red(' Build failed with errors.\n'))
process.exit(1)
}

console.log(chalk.cyan(' Build complete.\n'))
console.log(chalk.yellow(
' Tip: built files are meant to be served over an HTTP server.\n' +
Expand Down
28 changes: 17 additions & 11 deletions Vue_Full_Project/build/check-versions.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
var chalk = require('chalk')
var semver = require('semver')
var packageConfig = require('../package.json')
var shell = require('shelljs')
'use strict'
const chalk = require('chalk')
const semver = require('semver')
const packageConfig = require('../package.json')
const shell = require('shelljs')

function exec (cmd) {
return require('child_process').execSync(cmd).toString().trim()
}

var versionRequirements = [
const versionRequirements = [
{
name: 'node',
currentVersion: semver.clean(process.version),
versionRequirement: packageConfig.engines.node
},
}
]

if (shell.which('npm')) {
Expand All @@ -23,9 +25,11 @@ if (shell.which('npm')) {
}

module.exports = function () {
var warnings = []
for (var i = 0; i < versionRequirements.length; i++) {
var mod = versionRequirements[i]
const warnings = []

for (let i = 0; i < versionRequirements.length; i++) {
const mod = versionRequirements[i]

if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
warnings.push(mod.name + ': ' +
chalk.red(mod.currentVersion) + ' should be ' +
Expand All @@ -38,10 +42,12 @@ module.exports = function () {
console.log('')
console.log(chalk.yellow('To use this template, you must update following to modules:'))
console.log()
for (var i = 0; i < warnings.length; i++) {
var warning = warnings[i]

for (let i = 0; i < warnings.length; i++) {
const warning = warnings[i]
console.log(' ' + warning)
}

console.log()
process.exit(1)
}
Expand Down
9 changes: 0 additions & 9 deletions Vue_Full_Project/build/dev-client.js

This file was deleted.

91 changes: 0 additions & 91 deletions Vue_Full_Project/build/dev-server.js

This file was deleted.

Loading