···11+MIT License
22+33+Copyright (c)
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
+64
README.md
···11+[](https://timings.nuxtjs.org)
22+33+# nuxt-timings
44+55+[![npm version][npm-version-src]][npm-version-href]
66+[![npm downloads][npm-downloads-src]][npm-downloads-href]
77+[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
88+[![Codecov][codecov-src]][codecov-href]
99+[![License][license-src]][license-href]
1010+1111+> Full visibility into your Nuxt render time for optimising performance
1212+1313+## Features
1414+1515+- Uses Nuxt `server.timings` to inject additional timings
1616+- Adds timings for Nuxt plugins and Vuex actions/mutations
1717+1818+## Quick setup
1919+2020+1. Add `nuxt-timings` dependency to your project
2121+2222+```bash
2323+yarn add nuxt-timings # or npm install nuxt-timings
2424+```
2525+2626+2. Add `nuxt-timings` to the `buildModules` section of `nuxt.config.js`
2727+2828+```js
2929+{
3030+ buildModules: [
3131+ 'nuxt-timings',
3232+ ],
3333+ timings: {
3434+ // default value
3535+ enabled: process.env.NODE_ENV === 'development'
3636+ }
3737+}
3838+```
3939+4040+## Development
4141+4242+1. Clone this repository
4343+2. Install dependencies using `yarn install`
4444+3. Start development server using `yarn dev`
4545+4646+## License
4747+4848+[MIT License](./LICENSE)
4949+5050+<!-- Badges -->
5151+[npm-version-src]: https://img.shields.io/npm/v/nuxt-timings/latest.svg
5252+[npm-version-href]: https://npmjs.com/package/nuxt-timings
5353+5454+[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-timings.svg
5555+[npm-downloads-href]: https://npmjs.com/package/nuxt-timings
5656+5757+[github-actions-ci-src]: https://github.com/danielroe/nuxt-timings-module/workflows/ci/badge.svg
5858+[github-actions-ci-href]: https://github.com/danielroe/nuxt-timings-module/actions?query=workflow%3Aci
5959+6060+[codecov-src]: https://img.shields.io/codecov/c/github/danielroe/nuxt-timings-module.svg
6161+[codecov-href]: https://codecov.io/gh/danielroe/nuxt-timings-module
6262+6363+[license-src]: https://img.shields.io/npm/l/nuxt-timings.svg
6464+[license-href]: https://npmjs.com/package/nuxt-timings
···11+# Global settings applied to the whole site.
22+#
33+# “base” is the directory to change to before starting build. If you set base:
44+# that is where we will look for package.json/.nvmrc/etc, not repo root!
55+# “command” is your build command.
66+# “publish” is the directory to publish (relative to the root of your repo).
77+88+[build]
99+ base = "docs"
1010+ command = "yarn && yarn generate"
1111+ publish = "dist"
···11+---
22+name: Bug report
33+about: Report a bug report to help us improve the module.
44+title: ''
55+labels: bug
66+assignees: ''
77+88+---
99+1010+### Version
1111+module: <!-- ex: 5.9.0 -->
1212+nuxt: <!-- ex: 2.0.0 -->
1313+1414+### Nuxt configuration
1515+#### [mode](https://nuxtjs.org/api/configuration-mode): <!--universal is the default -->
1616+ - [ ] universal
1717+ - [ ] spa
1818+1919+### Nuxt configuration
2020+<!--
2121+ If relevant, please include the configuration you are using for this module.
2222+ For example:
2323+```
2424+```
2525+-->
2626+2727+## Reproduction
2828+> :warning: without a minimal reproduction we wont be able to look into your issue
2929+3030+**Link:**
3131+[ ] https:///codesandbox.io/
3232+[ ] GitHub repository
3333+3434+#### What is expected?
3535+#### What is actually happening?
3636+#### Steps to reproduce
3737+## Additional information
3838+## Checklist
3939+* [ ] I have tested with the latest Nuxt version and the issue still occurs
4040+* [ ] I have tested with the latest module version and the issue still occurs
4141+* [ ] I have searched the issue tracker and this issue hasn't been reported yet
4242+4343+### Steps to reproduce
4444+4545+4646+### What is expected?
4747+4848+4949+### What is actually happening?
5050+<!-- Add any other context or screenshots about the feature request here. -->
5151+5252+### Performance analysis?
5353+<!-- Add any performance metrics or regressions here -->
+8
.github/ISSUE_TEMPLATE/config.yml
···11+blank_issues_enabled: false
22+contact_links:
33+ - name: Nuxt Community Discord
44+ url: https://discord.nuxtjs.org/
55+ about: Consider asking questions about the module here.
66+ # - name: Documentation
77+ # url: /README.md
88+ # about: Check our documentation before reporting issues or questions.
+20
.github/ISSUE_TEMPLATE/feature_request.md
···11+---
22+name: Feature request
33+about: Suggest an idea or enhancement for this project.
44+title: ''
55+labels: enhancement
66+assignees: ''
77+88+---
99+1010+### Is your feature request related to a problem? Please describe.
1111+<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
1212+1313+### Describe the solution you'd like to see
1414+<!-- A clear and concise description of what you want to happen. -->
1515+1616+### Describe alternatives you've considered
1717+<!-- A clear and concise description of any alternative solutions or features you've considered. -->
1818+1919+### Additional context
2020+<!-- Add any other context or screenshots about the feature request here. -->
+20
.github/ISSUE_TEMPLATE/question.md
···11+---
22+name: Question
33+about: Ask a question about the module.
44+title: ''
55+labels: question
66+assignees: ''
77+88+---
99+1010+<!--
1111+1212+ **IMPORTANT!**
1313+Please make sure to look for an answer to your question in our documentation before asking a question here.
1414+1515+If you have a general question regarding {{ name }} use Discord `modules` channel. Thanks!
1616+1717+Documentation: {{ docs }}
1818+Nuxt Discord: https://discord.nuxtjs.org/
1919+2020+-->