forked from signavio/react-mentions
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve dev and CI tooling (signavio#220)
* vscode settings * use nwb * setup prettier * prettified everything * fix peer dep to react 16 also fixed bug in nwb config * made demo run again * improvements for examples * input inherits the styles of the parent shared with highlighter BREAKING CHANGE: new default inline styles for inheriting control’s font family and size * fixed async example * fixed test setup * setup linting * made all tests run again * removed accidentally committed .grunt dir * fixed all readme links to prepare for moving project to signavio * use circle instead of travis and updates badges * setup semantic release * fixed all lint errors * temp disabled automatic release * updated ssh key fingerprint * added build-demo script * added publish-demo script
- Loading branch information
1 parent
b93b5a3
commit d5c2927
Showing
61 changed files
with
6,815 additions
and
3,924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
version: 2 | ||
|
||
defaults: &defaults | ||
working_directory: ~/project/react-mentions | ||
docker: | ||
- image: circleci/node:8-browsers | ||
environment: | ||
CHROME_BIN: "/usr/bin/google-chrome" | ||
|
||
attach_workspace: &attach_workspace | ||
attach_workspace: | ||
at: ~/project | ||
|
||
restore_cache: &restore_cache | ||
restore_cache: | ||
name: Restore node_modules cache | ||
keys: | ||
- v1-node-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- v1-node-{{ .Branch }}- | ||
- v1-node- | ||
|
||
jobs: | ||
install: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- *attach_workspace | ||
- *restore_cache | ||
- run: | ||
name: Install Dependencies | ||
command: yarn install --frozen-lockfile | ||
- save_cache: | ||
name: Save yarn cache | ||
key: v1-yarn-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
paths: | ||
- .cache/yarn | ||
- save_cache: | ||
name: Save node_modules cache | ||
key: v1-node-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
paths: | ||
- node_modules/ | ||
- run: | ||
name: Remove node_modules to cleanup workspace | ||
command: rm -r node_modules/ | ||
- persist_to_workspace: | ||
root: ~/project | ||
paths: | ||
- react-mentions | ||
|
||
lint: | ||
<<: *defaults | ||
steps: | ||
- *attach_workspace | ||
- *restore_cache | ||
- run: | ||
name: Lint | ||
command: yarn lint | ||
|
||
test: | ||
<<: *defaults | ||
steps: | ||
- *attach_workspace | ||
- *restore_cache | ||
- run: | ||
name: Test | ||
command: yarn test:coverage | ||
- run: | ||
name: Codecov | ||
command: bash <(curl -s https://codecov.io/bash) | ||
|
||
publish-demo: | ||
<<: *defaults | ||
steps: | ||
- *attach_workspace | ||
- *restore_cache | ||
- add_ssh_keys: | ||
fingerprints: | ||
- "21:90:d1:2d:be:19:c0:20:da:80:8a:6f:78:78:1f:91" | ||
- run: | ||
name: Fix host authenticity for github.com | ||
command: mkdir -p ~/.ssh/ && ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
- run: | ||
name: Set git name & email | ||
command: | | ||
git config --global user.name "CircleCI" && git config --global user.email "[email protected]" | ||
- run: | ||
name: Build demo | ||
command: yarn build-demo | ||
- run: | ||
name: Publish demo | ||
command: yarn publish-demo | ||
|
||
release: | ||
<<: *defaults | ||
steps: | ||
- *attach_workspace | ||
- *restore_cache | ||
- run: | ||
name: Build | ||
command: yarn build | ||
- run: | ||
name: Release | ||
command: yarn semantic-release | ||
|
||
|
||
|
||
workflows: | ||
version: 2 | ||
qa-publish-release: | ||
jobs: | ||
- install | ||
- lint: | ||
requires: | ||
- install | ||
- test: | ||
requires: | ||
- install | ||
- publish-demo: | ||
requires: | ||
- install | ||
# - release: | ||
# requires: | ||
# - lint | ||
# - flow | ||
# - test | ||
# filters: | ||
# branches: | ||
# only: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
extends: "signavio" | ||
"extends": "react-app" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
.DS_Store | ||
node_modules | ||
gh-pages/lib | ||
gh-pages/css | ||
gh-pages/bundle.js | ||
gh-pages/bundle.js.map | ||
react-mentions.sublime-workspace | ||
coverage | ||
lib | ||
.grunt | ||
results | ||
/coverage | ||
/demo/dist | ||
/es | ||
/lib | ||
/node_modules | ||
/umd | ||
npm-debug.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package.json |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"javascript.validate.enable": false, | ||
"editor.tabSize": 2, | ||
"search.exclude": { | ||
"**/lib": true | ||
}, | ||
"prettier.semi": false, | ||
"prettier.singleQuote": true, | ||
"prettier.trailingComma": "es5" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.