Skip to content

Commit

Permalink
CI: test JS
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Mar 7, 2020
1 parent 74d6e43 commit 72838fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ env:

jobs:
include:
- name: JS test + Code Standard Checker
language: node_js
node_js: lts/*
install:
- travis_retry npm install
script:
- npm run test
- stage: Code Standard Checker
php: 7.4
script:
Expand Down Expand Up @@ -40,3 +47,4 @@ sudo: false
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@
"dist"
],
"scripts": {
"lint": "eslint src/assets build",
"test": "npm run lint",
"clean": "rm -rf ./dist/*/*",
"build:esm": "rollup --config build/rollup.config.esm.js",
"build:cjs": "rollup --config build/rollup.config.cjs.js",
"build:umd": "rollup --config build/rollup.config.umd.js",
"build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:umd",
"lint": "eslint src build"
"build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:umd"
}
}

0 comments on commit 72838fb

Please sign in to comment.