-
Notifications
You must be signed in to change notification settings - Fork 739
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
Showing
444 changed files
with
588 additions
and
919 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,14 @@ | ||
# just a flag | ||
ENV = 'development' | ||
|
||
# base api | ||
VUE_APP_BASE_API = '/dev-api' | ||
|
||
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, | ||
# to control whether the babel-plugin-dynamic-import-node plugin is enabled. | ||
# It only does one thing by converting all import() to require(). | ||
# This configuration can significantly increase the speed of hot updates, | ||
# when you have a large number of pages. | ||
# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js | ||
|
||
VUE_CLI_BABEL_TRANSPILE_MODULES = 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,6 @@ | ||
# just a flag | ||
ENV = 'production' | ||
|
||
# base api | ||
VUE_APP_BASE_API = '/prod-api' | ||
|
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,8 @@ | ||
NODE_ENV = production | ||
|
||
# just a flag | ||
ENV = 'staging' | ||
|
||
# base api | ||
VUE_APP_BASE_API = '/stage-api' | ||
|
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build/*.js | ||
config/*.js | ||
src/assets | ||
public | ||
dist |
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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: node_js | ||
node_js: stable | ||
node_js: 10 | ||
script: npm run test | ||
notifications: | ||
email: 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
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 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/app' | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
const { run } = require('runjs') | ||
const chalk = require('chalk') | ||
const config = require('../vue.config.js') | ||
const rawArgv = process.argv.slice(2) | ||
const args = rawArgv.join(' ') | ||
|
||
if (process.env.npm_config_preview || rawArgv.includes('--preview')) { | ||
const report = rawArgv.includes('--report') | ||
|
||
run(`vue-cli-service build ${args}`) | ||
|
||
const port = 9526 | ||
const publicPath = config.publicPath | ||
|
||
var connect = require('connect') | ||
var serveStatic = require('serve-static') | ||
const app = connect() | ||
|
||
app.use( | ||
publicPath, | ||
serveStatic('./dist', { | ||
index: ['index.html', '/'] | ||
}) | ||
) | ||
|
||
app.listen(port, function () { | ||
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`)) | ||
if (report) { | ||
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`)) | ||
} | ||
|
||
}) | ||
} else { | ||
run(`vue-cli-service build ${args}`) | ||
} |
Binary file not shown.
Oops, something went wrong.