You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+23-15Lines changed: 23 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,71 +32,79 @@ The following is a list of scripts and their primary responsibilities.
32
32
33
33
### script/bootstrap
34
34
35
-
`script/bootstrap` is used solely for fulfilling dependencies of the project.
35
+
[`script/bootstrap`][bootstrap] is used solely for fulfilling dependencies of the project.
36
36
37
37
This can mean RubyGems, npm packages, Homebrew packages, Ruby versions, Git submodules, etc.
38
38
39
39
The goal is to make sure all required dependencies are installed.
40
40
41
41
### script/setup
42
42
43
-
`script/setup` is used to set up a project in an initial state.
43
+
[`script/setup`][setup] is used to set up a project in an initial state.
44
44
This is typically run after an initial clone, or, to reset the project back to
45
45
its initial state.
46
46
47
47
This is also useful for ensuring that your bootstrapping actually works well.
48
48
49
49
### script/update
50
50
51
-
`script/update` is used to update the project after a fresh pull.
51
+
[`script/update`][update] is used to update the project after a fresh pull.
52
52
53
-
If you have not worked on the project for a while, running `script/update` after
53
+
If you have not worked on the project for a while, running [`script/update`][update] after
54
54
a pull will ensure that everything inside the project is up to date and ready to work.
55
55
56
-
Typically, `script/bootstrap` is run inside this script. This is also a good
56
+
Typically, [`script/bootstrap`][bootstrap] is run inside this script. This is also a good
57
57
opportunity to run database migrations or any other things required to get the
58
58
state of the app into shape for the current version that is checked out.
59
59
60
60
### script/server
61
61
62
-
`script/server` is used to start the application.
62
+
[`script/server`][server] is used to start the application.
63
63
64
64
For a web application, this might start up any extra processes that the
65
65
application requires to run in addition to itself.
66
66
67
-
`script/update` should be called ahead of any application booting to ensure that
67
+
[`script/update`][update] should be called ahead of any application booting to ensure that
68
68
the application is up to date and can run appropriately.
69
69
70
70
### script/test
71
71
72
-
`script/test` is used to run the test suite of the application.
72
+
[`script/test`][test] is used to run the test suite of the application.
73
73
74
74
A good pattern to support is having an optional argument that is a file path.
75
75
This allows you to support running single tests.
76
76
77
-
Linting (i.e. rubocop, jshint, pmd, etc.) can also be considered a form of testing. These tend to run faster than tests, so put them towards the beginning of a `script/test` so it fails faster if there's a linting problem.
77
+
Linting (i.e. rubocop, jshint, pmd, etc.) can also be considered a form of testing. These tend to run faster than tests, so put them towards the beginning of a [`script/test`][test] so it fails faster if there's a linting problem.
78
78
79
-
`script/test` should be called from `script/cibuild`, so it should handle
79
+
[`script/test`][test] should be called from [`script/cibuild`][cibuild], so it should handle
80
80
setting up the application appropriately based on the environment. For example,
81
-
if called in a development environment, it should probably call `script/update`
81
+
if called in a development environment, it should probably call [`script/update`][update]
82
82
to always ensure that the application is up to date. If called from
83
-
`script/cibuild`, it should probably reset the application to a clean state.
83
+
[`script/cibuild`][cibuild], it should probably reset the application to a clean state.
84
84
85
85
86
86
### script/cibuild
87
87
88
-
`script/cibuild` is used for your continuous integration server.
88
+
[`script/cibuild`][cibuild] is used for your continuous integration server.
89
89
This script is typically only called from your CI server.
90
90
91
91
You should set up any specific things for your environment here before your tests
92
-
are run. Your test are run simply by calling `script/test`.
92
+
are run. Your test are run simply by calling [`script/test`][test].
93
93
94
94
### script/console
95
95
96
-
`script/console` is used to open a console for your application.
96
+
[`script/console`][console] is used to open a console for your application.
97
97
98
98
A good pattern to support is having an optional argument that is an environment
99
99
name, so you can connect to that environment's console.
100
100
101
101
You should configure and run anything that needs to happen to open a console for
0 commit comments