Skip to content

Commit f922ce3

Browse files
committed
chore: setup monorepo with repo-cooker
1 parent 7d7d558 commit f922ce3

Some content is hidden

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

51 files changed

+12934
-30323
lines changed

.gitignore

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@ bower_components
3939
build/Release
4040

4141
# Dependency directories
42-
node_modules/
43-
jspm_packages/
42+
node_modules
43+
!/packages/node_modules
44+
/packages/node_modules/**/node_modules
45+
jspm_packages
46+
47+
# Lock files
48+
yarn.lock
49+
/packages/**/package-lock.json
4450

4551
# TypeScript v1 declaration files
4652
typings/
@@ -61,7 +67,7 @@ typings/
6167
.yarn-integrity
6268

6369
# dotenv environment variables file
64-
.env
70+
.env*
6571

6672
# next.js build output
6773
.next

.travis.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
sudo: false
2+
language: node_js
3+
node_js: '8'
4+
cache:
5+
directories:
6+
- node_modules
7+
addons:
8+
apt:
9+
sources:
10+
- ubuntu-toolchain-r-test
11+
packages:
12+
# needed by nodegit (repo-cooker)
13+
- libstdc++-4.9-dev
14+
git:
15+
depth: 9999
16+
notifications:
17+
email: false
18+
script:
19+
- |
20+
if [[ $SKIP_TESTS != 'true' ]]; then
21+
npm prune
22+
npm run checkdeps
23+
npm run lint
24+
npm test
25+
fi
26+
after_success:
27+
- |
28+
if [[ $TRAVIS_SECURE_ENV_VARS == 'true' ]]; then
29+
git config --global user.email "[email protected]";
30+
git config --global user.name "Cerebral JS";
31+
fi
32+
if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_BRANCH == 'next' ]] && [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
33+
printf "//registry.npmjs.org/:_authToken=$NPM_TOKEN\n" > ~/.npmrc
34+
npm install --no-save [email protected]
35+
npm run release
36+
fi
37+
branches:
38+
except:
39+
- "/^v\\d+\\.\\d+\\.\\d+$/"

0 commit comments

Comments
 (0)