Skip to content

Commit

Permalink
fix(spire): change tooling and build system to spire
Browse files Browse the repository at this point in the history
  • Loading branch information
Rendez committed May 31, 2019
1 parent da47573 commit fff9c52
Show file tree
Hide file tree
Showing 34 changed files with 4,501 additions and 2,609 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["@researchgate/babel-preset-rg"]
"presets": ["@researchgate/babel-preset"]
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
lib
.docs
4 changes: 0 additions & 4 deletions .eslintrc

This file was deleted.

2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Keep this file for editor support
module.exports = require('@researchgate/spire-config/eslint');
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules
npm-debug.log*
yarn-error.log
lib
coverage
/node_modules
/lib
/src/coverage
/.docs
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
yarn.lock
16 changes: 0 additions & 16 deletions .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"spire-plugin-prettier/config"
10 changes: 5 additions & 5 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as storybook from '@storybook/react';
import { configure } from '@storybook/react';
import { setOptions } from '@storybook/addon-options';

setOptions({
name: 'React Intersection Observer',
url: 'https://github.com/researchgate/react-intersection-observer',
downPanelInRight: true,
name: 'React Intersection Observer',
url: 'https://github.com/researchgate/react-intersection-observer',
downPanelInRight: true,
});

storybook.configure(() => require('../docs/docs/index.js'), module);
configure(() => require('../docs/docs/index.js'), module);
5 changes: 4 additions & 1 deletion .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
<link href="//fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link
href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
rel="stylesheet"
/>
13 changes: 0 additions & 13 deletions .storybook/webpack.config.js

This file was deleted.

13 changes: 5 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
language: node_js
node_js:
- "8"
- "9"
- "10"
cache: yarn
deploy:
local_dir: docs
local_dir: .docs
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set on travis-ci.org dashboard
on:
branch: master
condition: '"$TRAVIS_JOB_NUMBER" == *.1'
before_script:
- 'if [[ -n "$TRAVIS_TAG" ]] && [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then yarn run create-github-release; fi'
script:
- yarn run lint
- yarn test --ci --coverage
- 'if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then yarn run build:storybook; fi'
- "(yarn lint && yarn test --ci --coverage) || travis_terminate"
- 'if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then yarn build:storybook || travis_terminate 1; fi'
- yarn release
after_success:
- bash <(curl -s https://codecov.io/bash)
Loading

0 comments on commit fff9c52

Please sign in to comment.