Skip to content

Commit 0ed883f

Browse files
rwb7041JasonGrubb
authored andcommitted
Merged in beltrw_mods (pull request #1)
Beltrw mods * babel should keep code comments. (fix vuejs-templates#730) (vuejs-templates#753) They are necessary for webpacks "magic comments" to work, e.g. with `import(/* webpackChunkName: "chunk1" */ './component.vue')` * build: Configure targets.browser for babel-preset-env (vuejs-templates#763) * Remove inconsistent spacing (vuejs-templates#754) * feat(gitignore): include common editor directories (vuejs-templates#774) * feat(gitignore): include common editor directories add common editor files and directories to .gitignore closes vuejs-templates#772 * feat(gitignore): remove .vscode directory remove .vscode directory from .gitignore * Video audio loader (vuejs-templates#765) * gitignore vscode * media loader audio and video tag * Remove vscode gitignore * Add \n back * fix missing closing bracket * add default values (img, image) * Upgrade vue-router to v2.6.0 (vuejs-templates#777) * Fix console error (vuejs-templates#784) Fix console error`Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING` * Fix proxy example (fix vuejs-templates#780) the glob pattern was too narrow, woudl not catch subpaths. * Fix autoprefixer explanation (vuejs-templates#798) The parameter to set in package.json is named "browserslist". * chore: Bump dev dependencies for template (vuejs-templates#790) * fix: Use false to disable webpack-hot-middleware log (vuejs-templates#778) * Move Chat: Gitter -> Discord (vuejs-templates#869) * Remove unnecessary space and comma (vuejs-templates#866) * load webpack.prod.conf when NODE_ENV=production (vuejs-templates#864) * Return exit code 1 when npm run build fails (vuejs-templates#854) * fix standard eslint config link (vuejs-templates#834) * fix ci build faild (vuejs-templates#857) * Removing Vue.config.debug usage from documentation (vuejs-templates#871) * Removing Vue.config.debug usage from documentation It has been removed; https://vuejs.org/v2/guide/migration.html#Vue-config-debug-removed * Update env.md * fixed vue-router dependency(need vue-loader@^13.0.0) (vuejs-templates#876) * bump vue & vue-router dependencies * Specify the address to listen on (vuejs-templates#759) Currently, this causes the dev server to listen on all addresses by default, which is not the intended behavior, imo. * add HashedModuleIdsPlugin when build (vuejs-templates#870) * Add support for linked modules (vuejs-templates#688) * chore(package): rm unused lolex dependency(dev) (vuejs-templates#803) * fix vuejs-templates#877 * Revert vuejs-templates#688, fix vuejs-templates#879 We have to investigate how we can get vuejs-templates#688 work without the error reported in vuejs-templates#879 * revert: vuejs-templates#759 That's actually not a good idea when you e.g. want to access the dev server from your mobile. * - Re-added check for router - Modified eslint file to use standard and have M be a global Approved-by: Jason Grubb <grubbjt@appstate.edu>
1 parent 22fd0d5 commit 0ed883f

21 files changed

+108
-39
lines changed

circle.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
machine:
22
node:
3-
version: 6
3+
version: stable
4+
5+
dependencies:
6+
pre:
7+
- sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list'
8+
- sudo apt-get update
9+
- sudo apt-get install google-chrome-stable
410

511
test:
612
override:

docs/env.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ So, the environment variables are:
4242

4343
As we can see, `test.env` inherits the `dev.env` and the `dev.env` inherits the `prod.env`.
4444

45-
### Usage
45+
### Usage
4646

47-
It is simple to use the environment variables in your code. For example:
47+
It is simple to use the environment variables in your code. For example:
4848

49-
```js
50-
Vue.config.debug = process.env.DEBUG_MODE
51-
```
49+
```js
50+
Vue.config.productionTip = process.env.NODE_ENV === 'production'
51+
```

docs/proxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ In addition to static urls you can also use glob patterns to match URLs, e.g. `/
3131

3232
``` js
3333
proxyTable: {
34-
'*': {
34+
'**': {
3535
target: 'http://jsonplaceholder.typicode.com',
3636
filter: function (pathname, req) {
3737
return pathname.match('^/api') && req.method === 'GET'

meta.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ module.exports = {
2424
"type": "string",
2525
"message": "Author"
2626
},
27+
"router": {
28+
"type": "confirm",
29+
"message": "Install vue-router?"
30+
},
2731
"unit": {
2832
"type": "confirm",
2933
"message": "Setup unit tests with Karma + Mocha?"
@@ -37,7 +41,8 @@ module.exports = {
3741
"config/test.env.js": "unit || e2e",
3842
"test/unit/**/*": "unit",
3943
"build/webpack.test.conf.js": "unit",
40-
"test/e2e/**/*": "e2e"
44+
"test/e2e/**/*": "e2e",
45+
"src/router/**/*": "router"
4146
},
4247
"completeMessage": "To get started:\n\n {{^inPlace}}cd {{destDirName}}\n {{/inPlace}}npm install\n npm run dev\n\nDocumentation can be found at https://github.com/JasonGrubb/webpack"
4348

template/.babelrc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
22
"presets": [
3-
["env", { "modules": false }],
3+
["env", {
4+
"modules": false,
5+
"targets": {
6+
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
7+
}
8+
}],
49
"stage-2"
510
],
611
"plugins": ["transform-runtime"],
7-
"comments": false,
812
"env": {
913
"test": {
1014
"presets": ["env", "stage-2"],
11-
"plugins": [ "istanbul" ]
15+
"plugins": ["istanbul"]
1216
}
1317
}
1418
}

template/.eslintrc.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ module.exports = {
1414
'_' : true,
1515
'utils': true,
1616
'opts' : true,
17-
'vue' : true
17+
'vue' : true,
18+
'M' : true
1819
},
19-
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
20-
extends: 'vue',
20+
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
21+
extends: 'standard',
2122
// required to lint *.vue files
2223
plugins: [
2324
'html'

template/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ test/unit/coverage
1111
test/e2e/reports
1212
selenium-debug.log
1313
{{/e2e}}
14+
15+
# Editor directories and files
16+
.idea
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln

template/.postcssrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module.exports = {
44
"plugins": {
5-
// to edit target browsers: use "browserlist" field in package.json
5+
// to edit target browsers: use "browserslist" field in package.json
66
"autoprefixer": {}
77
}
88
}

template/build/build.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
2626
chunkModules: false
2727
}) + '\n\n')
2828

29+
if (stats.hasErrors()) {
30+
console.log(chalk.red(' Build failed with errors.\n'))
31+
process.exit(1)
32+
}
33+
2934
console.log(chalk.cyan(' Build complete.\n'))
3035
console.log(chalk.yellow(
3136
' Tip: built files are meant to be served over an HTTP server.\n' +

template/build/build_preprod.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ rm(path.join(config.build_preprod.assetsRoot, config.build_preprod.assetsSubDire
2626
chunkModules: false
2727
}) + '\n\n')
2828

29+
if (stats.hasErrors()) {
30+
console.log(chalk.red(' Build failed with errors.\n'))
31+
process.exit(1)
32+
}
33+
2934
console.log(chalk.cyan(' Build complete.\n'))
3035
console.log(chalk.yellow(
3136
' Tip: built files are meant to be served over an HTTP server.\n' +

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy