Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit 9ba393f

Browse files
committed
Merge pull request #26 from thebergamo/master
Add fast access to scripts in README.md
2 parents 2559886 + 294470c commit 9ba393f

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

README.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,71 +32,79 @@ The following is a list of scripts and their primary responsibilities.
3232

3333
### script/bootstrap
3434

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.
3636

3737
This can mean RubyGems, npm packages, Homebrew packages, Ruby versions, Git submodules, etc.
3838

3939
The goal is to make sure all required dependencies are installed.
4040

4141
### script/setup
4242

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.
4444
This is typically run after an initial clone, or, to reset the project back to
4545
its initial state.
4646

4747
This is also useful for ensuring that your bootstrapping actually works well.
4848

4949
### script/update
5050

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.
5252

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
5454
a pull will ensure that everything inside the project is up to date and ready to work.
5555

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
5757
opportunity to run database migrations or any other things required to get the
5858
state of the app into shape for the current version that is checked out.
5959

6060
### script/server
6161

62-
`script/server` is used to start the application.
62+
[`script/server`][server] is used to start the application.
6363

6464
For a web application, this might start up any extra processes that the
6565
application requires to run in addition to itself.
6666

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
6868
the application is up to date and can run appropriately.
6969

7070
### script/test
7171

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.
7373

7474
A good pattern to support is having an optional argument that is a file path.
7575
This allows you to support running single tests.
7676

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.
7878

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
8080
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]
8282
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.
8484

8585

8686
### script/cibuild
8787

88-
`script/cibuild` is used for your continuous integration server.
88+
[`script/cibuild`][cibuild] is used for your continuous integration server.
8989
This script is typically only called from your CI server.
9090

9191
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].
9393

9494
### script/console
9595

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.
9797

9898
A good pattern to support is having an optional argument that is an environment
9999
name, so you can connect to that environment's console.
100100

101101
You should configure and run anything that needs to happen to open a console for
102102
the requested environment.
103+
104+
[bootstrap]: script/bootstrap
105+
[setup]: script/setup
106+
[update]: script/update
107+
[server]: script/server
108+
[test]: script/test
109+
[cibuild]: script/cibuild
110+
[console]: script/console

0 commit comments

Comments
 (0)