File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,16 @@ gulp.task('test', () => runTests({
75
75
// Project-specific tasks...
76
76
` ` `
77
77
78
+ Functions can be imported from the main export, or from individual ones if you
79
+ don't want to install all optional peer dependencies:
80
+
81
+ ` ` ` js
82
+ import { buildJS , watchJS } from ' @hypothesis/frontend-build/rollup' ;
83
+ import { buildCSS } from ' @hypothesis/frontend-build/sass' ;
84
+ import { runTests } from ' @hypothesis/frontend-build/tests' ;
85
+
86
+ ` ` `
87
+
78
88
## API reference
79
89
80
90
This section provides an overview of the functions in this package. See the
Original file line number Diff line number Diff line change 3
3
"version" : " 3.2.2" ,
4
4
"description" : " Hypothesis frontend build scripts" ,
5
5
"type" : " module" ,
6
- "exports" : " ./index.js" ,
6
+ "exports" : {
7
+ "." : {
8
+ "import" : " ./index.js"
9
+ },
10
+ "./manifest" : {
11
+ "import" : " ./lib/manifest.js"
12
+ },
13
+ "./rollup" : {
14
+ "import" : " ./lib/rollup.js"
15
+ },
16
+ "./run" : {
17
+ "import" : " ./lib/run.js"
18
+ },
19
+ "./sass" : {
20
+ "import" : " ./lib/sass.js"
21
+ },
22
+ "./tests" : {
23
+ "import" : " ./lib/tests.js"
24
+ }
25
+ },
7
26
"repository" : " https://github.com/hypothesis/frontend-build" ,
8
27
"author" : " Hypothesis developers" ,
9
28
"license" : " BSD-2-Clause" ,
You can’t perform that action at this time.
0 commit comments