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
lint-messages [paths...] Lint message strings, making sure all messages used insource files are present in messages.yml
77
+
build [entries...] Bundle JavaScript & CSS
78
+
commit Force intelligent commit messages.
79
+
deploy Bundle & Deploy JavaScript & CSS
80
+
flow [command] Run flow on the current directory.
81
+
format [entries...] Format JavaScript
82
+
lint Lint JavaScript
83
+
lint-messages [paths...] Check existence of messages used insource code.
84
+
prepublish [entries...] Transpile JavaScript down to ES5 with Babel
85
+
test [patterns...] Run tests using Jest
86
+
help [cmd] display helpfor [cmd]
81
87
82
88
Options:
83
89
84
-
-h, --help output usage information
85
-
-V, --version output the version number
86
-
-c, --config <path> Path to configuration files.
87
-
-e, --env <environment> Environment to use.
88
-
-m, --minify Minify built files.
89
-
-p, --proxy <address> Proxy calls through to target address.
90
-
-s, --serve Serve with budo. Auto-matically rebuilds on changes.
91
-
-u, --update-snapshots Force update of jest snapshots. USE WITH CAUTION.
92
-
-w, --watch Rebuild on changes with watchify.
90
+
-h, --help output usage information
91
+
-V, --version output the version number
92
+
-c, --config <path> Path to configuration files.
93
+
-e, --env <environment> Environment to use.
94
+
-m, --minify Minify built files.
95
+
-O, --outdir <dir> Publish directory
93
96
```
94
97
95
98
### `build`
96
99
97
100
Compile JS, HTML, CSS, YAML, Markdown into a single `.js`. Utilizes [babel](https://babeljs.io/), [browserify](https://github.com/substack/node-browserify), [budo](https://github.com/mattdesl/budo), and [postcss](http://postcss.org/).
98
101
99
102
```shell
100
-
$ mastarm build [options] [entries...]
103
+
$ mastarm build --help
104
+
105
+
Usage: mastarm-build [options]
101
106
102
107
Options:
103
108
104
109
-h, --help output usage information
105
110
-F, --flyle Cache and serve tiles.
106
111
-p, --proxy <address> Proxy calls through to target address.
107
-
-s, --serve Serve with budo. Auto-matically rebuilds on changes.
112
+
-s, --serve Serve with budo. Automatically rebuilds on changes.
108
113
-w, --watch Automatically rebuild on changes.
109
114
```
110
115
@@ -134,7 +139,6 @@ Options:
134
139
-h, --help output usage information
135
140
--cloudfront CloudFront Distribution ID to invalidate.
Run [Flow](https://flow.org/). Must have a `.flowconfig` in the current working directory and a `// @flow` annotation at the top of each file you want to check. See the Flow website for documentation.
156
+
157
+
### `format`
158
+
159
+
Format JavaScript code using [Prettier](https://github.com/prettier/prettier). By default it globs all JavaScript files from the current directory and `__mocks__`, `__tests__`, `bin`, `lib`, and `src`. If you pass files in it directly it will just use those.
160
+
161
+
```shell
162
+
$ mastarm format
163
+
```
164
+
165
+
To format one file:
166
+
167
+
```shell
168
+
$ mastarm format index.js
169
+
```
170
+
149
171
### `lint`
150
172
151
173
Lint using [Standard](http://standardjs.com/). Everything is passed directly to [`standard-engine`](https://github.com/Flet/standard-engine).
0 commit comments