Skip to content

Commit 3ef224c

Browse files
Fix/update build (#131)
* Ensure scripts fail if any step fails - replaces ; with && * Add a build step to travis.yml * Remove styleguide scripts from the package.json * Remove un-needed async describe block
1 parent fd6a0ac commit 3ef224c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ node_js:
33
- "10"
44
script:
55
- npm run lint
6-
- npm run test
6+
- npm run build
7+
- npm run test

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
"version": "1.1.2",
44
"scripts": {
55
"serve": "INTERNAL_DEPS=1 vue-cli-service serve ./playground/main.js",
6-
"build": "vue-cli-service lint --fix; npm run build:styleguide; npm run build:lib",
6+
"build": "vue-cli-service lint --fix && npm run build:lib",
77
"test": "vue-cli-service test:unit",
88
"tdd": "yarn run test --watch --coverage=false",
99
"bundlewatch": "bundlewatch --config ./bundlewatch.config.js",
1010
"lint": "vue-cli-service lint",
1111
"build:lib": "vue-cli-service build --target lib --name Cloudinary src/index.js && npm run bundlewatch",
12-
"build:styleguide": "rm -rf docs/*; node docs-sources/generateDocsLinks.js; vue-cli-service lint --fix; INTERNAL_DEPS=1 vue-styleguidist build",
13-
"styleguide": "node docs-sources/generateDocsLinks.js; vue-cli-service lint --fix; INTERNAL_DEPS=1 vue-styleguidist server",
1412
"storybook": "start-storybook -p 6006",
1513
"build-storybook": "build-storybook -o docs-build -s ./src/stories/assets"
1614
},

tests/unit/Image/img_responsive_fill.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Vue from 'vue';
22
import { mount } from "@vue/test-utils";
33
import CldImage from "../../../src/components/CldImage/CldImage.vue";
44

5-
describe("CldImage::responsive=fill", async () => {
5+
describe("CldImage::responsive=fill",() => {
66
it("renders", async () => {
77
const wrapper = mount({
88
template: `

0 commit comments

Comments
 (0)