mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
build: lint companion from root + lint-stage for companion
This commit is contained in:
parent
46fc3de35d
commit
b4dfde23f4
4 changed files with 8 additions and 9 deletions
|
|
@ -3,7 +3,8 @@
|
|||
"name": "uppy-build",
|
||||
"description": "Extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:",
|
||||
"lint-staged": {
|
||||
"*.js": "eslint"
|
||||
"*.js": "eslint",
|
||||
"packages/@uppy/companion/**/*.js": "eslint --ignore-path packages/@uppy/companion/.eslintignore -c packages/@uppy/companion/.eslintrc.json"
|
||||
},
|
||||
"pre-commit": "lint-staged",
|
||||
"license": "MIT",
|
||||
|
|
@ -87,6 +88,7 @@
|
|||
"build": "npm-run-all --parallel build:js build:css --serial build:gzip size",
|
||||
"clean": "rm -rf packages/*/lib packages/@uppy/*/lib && rm -rf packages/uppy/dist",
|
||||
"lint:fix": "npm run lint -- --fix",
|
||||
"lint:companion": "eslint --ignore-path packages/@uppy/companion/.eslintignore -c packages/@uppy/companion/.eslintrc.json packages/@uppy/companion/.",
|
||||
"lint": "eslint . --cache",
|
||||
"lint-staged": "lint-staged",
|
||||
"release": "./bin/release",
|
||||
|
|
@ -101,7 +103,7 @@
|
|||
"test:unit": "jest --testPathPattern=./src --coverage",
|
||||
"test:type": "tsc -p .",
|
||||
"test": "npm run lint && npm run test:unit && npm run test:type",
|
||||
"test:companion": "cd ./packages/@uppy/companion && npm run test",
|
||||
"test:companion": "npm run lint:companion && cd ./packages/@uppy/companion && npm run test",
|
||||
"test:watch": "jest --watch --testPathPattern=src",
|
||||
"travis:deletecache": "travis cache --delete",
|
||||
"watch:css": "onchange 'packages/**/*.scss' --initial --verbose -- npm run build:css",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
lib/**
|
||||
node_modules/**
|
||||
coverage/**
|
||||
built/**
|
||||
packages/@uppy/companion/lib
|
||||
packages/@uppy/companion/node_modules
|
||||
packages/@uppy/companion/coverage
|
||||
|
|
|
|||
|
|
@ -95,11 +95,9 @@
|
|||
"scripts": {
|
||||
"build": "tsc -p .",
|
||||
"deploy": "kubectl apply -f infra/kube/companion-kube.yml",
|
||||
"fix": "eslint . --fix",
|
||||
"lint": "eslint .",
|
||||
"prepublishOnly": "npm run build",
|
||||
"start": "node ./lib/standalone/start-server.js",
|
||||
"test": "/bin/bash -c 'npm run lint && npm run build && source env.test.sh && jest'",
|
||||
"test": "/bin/bash -c 'npm run build && source env.test.sh && jest'",
|
||||
"test:watch": "npm test -- --watch"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue