fix: components scripts (#1136)
* fix: components test script * fix: lint & format script Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com>
This commit is contained in:
@@ -10,9 +10,10 @@
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run components:clean",
|
||||
"lint": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run components:lint",
|
||||
"test": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run components:test",
|
||||
"clean": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run clean",
|
||||
"lint": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run lint",
|
||||
"format": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run format",
|
||||
"test": "yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run test",
|
||||
"build": "tsc --project tsconfig.json && yarn workspaces foreach --parallel --jobs 10 --verbose --exclude @standardnotes/components-meta run components:compile",
|
||||
"package": "node scripts/package.mjs",
|
||||
"version": "./scripts/VERSION.sh"
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
"test:coverage": "npm run test -- --coverage --watchAll",
|
||||
"eject": "react-scripts eject",
|
||||
"components:compile": "react-app-rewired build",
|
||||
"components:test": "react-app-rewired test --watchAll=false --silent",
|
||||
"components:lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
|
||||
"test": "react-app-rewired test --watchAll=false --silent",
|
||||
"format": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
|
||||
@@ -12,8 +12,10 @@
|
||||
"scripts": {
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot",
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"skip:components:lint": "eslint src --ext .js",
|
||||
"components:lint:fix": "yarn lint --fix"
|
||||
"skip:lint": "eslint src --ext .js",
|
||||
"lint:fix": "eslint src --ext .js --fix",
|
||||
"test": "echo \"Error: no test specified\" && exit 0",
|
||||
"format": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.13.10",
|
||||
|
||||
@@ -4,10 +4,11 @@
|
||||
"version": "1.3.9",
|
||||
"main": "dist/dist.js",
|
||||
"scripts": {
|
||||
"skip:components:lint": "eslint app/ --ext .js",
|
||||
"components:lint:fix": "yarn lint --fix",
|
||||
"skip:lint": "eslint app/ --ext .js",
|
||||
"lint:fix": "eslint app/ --ext .js --fix",
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot"
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"sn": {
|
||||
"main": "dist/index.html"
|
||||
|
||||
@@ -9,9 +9,10 @@
|
||||
"scripts": {
|
||||
"start": "http-server . --cors -p8001 & webpack --progress --config webpack.dev.js",
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"skip:components:lint": "eslint ./src --ext .js",
|
||||
"components:lint:fix": "yarn lint --fix",
|
||||
"components:clean": "rm -rf ./vendor"
|
||||
"skip:lint": "eslint src/ --ext .js",
|
||||
"lint:fix": "eslint src/ --ext .js --fix",
|
||||
"clean": "rm -rf ./vendor",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.12.10",
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"components:compile": "grunt"
|
||||
"components:compile": "grunt",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"author": "Standard Notes",
|
||||
"devDependencies": {
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
"start": "react-app-rewired start",
|
||||
"components:compile": "react-app-rewired build",
|
||||
"eject": "react-scripts eject",
|
||||
"components:lint": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
|
||||
"format": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@codemirror/lang-markdown": "^0.19.6",
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
"main": "dist/dist.js",
|
||||
"author": "Standard Notes <hello@standardnotes.org>",
|
||||
"scripts": {
|
||||
"components:compile": "grunt"
|
||||
"components:compile": "grunt",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.11.1",
|
||||
|
||||
@@ -6,9 +6,11 @@
|
||||
"main": "dist/dist.js",
|
||||
"author": "Standard Notes <hello@standardnotes.com>",
|
||||
"scripts": {
|
||||
"skip:components:lint": "eslint --ext .js .",
|
||||
"skip:lint": "eslint --ext .js .",
|
||||
"lint:fix": "eslint --ext .js . --fix",
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot"
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"sn": {
|
||||
"main": "dist/index.html"
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
"version": "1.4.6",
|
||||
"main": "dist/dist.js",
|
||||
"scripts": {
|
||||
"skip:components:lint": "eslint --cache --ext .jsx,.js --format=node_modules/eslint-formatter-pretty .",
|
||||
"skip:lint": "eslint --cache --ext .jsx,.js --format=node_modules/eslint-formatter-pretty .",
|
||||
"lint:fix": "eslint --cache --ext .jsx,.js --format=node_modules/eslint-formatter-pretty .",
|
||||
"components:compile": "webpack",
|
||||
"start": "webpack-dev-server --devtool eval --progress --port 8001 --hot --content-base app",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1"
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"sn": {
|
||||
"main": "dist/index.html"
|
||||
|
||||
@@ -6,8 +6,9 @@
|
||||
"scripts": {
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot",
|
||||
"skip:components:lint": "eslint app/ --ext .js",
|
||||
"components:lint:fix": "yarn lint --fix"
|
||||
"skip:lint": "eslint app/ --ext .js",
|
||||
"lint:fix": "eslint app/ --ext .js --fix",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"sn": {
|
||||
"main": "dist/index.html"
|
||||
|
||||
@@ -4,11 +4,12 @@
|
||||
"version": "1.4.8",
|
||||
"main": "dist/dist.js",
|
||||
"scripts": {
|
||||
"skip:components:lint": "eslint app/ --ext .js",
|
||||
"components:lint:fix": "npm run lint -- --fix",
|
||||
"skip:lint": "eslint app/ --ext .js",
|
||||
"lint:fix": "eslint app/ --ext .js --fix",
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1"
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"sn": {
|
||||
"main": "dist/index.html"
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"webpack": "*"
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"webpack": "*"
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"webpack": "*"
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"webpack": "*"
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ./../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ./../theme.webpack.config.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"webpack": "*"
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"webpack": "*"
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"main": "dist/dist.css"
|
||||
},
|
||||
"scripts": {
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js"
|
||||
"components:compile": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,9 +6,10 @@
|
||||
"scripts": {
|
||||
"components:compile": "webpack --config webpack.prod.js",
|
||||
"start": "webpack serve --config webpack.dev.js --progress --hot",
|
||||
"skip:components:lint": "eslint app/ --ext .js",
|
||||
"components:lint:fix": "eslint --fix",
|
||||
"components:lint": "prettier --write 'app/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
|
||||
"skip:lint": "eslint app/ --ext .js",
|
||||
"lint:fix": "eslint app/ --ext .js --fix",
|
||||
"test": "echo \"Error: no test specified\" && exit 0",
|
||||
"format": "prettier --write 'app/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
|
||||
},
|
||||
"sn": {
|
||||
"main": "dist/index.html"
|
||||
|
||||
Reference in New Issue
Block a user