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

Commit 37db71b

Browse files
marktaniDevanB
authored andcommitted
chore(minimal): upgrade install script
1 parent 36cf3a1 commit 37db71b

File tree

4 files changed

+135
-28
lines changed

4 files changed

+135
-28
lines changed

minimal/.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 {
3+
replaceInFiles,
4+
deploy,
5+
writeEnv,
6+
getInfo,
7+
} = require('graphql-boilerplate-install')
8+
9+
const path = require('path')
10+
11+
module.exports = async ({ project, projectDir }) => {
12+
const templateName = 'graphql-boilerplate'
13+
14+
replaceInFiles(
15+
['server/src/index.js', 'server/package.json'],
16+
templateName,
17+
project,
18+
)
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+
}

minimal/.install/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "install",
3+
"version": "0.0.0",
4+
"devDependencies": {
5+
"graphql-boilerplate-install": "0.1.6"
6+
}
7+
}

minimal/.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.12.2"
7+
resolved "https://registry.yarnpkg.com/commander/-/commander-2.12.2.tgz#0f5946c427ed9ec0d91a46bb9def53e54650e555"
8+
9+
[email protected], 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+
18+
version "0.1.6"
19+
resolved "https://registry.yarnpkg.com/graphql-boilerplate-install/-/graphql-boilerplate-install-0.1.6.tgz#7e90219baac8b2f202eef68c4104c1154652eaa3"
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+
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"

minimal/install.js

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

0 commit comments

Comments
 (0)