This repository has been archived by the owner on Aug 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
/
package-scripts.js
79 lines (75 loc) · 1.93 KB
/
package-scripts.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
70
71
72
73
74
75
76
77
78
79
const npsUtils = require('nps-utils')
const concurrent = npsUtils.concurrent
const series = npsUtils.series
module.exports = {
scripts: {
commit: {
description: 'This uses commitizen to help us generate well formatted commit messages',
script: 'git-cz',
},
test: {
default: 'jest --coverage',
watch: 'jest --watch',
},
lint: {
description: 'lint the entire project',
script: 'eslint .',
},
reportCoverage: {
description: 'Report coverage stats to codecov. This should be run after the `test` script',
script: 'codecov',
},
validate: {
description: 'This runs several scripts to make sure thigns look good before committing or on clean install',
default: concurrent.nps('lint', 'test'),
},
release: {
description: 'We automate releases with semantic-release. This should only be run on travis',
script: series(
'semantic-release pre'
// 'npm publish',
// 'semantic-release post',
),
},
examples: {
basic: {
description: 'A simple react-native project using glamorous-native',
script: series(
'cd examples/react-native-glamorous',
'npm install'
),
},
themes: {
description: 'A react-native project using glamorous-native themes',
script: series(
'cd example/react-native-glamorous-themes',
'npm install'
),
},
animations: {
description: 'A react-native project using glamorous-native with animations',
script: series(
'cd example/react-native-glamorous-animated',
'npm install'
),
},
// add yours here!
},
},
options: {
silent: false,
},
}
// this is not transpiled
/*
eslint
max-len: 0,
comma-dangle: [
2,
{
arrays: 'always-multiline',
objects: 'always-multiline',
functions: 'never'
}
]
*/