diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..51eb5bb --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +version: 2 +jobs: + build: + 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 diff --git a/README.md b/README.md index d76d6d8..5715ba1 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ $ npm install --save vue-mugen-scroll CDN: https://unpkg.com/vue-mugen-scroll/dist/ +Demo: [JSFiddle](https://jsfiddle.net/jericopulvera/wq07brjs/17/) + ## Usage ```vue @@ -70,7 +72,7 @@ Invoke the handler function on component mounted. Type: `boolean`
Default: `true` -Add an addtional condition to check if it should invoke the handler function, for example you don't want it to be invoked again as it's loading. +Add an additional condition to check if it should invoke the handler function, for example you don't want it to be invoked again as it's loading. #### threshold diff --git a/circle.yml b/circle.yml deleted file mode 100644 index d26a5bc..0000000 --- a/circle.yml +++ /dev/null @@ -1,15 +0,0 @@ -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 diff --git a/example/App.vue b/example/Demo.vue similarity index 76% rename from example/App.vue rename to example/Demo.vue index 8f84c0e..a61f008 100644 --- a/example/App.vue +++ b/example/Demo.vue @@ -1,9 +1,8 @@