Skip to content

Commit 8dc2059

Browse files
committed
chore: migrate to a monorepo
1 parent 49bc2dc commit 8dc2059

File tree

265 files changed

+19557
-19191
lines changed

Some content is hidden

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

265 files changed

+19557
-19191
lines changed

.babelrc

-9
This file was deleted.

.github/config.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
updateDocsWhiteList:
32
- BUG
43
- Chore
@@ -11,18 +10,18 @@ requestInfoReplyComment: >
1110
requestInfoLabelToAdd: request-more-info
1211

1312
newPRWelcomeComment: >
14-
Thanks so much for opening your first pull request! Please check out our contributing guidelines.
13+
Thanks so much for opening your first pull request! Please check out our contributing guidelines.
1514
firstPRMergeComment: >
1615
Congrats on merging your first pull request here! :tada:
1716
newIssueWelcomeComment: >
1817
Thanks for opening this issue, a maintainer will get back to you shortly! Be sure to follow the issue template! 🤓
1918
sentimentBotToxicityThreshold: .7
2019

2120
sentimentBotReplyComment: >
22-
Please be sure to review the code of conduct and be respectful of other users. cc/ @juliomrqz @patriciajumper
21+
Please be sure to review the code of conduct and be respectful of other users. cc/ @juliomrqz @giovagnoli @patriciajumper
2322
lockThreads:
2423
toxicityThreshold: .7
2524
numComments: 2
2625
setTimeInHours: 72
2726
replyComment: >
28-
This thread is being locked due to exceeding the toxicity minimums. cc/ @juliomrqz @patriciajumper
27+
This thread is being locked due to exceeding the toxicity minimums. cc/ @juliomrqz @giovagnoli @patriciajumper

.gitignore

-10
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,3 @@ $RECYCLE.BIN/
259259

260260

261261
# End of https://www.gitignore.io/api/node,linux,macos,windows,sublimetext,visualstudiocode,intellij+all
262-
263-
# Statusfy
264-
client/.tmp
265-
client/locales/*.js
266-
demo/.statusfy
267-
demo/.tmp
268-
demo/content/**/*.md
269-
dist
270-
sw.*
271-
test/.tmp

.travis.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ cache:
99
- "demo/node_modules"
1010

1111
install:
12-
- npm install
12+
- yarn install
13+
- yarn run lerna bootstrap
1314

1415
script:
1516
# Test Statusfy
16-
- npm run lint && npm run lint:css
17-
- npm run test
17+
- yarn run lint
18+
- yarn run test
1819

1920
# Test demo
20-
- cd demo
21-
- npm install
22-
- npm run build
23-
- npm run generate
21+
- cd packages/demo
22+
- yarn run build
23+
- yarn run generate

README.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,24 @@
1919
2020
:warning: This project is in alpha state, under active development.
2121

22-
## Build Setup
22+
## Install
2323

2424
``` bash
2525
# install dependencies
26-
$ npm install
26+
$ yarn add vuepress -D
27+
```
2728

28-
# serve with hot reload at localhost:3000
29-
$ npm run dev
29+
## Development
3030

31-
# build for production and launch server
32-
$ npm run build
33-
$ npm start
31+
:warning: You must at least use `node >= 8.10`.
3432

35-
# generate static project
36-
$ npm run generate
33+
``` bash
34+
# install dependencies
35+
yarn
36+
# serves Statusfy's own demo
37+
yarn demo:dev
38+
# make sure your code change pass the test
39+
yarn test
3740
```
3841

3942
## Demo

babel.config.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
'env': {
3+
'test': {
4+
'presets': [
5+
['@babel/preset-env', { 'targets': { 'node': 'current' }}]
6+
]
7+
}
8+
}
9+
}

demo/package-lock.json

-85
This file was deleted.

demo/package.json

-27
This file was deleted.

test/jest.config.js jest.config.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@
44
const path = require('path')
55

66
module.exports = {
7-
rootDir: path.resolve(__dirname, '..'),
7+
rootDir: path.resolve(__dirname),
88
verbose: true,
9+
roots: [
10+
'packages/',
11+
],
912
testURL: 'http://localhost/',
1013
moduleFileExtensions: [
1114
'js',
1215
'vue'
1316
],
1417
moduleNameMapper: {
15-
'^@/(.*)$': '<rootDir>/lib/$1'
18+
'^@/markdown/(.*)$': '<rootDir>/packages/@statusfy/markdown/$1',
19+
'^@/core/(.*)$': '<rootDir>/packages/@statusfy/core/$1'
1620
},
1721
transform: {
1822
'^.+\\.js$': '<rootDir>/node_modules/babel-jest',

lerna.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"lerna": "3.4.3",
3+
"npmClient": "yarn",
4+
"useWorkspaces": true,
5+
"version": "0.0.1-alpha.1"
6+
}

netlify.toml

-36
This file was deleted.

0 commit comments

Comments
 (0)