Commit Graph

3306 Commits

Author SHA1 Message Date
Alexander Lichter
653f4c20ff chore: add missing package deps & upgrade to webpack-bundle-analyzer@3 (#3878)
<!--- Provide a general summary of your changes in the title above -->

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)


## Description
<!--- Describe your changes in detail -->
<!--- Why is this change required? What problem does it solve? -->
<!--- If it resolves an open issue, please link to the issue here. For example "Resolves: #1337" -->



## Checklist:
<!--- Put an `x` in all the boxes that apply. -->
<!--- If your change requires a documentation PR, please link it appropriately -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly. (PR: #)
- [ ] I have added tests to cover my changes (if not applicable, please state why)
- [x] All new and existing tests passed.
2018-09-13 09:15:18 +01:00
Clark Du
c77fa479f6 feat(webpack, builder): allow extending loader options (#3799) 2018-09-10 12:57:01 +04:30
Alexander Lichter
1e0219543a feat: automatically include env variables starting with NUXT_ENV_ (#3862) 2018-09-09 01:38:25 +04:30
Alexander Lichter
f87992530e feat(webpack/client): minify extracted css assets (#3857) 2018-09-09 01:18:46 +04:30
Alexander Lichter
b74d537cba feat(renderer): make compression middleware customizable (#3863) 2018-09-09 00:48:14 +04:30
Sébastien Chopin
baaf67def6 Revert "env: Add NUXT_ROOT_DIR env to work with pm2"
This reverts commit 17275d52df.
2018-09-06 14:35:51 +02:00
Sébastien Chopin
17275d52df
env: Add NUXT_ROOT_DIR env to work with pm2 2018-09-06 14:27:56 +02:00
Clark Du
14e608bf43 refactor: tiny change on filename escape pattern 2018-09-05 16:13:35 +01:00
Clark Du
3ca2f02674
fix: move babel polyfill to dependencies 2018-09-04 22:05:19 +01:00
Alexander Lichter
3a0f094a7a chore: add a PR template (#3840) 2018-09-03 10:30:25 +01:00
Alexander Lichter
31ec2a24d4 feat: replace opencollective-cli with @nuxtjs/opencollective (#3836) 2018-09-02 17:19:18 +02:00
Alexander Lichter
6e8a51509c feat(builder, module): allow error layouts to be added through addLayout. closes #3194. (#3834) 2018-09-02 13:52:10 +04:30
Jonas Galvez
72479687d9 feat(core, cli): builtin support of https and unix sockets (#3831)
Co-authored-by: Aurélien Chrétien <aurelien@manager.one>
Co-authored-by: Rémy Sanchez <remy.sanchez@hyperthese.net>
2018-09-02 13:50:25 +04:30
Pooya Parsa
4f6a048a4b fix(ci): use registry.npmjs.org instead of registry.yarnpkg.com 2018-09-02 13:27:44 +04:30
Dmitry Molotkov
9a702809ee fix: window nuxt build by using cross-spawn (#3833)
node spawnSync have issues on windows and building fails with it with ENOENT error
2018-09-01 21:44:57 +01:00
Dmitry Molotkov
00ea57937e fix(nuxt-start): add missing dependencies (#3832) 2018-09-02 00:57:10 +04:30
Ahad Birang
bceddf5bcf feat(router): add support for props and alias (#3818) 2018-09-01 09:03:28 +04:30
Indrek Ardel
674e9ed545 feat(builder, webpack): allow loading webp images as assets (#3827) 2018-09-01 08:56:10 +04:30
Clark Du
40aae73d5b
feat: enable runtimeChunk for extracting manifest chunk 2018-08-31 22:47:49 +01:00
Clark Du
b11e9c0e51
feat: upgrade eslint to 5.x (#3494)
- [ ] babel-eslint https://github.com/babel/babel-eslint/issues/664
- [x] eslint-config-standard-jsx https://github.com/standard/eslint-config-standard-jsx/issues/32
- [x] eslint-config-standard to be stable release https://github.com/standard/eslint-config-standard/issues/123
- [x] eslint-plugin-html
- [x] eslint-plugin-import
- [x] eslint-plugin-jest
- [x] eslint-plugin-node
- [x] eslint-plugin-promise
- [x] eslint-plugin-standard https://github.com/standard/eslint-plugin-standard/issues/29
- [x] eslint-plugin-vue https://github.com/vuejs/eslint-plugin-vue/pull/504
- [x] eslint-plugin-react https://github.com/yannickcr/eslint-plugin-react/releases/tag/v7.10.0
2018-08-31 21:34:12 +01:00
Clark Du
fa01cd76ff
fix: type of buildSuffix 2018-08-31 20:56:21 +01:00
Clark Du
76d6ab4190
refactor: make build suffix dynamically 2018-08-31 20:55:13 +01:00
Clark Du
510c9e2dc4
fix: convertTo suffix log 2018-08-31 20:52:24 +01:00
Clark Du
783ef46cff
refactor: simplify package.js 2018-08-31 20:48:33 +01:00
Clark Du
c20034b994
refactor: use logger in package.js 2018-08-31 20:32:30 +01:00
Clark Du
fe2dd22c14
refactor: resolve packageJS one time 2018-08-31 20:26:51 +01:00
Pooya Parsa
4ad1528b84 perf(circleCI): build edge on release step
Without this we have to persist everything again at build step which adds ~1min
2018-08-31 23:35:55 +04:30
Pooya Parsa
2e5edaa572 fix(circleci): persist all changes for release step 2018-08-31 23:26:37 +04:30
Pooya Parsa
fdd88547f7 fix(build/package): trim logs 2018-08-31 23:26:26 +04:30
Pooya Parsa
f85465386c
feat: move nuxt-legacy and nuxt-start into packages (#3824) 2018-08-31 22:51:41 +04:30
Clark Du
4311aca5cb refactor: update nuxt-start dependencies dynamically (#3816) 2018-08-30 20:47:41 +04:30
Clark Du
aeb33e0c94 fix: nuxt-start-edge missing resources 2018-08-29 07:45:19 +01:00
Clark Du
67528f1ba3
fix: bin folder name 2018-08-28 22:25:13 +01:00
Clark Du
dca1425cfe fix(nuxt-start): update dependencies (#3815) 2018-08-29 01:38:57 +04:30
Clark Du
7e77c82c5b
feat: upgrade babel to 7.0.0 (#3814) 2018-08-28 21:57:17 +01:00
Pooya Parsa
83d9dc4105 test: add tests for validate with error 2018-08-25 22:24:16 +04:30
Pooya Parsa
87d303845f chore: remove extra validationError
as @clarkdo mentioned
2018-08-25 21:56:42 +04:30
Jonas Galvez
608b913b8a feat: async validate() (#3797) 2018-08-25 14:12:00 +04:30
Mihal Malostanidis
a2168ae4f9 nit: Make fs more parallel 😂👌 (#3795) 2018-08-24 19:20:57 +01:00
Pooya Parsa
ac841edf62 use exact version for @babel/preset-env 2018-08-24 20:26:55 +04:30
Pooya Parsa
f7ca6cd2a2 chore: update dependencies (#3794)
Remaining:

- For `css-loader`: #3741
- For `eslint`: #3494
- For `postcss`: #3679
2018-08-24 16:53:30 +01:00
Pim
43f639b88e fix: fallback should always be a string (#3792)
The SPA fallback option should always be a string, if the user configuration was specifed as boolean true it should have been replaced by the default string value (currently 404.html) in lib/common/options.js

Added test on empty string

Added missing test for spa-fallback.html
2018-08-23 19:33:02 +02:00
Clark Du
ba5df53042 refactor: remove unnecessary splitChunks process (#3791) 2018-08-23 15:48:05 +02:00
Clark Du
567dc860c1 feat: new filenames structure (#3789)
* feat: new filenames structure

* refactor: codes format

* refactor: remove [path] in output filename

* refactor: use chunkhash for js files

* refactor: remove normalizeFileName
2018-08-22 23:54:08 +02:00
Sébastien Chopin
22559a838c
code: Update code style, remove else 2018-08-22 20:12:07 +02:00
Clark Du
e8414291b4
refactor: functional filename should be called from webpack (#3788)
@Atinux Improvement for #3787
2018-08-22 16:47:52 +01:00
Alexander Lichter
3e027269c0 feat: merge renderAndGetWindow options (#3761)
* feat: merge renderAndGetWindow options

* fix: typoe

* refactor: remove explicit comparison for truthy value

* fix: setup defaults correctly

* test: add custom params test
2018-08-22 17:14:15 +02:00
Clark Du
3612ecd435 feat: support functional filenames (#3787) 2018-08-22 17:08:51 +02:00
Clark Du
8230354d1b feat: webpack refactor (#3747)
* refactor: use more standard entrypoint config

* refactor: fix dev entry name

* refactor: webpack devtool and optimization
2018-08-22 16:24:47 +02:00
Clark Du
3f7c5f64ed
fix: async fetch and asyncData not trigger ErrorHandler (#3781) 2018-08-22 14:10:43 +01:00