Skip to content
This repository was archived by the owner on Oct 23, 2018. It is now read-only.

Commit df454b6

Browse files
authored
Adds gitignore, license, and install folder. (#90)
1 parent 0f9399b commit df454b6

6 files changed

Lines changed: 164 additions & 28 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
.expo/
3+
npm-debug.*

basic/.install/index.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
const fs = require('fs')
2+
const { replaceInFiles, deploy, writeEnv, getInfo } = require('graphql-boilerplate-install')
3+
4+
module.exports = async ({ project, projectDir }) => {
5+
const templateName = 'graphql-boilerplate'
6+
7+
replaceInFiles(['server/src/index.js', 'server/package.json', 'server/database/prisma.yml'], templateName, project)
8+
9+
console.log('Running $ prisma deploy...')
10+
11+
process.chdir('server/')
12+
13+
await deploy(false)
14+
const info = await getInfo()
15+
16+
process.chdir('../')
17+
18+
replaceInFiles(['server/src/index.js'], '__PRISMA_ENDPOINT__', info.httpEndpoint)
19+
20+
console.log(`\
21+
Next steps:
22+
1. Change directory: \`cd ${projectDir}/server\`
23+
2. Start local server: \`yarn start\` (you can now open a Playground at http://localhost:4000)
24+
3. Change directory: \`cd ..\`
25+
4. Start React app: \`yarn start\`
26+
5. Open browser: http://localhost:3000
27+
`)
28+
}

basic/.install/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "install",
3+
"version": "0.0.0",
4+
"devDependencies": {
5+
"graphql-boilerplate-install": "0.1.8"
6+
},
7+
"prettier": {
8+
"semi": false,
9+
"singleQuote": true,
10+
"trailingComma": "all"
11+
}
12+
}

basic/.install/yarn.lock

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
commander@^2.9.0:
6+
version "2.13.0"
7+
resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c"
8+
9+
cross-spawn@5.1.0, cross-spawn@^5.1.0:
10+
version "5.1.0"
11+
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
12+
dependencies:
13+
lru-cache "^4.0.1"
14+
shebang-command "^1.2.0"
15+
which "^1.2.9"
16+
17+
graphql-boilerplate-install@0.1.8:
18+
version "0.1.8"
19+
resolved "https://registry.yarnpkg.com/graphql-boilerplate-install/-/graphql-boilerplate-install-0.1.8.tgz#7d71b3f5908d968aaa77c524765cc1b4d7bec348"
20+
dependencies:
21+
cross-spawn "5.1.0"
22+
npm-run "4.1.2"
23+
24+
isexe@^2.0.0:
25+
version "2.0.0"
26+
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
27+
28+
lru-cache@^4.0.1:
29+
version "4.1.1"
30+
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55"
31+
dependencies:
32+
pseudomap "^1.0.2"
33+
yallist "^2.1.2"
34+
35+
minimist@^1.2.0:
36+
version "1.2.0"
37+
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
38+
39+
npm-path@^2.0.2, npm-path@^2.0.3:
40+
version "2.0.4"
41+
resolved "https://registry.yarnpkg.com/npm-path/-/npm-path-2.0.4.tgz#c641347a5ff9d6a09e4d9bce5580c4f505278e64"
42+
dependencies:
43+
which "^1.2.10"
44+
45+
npm-run@4.1.2:
46+
version "4.1.2"
47+
resolved "https://registry.yarnpkg.com/npm-run/-/npm-run-4.1.2.tgz#1030e1ec56908c89fcc3fa366d03a2c2ba98eb99"
48+
dependencies:
49+
cross-spawn "^5.1.0"
50+
minimist "^1.2.0"
51+
npm-path "^2.0.3"
52+
npm-which "^3.0.1"
53+
serializerr "^1.0.3"
54+
sync-exec "^0.6.2"
55+
56+
npm-which@^3.0.1:
57+
version "3.0.1"
58+
resolved "https://registry.yarnpkg.com/npm-which/-/npm-which-3.0.1.tgz#9225f26ec3a285c209cae67c3b11a6b4ab7140aa"
59+
dependencies:
60+
commander "^2.9.0"
61+
npm-path "^2.0.2"
62+
which "^1.2.10"
63+
64+
protochain@^1.0.5:
65+
version "1.0.5"
66+
resolved "https://registry.yarnpkg.com/protochain/-/protochain-1.0.5.tgz#991c407e99de264aadf8f81504b5e7faf7bfa260"
67+
68+
pseudomap@^1.0.2:
69+
version "1.0.2"
70+
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
71+
72+
serializerr@^1.0.3:
73+
version "1.0.3"
74+
resolved "https://registry.yarnpkg.com/serializerr/-/serializerr-1.0.3.tgz#12d4c5aa1c3ffb8f6d1dc5f395aa9455569c3f91"
75+
dependencies:
76+
protochain "^1.0.5"
77+
78+
shebang-command@^1.2.0:
79+
version "1.2.0"
80+
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
81+
dependencies:
82+
shebang-regex "^1.0.0"
83+
84+
shebang-regex@^1.0.0:
85+
version "1.0.0"
86+
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
87+
88+
sync-exec@^0.6.2:
89+
version "0.6.2"
90+
resolved "https://registry.yarnpkg.com/sync-exec/-/sync-exec-0.6.2.tgz#717d22cc53f0ce1def5594362f3a89a2ebb91105"
91+
92+
which@^1.2.10, which@^1.2.9:
93+
version "1.3.0"
94+
resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a"
95+
dependencies:
96+
isexe "^2.0.0"
97+
98+
yallist@^2.1.2:
99+
version "2.1.2"
100+
resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"

basic/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2016 Prisma Examples
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

basic/install.js

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

0 commit comments

Comments
 (0)