Skip to content

Commit ff6dea1

Browse files
committed
updated nuxt-with-express project
1 parent ff1a383 commit ff6dea1

File tree

25 files changed

+8907
-10472
lines changed

25 files changed

+8907
-10472
lines changed

.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,31 @@ node_modules
22
.DS_Store
33
**/.DS_Store
44
**/node_modules
5+
cypress-io-react/package.json
6+
cypress-io-react/cypress/support/index.js
7+
cypress-io-react/cypress/support/commands.js
8+
cypress-io-react/cypress/screenshots/examples/misc.spec.js/my-image.png
9+
cypress-io-react/cypress/plugins/index.js
10+
cypress-io-react/cypress/integration/simple_spec.js
11+
cypress-io-react/cypress/integration/examples/window.spec.js
12+
cypress-io-react/cypress/integration/examples/waiting.spec.js
13+
cypress-io-react/cypress/integration/examples/viewport.spec.js
14+
cypress-io-react/cypress/integration/examples/utilities.spec.js
15+
cypress-io-react/cypress/integration/examples/traversal.spec.js
16+
cypress-io-react/cypress/integration/examples/spies_stubs_clocks.spec.js
17+
cypress-io-react/cypress/integration/examples/querying.spec.js
18+
cypress-io-react/cypress/integration/examples/network_requests.spec.js
19+
cypress-io-react/cypress/integration/examples/navigation.spec.js
20+
cypress-io-react/cypress/integration/examples/misc.spec.js
21+
cypress-io-react/cypress/integration/examples/location.spec.js
22+
cypress-io-react/cypress/integration/examples/local_storage.spec.js
23+
cypress-io-react/cypress/integration/examples/files.spec.js
24+
cypress-io-react/cypress/integration/examples/cypress_api.spec.js
25+
cypress-io-react/cypress/integration/examples/cookies.spec.js
26+
cypress-io-react/cypress/integration/examples/connectors.spec.js
27+
cypress-io-react/cypress/integration/examples/assertions.spec.js
28+
cypress-io-react/cypress/integration/examples/aliasing.spec.js
29+
cypress-io-react/cypress/integration/examples/actions.spec.js
30+
cypress-io-react/cypress/fixtures/example.json
31+
cypress-io-react/cypress.json
32+
cypress-io-react/package.json

cypress-io-react/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
"scripts": {
1313
"start": "react-scripts start",
1414
"build": "react-scripts build",
15-
"eject": "react-scripts eject"
15+
"eject": "react-scripts eject",
16+
"cypress:open": "cypress open"
1617
},
1718
"devDependencies": {
1819
"cypress": "^3.0.3"
1920
}
20-
}
21+
}

nuxt-with-express/.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
root = true
33

44
[*]
5-
indent_size = 2
65
indent_style = space
6+
indent_size = 2
77
end_of_line = lf
88
charset = utf-8
99
trim_trailing_whitespace = true

nuxt-with-express/.eslintrc.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ module.exports = {
88
parser: 'babel-eslint'
99
},
1010
extends: [
11-
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
12-
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
13-
'plugin:vue/essential'
14-
],
15-
// required to lint *.vue files
16-
plugins: [
17-
'vue'
11+
'@nuxtjs',
12+
'prettier',
13+
'prettier/vue',
14+
'plugin:prettier/recommended',
15+
'plugin:nuxt/recommended'
1816
],
17+
plugins: ['prettier'],
1918
// add your custom rules here
20-
rules: {}
19+
rules: {
20+
'nuxt/no-cjs-in-config': 'off'
21+
}
2122
}

nuxt-with-express/.gitignore

Lines changed: 85 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,91 @@
1-
# dependencies
2-
node_modules
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
39

4-
# logs
5-
npm-debug.log
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
615

7-
# Nuxt build
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (https://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# TypeScript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
62+
# parcel-bundler cache (https://parceljs.org/)
63+
.cache
64+
65+
# next.js build output
66+
.next
67+
68+
# nuxt.js build output
869
.nuxt
970

1071
# Nuxt generate
1172
dist
73+
74+
# vuepress build output
75+
.vuepress/dist
76+
77+
# Serverless directories
78+
.serverless
79+
80+
# IDE / Editor
81+
.idea
82+
.editorconfig
83+
84+
# Service worker
85+
sw.*
86+
87+
# Mac OSX
88+
.DS_Store
89+
90+
# Vim swap files
91+
*.swp

nuxt-with-express/.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": false,
3+
"arrowParens": "always",
4+
"singleQuote": true
5+
}

nuxt-with-express/README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,22 @@
1-
Blog Post located [here](https://medium.com/@johnryancottam/running-nuxt-in-parallel-with-express-ffbd1feef83c)
1+
# nuxt-with-express
2+
3+
> Blog Post located [here](https://medium.com/@johnryancottam/running-nuxt-in-parallel-with-express-ffbd1feef83c)
4+
5+
## Build Setup
6+
7+
``` bash
8+
# install dependencies
9+
$ yarn install
10+
11+
# serve with hot reload at localhost:3000
12+
$ yarn dev
13+
14+
# build for production and launch server
15+
$ yarn build
16+
$ yarn start
17+
18+
# generate static project
19+
$ yarn generate
20+
```
21+
22+
For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org).

nuxt-with-express/api/index.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

nuxt-with-express/assets/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# ASSETS
22

3-
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.
4-
5-
More information about the usage of this directory in the documentation:
6-
https://nuxtjs.org/guide/assets#webpacked
7-
83
**This directory is not required, you can delete it if you don't want to use it.**
94

5+
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.
6+
7+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked).

nuxt-with-express/components/AppLogo.vue renamed to nuxt-with-express/components/Logo.vue

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22
<div class="VueToNuxtLogo">
3-
<div class="Triangle Triangle--two"/>
4-
<div class="Triangle Triangle--one"/>
5-
<div class="Triangle Triangle--three"/>
6-
<div class="Triangle Triangle--four"/>
3+
<div class="Triangle Triangle--two" />
4+
<div class="Triangle Triangle--one" />
5+
<div class="Triangle Triangle--three" />
6+
<div class="Triangle Triangle--four" />
77
</div>
88
</template>
99

@@ -29,7 +29,7 @@
2929
.Triangle--one {
3030
border-left: 105px solid transparent;
3131
border-right: 105px solid transparent;
32-
border-bottom: 180px solid #41B883;
32+
border-bottom: 180px solid #41b883;
3333
}
3434
3535
.Triangle--two {
@@ -38,7 +38,7 @@
3838
animation: goright 0.5s linear forwards 3.5s;
3939
border-left: 87.5px solid transparent;
4040
border-right: 87.5px solid transparent;
41-
border-bottom: 150px solid #3B8070;
41+
border-bottom: 150px solid #3b8070;
4242
}
4343
4444
.Triangle--three {
@@ -47,7 +47,7 @@
4747
animation: goright 0.5s linear forwards 3.5s;
4848
border-left: 70px solid transparent;
4949
border-right: 70px solid transparent;
50-
border-bottom: 120px solid #35495E;
50+
border-bottom: 120px solid #35495e;
5151
}
5252
5353
.Triangle--four {
@@ -77,4 +77,3 @@
7777
}
7878
}
7979
</style>
80-

0 commit comments

Comments
 (0)