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
Copy file name to clipboardexpand all lines: README.md
+24-4
Original file line number
Diff line number
Diff line change
@@ -18,16 +18,31 @@ That last bit is important. If you have any suggestions or something you want to
18
18
19
19
# Using it
20
20
21
+
The repo is mainly a collection of configuration files, but also includes some examples, for the tools to be able to work.
22
+
To try out the tools, clone the repo, run `yarn install`, and try the different commands. The CircleCI configuration can also be tested,
23
+
by simply adding the cloned repo to your CircleCI account.
24
+
25
+
## Caveats
26
+
27
+
Not everything works out of the box (as this repo was never intended to be cloned and used as is).
28
+
29
+
-`yarn analyze` will fail, because the example only includes one bundle, and `source-map-explorer` will therefore complain that is has nothing to check.
30
+
- The deployment script found in `.circleci/deploy.sh` will fail in CircleCI for multiple reasons.
31
+
- The IPs and user variables are random, and should be updated according to your own needs.
32
+
- CircleCI hasn't been given SSH access to your servers. You can add SSH keys in CircleCI by opening the project in CircleCI > Settings > SSH Permissions
33
+
- This naturally means that running CircleCI on this project will fail miserably.
34
+
21
35
# The commands
22
36
23
37
-`yarn format` - format code syntax across project.
24
38
-`yarn lint` - lint code style across project.
39
+
-`yarn typecheck` - Runs typechecking on all TypeScript files.
25
40
-`yarn test` - run all tests.
26
-
-`yarn watch` - continously run all tests, watching for file changes.
41
+
-`yarn watch` - continuously run all tests, watching for file changes.
27
42
-`yarn plop` - generate new files.
28
-
-`yarn analyze` - analyze the bundle, and visualize the dependency tree.
43
+
-`yarn build` - compile TypeScript files to `build` directory.
44
+
-`yarn analyze` - analyze the bundle, and visualize the dependency tree. Requires that the project has been built beforehand.
29
45
-`yarn analyze:ci` - generate an html file with the dependency tree - should only be used by CircleCI, not manually.
30
-
-`yarn build` - compile TypeScript files to JavaScript.
31
46
32
47
# The tools
33
48
Each tool will briefly be described in this section, along with the command to run it.
@@ -80,11 +95,16 @@ Used to get an overview of all the dependencies in your project, to scout for un
80
95
The repo has the following structure:
81
96
```
82
97
project-root
83
-
│ README.md // you're reading it
84
98
│ package.json // Contains all the dependencies, and describes the scripts
85
99
│ plopfile.js // Configures the plop generator
86
100
│ tslint.json // Rules for TSLint
87
101
│ tsconfig.json // Configuration for TypeScript - is very different for each project!
102
+
│ ...
103
+
│
104
+
└───src
105
+
│ │ index.ts // Example code
106
+
│ └───components // Example code
107
+
│ └───__tests__ // Example tests
88
108
│
89
109
└───.circleci
90
110
│ │ config.yml // Configuration for the CircleCI steps
0 commit comments