Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rename no-ssr to client-only (#35)
BREAKING CHANGE: * the component is renamed from `<no-ssr>` to `<client-only>` * the class name for the placeholder is renamed from `no-ssr-placeholder` to `client-only-placeholder`
- Loading branch information
Showing
6 changed files
with
61 additions
and
47 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
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
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,15 +1,27 @@ | ||
machine: | ||
node: | ||
version: 7 | ||
environment: | ||
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin" | ||
|
||
dependencies: | ||
override: | ||
- yarn | ||
cache_directories: | ||
- ~/.cache/yarn | ||
|
||
test: | ||
override: | ||
- yarn test | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: ~/repo | ||
docker: | ||
- image: circleci/node:latest | ||
branches: | ||
ignore: | ||
- gh-pages # list of branches to ignore | ||
- /release\/.*/ # or ignore regexes | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: install dependences | ||
command: yarn | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "yarn.lock" }} | ||
paths: | ||
- ./node_modules | ||
- run: | ||
name: test | ||
command: yarn test | ||
- run: | ||
name: release | ||
command: npx semantic-release |
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,18 +1,18 @@ | ||
<template> | ||
<div id="app"> | ||
<h1>Home</h1> | ||
<no-ssr placeholder="hi"> | ||
<client-only placeholder="hi"> | ||
<h2>This part is rendered on the client-side only</h2> | ||
</no-ssr> | ||
</client-only> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import NoSSR from '../src' | ||
import ClientOnly from '../src' | ||
export default { | ||
components: { | ||
'no-ssr': NoSSR | ||
ClientOnly | ||
} | ||
} | ||
</script> |
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
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