Skip to content

Commit 3761235

Browse files
committed
Merge migrate-to-lerna
2 parents 596d70b + b192e90 commit 3761235

File tree

197 files changed

+11249
-8301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+11249
-8301
lines changed

.gflowrc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
{
2-
"production": "production",
3-
"develop": "master",
4-
"charBranchNameSeparator": "_",
2+
"flow": "gflow",
53
"remote": "origin",
4+
"develop": "master",
5+
"production": "production",
66
"ignores": [],
77
"syncAfterFinish": false,
88
"postFinish": "",
99
"skipTest": false,
10+
"charReplacement": "-",
11+
"charBranchNameSeparator": "-",
1012
"branchTypes": {
1113
"feat": "feat",
1214
"fix": "fix",
1315
"chore": "chore",
1416
"docs": "docs"
1517
},
1618
"refs": {}
17-
}
19+
}

.gitignore

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,19 @@ typings/
3737
# Typescript
3838
test/*.js
3939
test/*.js.map
40-
/src/*.js
41-
/src/*.js.map
42-
43-
test/**/*.js
44-
test/**/*.js.map
45-
/src/**/*.js
46-
/src/**/*.js.map
40+
/packages/*.js
41+
/packages/*.js.map
42+
/packages/*/lib
4743
/lib
4844
/dts
4945
/es6
46+
/dist
47+
/docs/api
48+
/docs/api/**/*.md
5049

5150
# Test
5251
/stdout
5352
/stderr
5453

5554
.DS_Store
56-
.nyc_output
55+
.nyc_output

.lintstagedrc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
2-
"concurrent": true,
3-
"linters": {
4-
"*.ts": [
5-
"prettier --parser typescript --write",
6-
"git add"
7-
]
8-
}
2+
"packages/*/src/**/*.ts": [
3+
"prettier --write",
4+
"yarn test:lint:fix",
5+
"git add"
6+
]
97
}

.nycrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"include": [
3-
"src/**/*.ts"
3+
"packages/*/src/**/*.ts"
44
],
55
"exclude": [
66
"**/index.ts",
@@ -19,5 +19,5 @@
1919
"lines": 93,
2020
"statements": 92,
2121
"functions": 86,
22-
"branches": 73.47
22+
"branches": 71.93
2323
}

.travis.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
language: node_js
2-
notifications:
3-
email: true
2+
cache: yarn
3+
44
node_js:
5-
- 'node'
5+
- '12'
66
- '10'
7-
after_success:
8-
- npm run build
9-
- npx travis-deploy-once "npm run semantic-release"
10-
- npm run test:coveralls
7+
8+
script: yarn test && yarn travis:coveralls
9+
10+
jobs:
11+
include:
12+
- stage: deploy
13+
name: 'Deploy packages'
14+
node_js: 12
15+
if: (NOT type IN (pull_request)) AND (branch = production)
16+
script: yarn semantic-release && yarn docs:publish
17+
1118
branches:
1219
except:
1320
- /^v\d+\.\d+\.\d+$/
14-
sudo: false

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
api
2+
.vuepress/public/api.json

docs/.vuepress/config.js

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
module.exports = {
2+
title: '@tsed/logger - Ts.LogDebug - A Node.js and TypeScript multi chanel logger',
3+
description: 'A Node.js and TypeScript multi chanel logger',
4+
serviceWorker: false,
5+
theme: 'tsed',
6+
themeConfig: {
7+
shortTitle: 'Ts.LogDebug',
8+
version: require('../../package').version,
9+
repo: 'TypedProject/ts-log-debug',
10+
openCollective: 'tsed',
11+
gitterUrl: 'https://gitter.im/Tsed-io/community',
12+
editLinks: true,
13+
docsDir: 'docs',
14+
sidebar: 'auto',
15+
api: require('./public/api.json'),
16+
// algolia: {
17+
// apiKey: "f8a038207e461aaac0e2fd16403c2b01",
18+
// indexName: "ts_ed"
19+
// },
20+
locales: {
21+
'/': {
22+
label: 'English',
23+
selectText: 'Languages',
24+
editLinkText: 'Edit this page on GitHub',
25+
lastUpdated: 'Last Updated',
26+
serviceWorker: {
27+
updatePopup: {
28+
message: 'New content is available.',
29+
buttonText: 'Refresh'
30+
}
31+
},
32+
nav: [
33+
{
34+
text: 'Getting started',
35+
link: '/getting-started.html'
36+
},
37+
{
38+
text: 'Appenders',
39+
items: [
40+
{ link: '/appenders/index.html', text: 'Configuration', items: [] },
41+
{
42+
text: 'Built-in appenders',
43+
items: [
44+
{ link: '/appenders/console.html', text: 'Console', items: [] },
45+
{ link: '/appenders/file.html', text: 'File', items: [] },
46+
{ link: '/appenders/stdout.html', text: 'Stdout', items: [] },
47+
{ link: '/appenders/stderr.html', text: 'Stderr', items: [] }
48+
]
49+
},
50+
{
51+
text: 'Advanced',
52+
items: [
53+
{ link: '/appenders/custom.html', text: 'Custom appender', items: [] }
54+
]
55+
}
56+
]
57+
},
58+
{
59+
text: 'Layouts',
60+
items: [
61+
{ link: '/layouts/index.html', text: 'Configuration', items: [] },
62+
{
63+
text: 'Built-in layouts',
64+
items: [
65+
{ link: '/layouts/basic.html', text: 'Basic', items: [] },
66+
{ link: '/layouts/colored.html', text: 'Colored', items: [] },
67+
{ link: '/layouts/dummy.html', text: 'Dummy', items: [] },
68+
{ link: '/layouts/message-pass-through.html', text: 'Message Pass-Through', items: [] },
69+
{ link: '/layouts/json.html', text: 'Json', items: [] },
70+
{ link: '/layouts/pattern.html', text: 'Pattern', items: [] }
71+
]
72+
},
73+
{
74+
text: 'Advanced',
75+
items: [
76+
{ link: '/layouts/custom.html', text: 'Custom layouts', items: [] }
77+
]
78+
}
79+
]
80+
},
81+
{ link: '/api.html', text: 'Api Reference' }
82+
],
83+
sidebar: {
84+
'/appenders/': [
85+
{
86+
title: 'Configuration',
87+
collapsable: false,
88+
children: [
89+
''
90+
]
91+
},
92+
{
93+
title: 'Built-in appenders',
94+
collapsable: false,
95+
children: [
96+
'console',
97+
'file',
98+
'stdout',
99+
'stderr'
100+
]
101+
},
102+
{
103+
title: 'Advanced',
104+
collapsable: false,
105+
children: [
106+
'custom'
107+
]
108+
}
109+
],
110+
'/layouts/': [
111+
{
112+
title: 'Configuration',
113+
collapsable: false,
114+
children: [
115+
''
116+
]
117+
},
118+
{
119+
title: 'Built-in layouts',
120+
collapsable: false,
121+
children: [
122+
'basic',
123+
'colored',
124+
'dummy',
125+
'message-pass-through',
126+
'json',
127+
'pattern'
128+
]
129+
},
130+
{
131+
title: 'Advanced',
132+
collapsable: false,
133+
children: [
134+
'custom'
135+
]
136+
}
137+
]
138+
},
139+
otherTopics: [
140+
'/appenders/console',
141+
'/appenders/file',
142+
'/appenders/stdout',
143+
'/appenders/stderr',
144+
'/layouts/basic',
145+
'/layouts/colored',
146+
'/layouts/dummy',
147+
'/layouts/message-pass-through',
148+
'/layouts/json',
149+
'/layouts/pattern'
150+
],
151+
footer: {
152+
lastUpdated: 'Last update',
153+
caughtMistake: 'Caught a mistake or want to contribute to the documentation?',
154+
editPageOnGithub: 'Edit on Github',
155+
contribute: 'Contribute',
156+
helpToContribute: 'Help shape the future of Ts.LogDebug by joining our team and send us pull requests via our',
157+
githubRepository: 'GitHub repository!',
158+
license: 'License',
159+
releaseUnder: 'Released under the',
160+
documentationGeneratedWith: 'Documentation generated with'
161+
}
162+
}
163+
},
164+
plugins: [
165+
[
166+
'@vuepress/google-analytics',
167+
{
168+
ga: 'UA-35240348-2'
169+
}
170+
]
171+
]
172+
},
173+
markdown: {
174+
lineNumbers: true,
175+
extendMarkdown: md => {
176+
md.use(require('vuepress-theme-tsed/plugins/markdown-it-symbol'))
177+
}
178+
}
179+
}

docs/.vuepress/enhanceApp.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import VueAnalytics from "vue-analytics";
2+
3+
export default ({
4+
Vue, // the version of Vue being used in the VuePress app
5+
options, // the options for the root Vue instance
6+
router, // the router instance for the app
7+
siteData // site metadata
8+
}) => {
9+
try {
10+
Vue.use(VueAnalytics, {
11+
id: siteData.themeConfig.plugins[0][1].ga,
12+
router
13+
});
14+
} catch (er) {
15+
console.warn(er);
16+
}
17+
}

docs/.vuepress/public/.nojekyll

Whitespace-only changes.

docs/.vuepress/public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
logger.tsed.io

0 commit comments

Comments
 (0)