This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.js
69 lines (69 loc) · 2.02 KB
/
setup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Note: this file is the configuration file *only* for
// use by the boiler-room-custodian utility. the point
// of the boiler-room-custodian is to clean sample code
// from the boilerplate from initial state so that you
// can start custom development on a "blank project"
//
// For more information or to report issues please go
// to https://github.com/tstringer/boiler-room-custodian
//
// This file should remain unmodified by end users and
// should only be invoked by running `npm run cleanup`
module.exports = {
// remove the following files as they are mostly
// related to the sample counter page and functionality
remove: [
{ file: 'app/actions/counter.ts' },
{ file: 'app/components/Counter.scss' },
{ file: 'app/components/Counter.tsx' },
{ file: 'app/containers/CounterPage.tsx' },
{ file: 'app/reducers/counter.ts' },
{ file: 'test/actions/counter.spec.ts' },
{ file: 'test/components/Counter.spec.tsx' },
{ file: 'test/containers/CounterPage.spec.tsx' },
{ file: 'test/reducers/counter.spec.ts' },
{ file: 'erb-logo.png' }
],
// clean the following files by either clearing them
// (by specifying {clear: true}) or by removing lines
// that match a regex pattern
clean: [
{
file: 'app/reducers/index.ts',
pattern: /counter/
},
{
file: 'app/store/configureStore.development.ts',
pattern: /counterActions/
},
{
file: 'app/app.global.scss',
clear: true
},
{
file: 'app/routes.tsx',
pattern: /CounterPage/
},
{
file: 'test/e2e.ts',
clear: true
},
{
file: 'README.md',
clear: true
},
{
file: 'app/components/Home.tsx',
pattern: /(h2|Link)/
}
],
// add the following files to the project, mostly
// related to .gitkeep for version control
add: [
{ file: 'app/actions/.gitkeep' },
{ file: 'test/actions/.gitkeep' },
{ file: 'test/components/.gitkeep' },
{ file: 'test/containers/.gitkeep' },
{ file: 'test/reducers/.gitkeep' }
]
};