Skip to content

Commit

Permalink
chore: setup tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Juveniel committed Jun 20, 2024
1 parent 77fc00b commit de03290
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 22 deletions.
44 changes: 42 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,44 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "develop"
}
"defaultBase": "develop",
"workspaceLayout": {
"libsDir": "packages"
},
"targetDefaults": {
"lint": {
"cache": true,
"executor": "nx:run-script",
"options": {
"script": "lint"
}
},
"build": {
"cache": true
},
"build:tests": {
"cache": true
},
"sass": {
"cache": true,
"outputs": [
"{projectRoot}/dist/**/*.css"
]
},
"sass:flat": {
"cache": true,
"outputs": [
"{projectRoot}/dist/**/*.scss"
]
},
"sass:swatches": {
"cache": true,
"outputs": [
"{projectRoot}/dist/**/*.css",
"{projectRoot}/dist/**/*.scss"
]
},
"docs": {
"cache": true
}
}
}
33 changes: 13 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,24 @@
"scripts": {
"prepare": "husky install",
"start": "node ./scripts/start-dev-server.js",

"build": "npm run build -w packages/html",
"build:tests": "npm run build:tests -w packages/html",

"sass": "npm run sass -ws --if-present",
"sass:flat": "npm run sass:flat -ws --if-present",
"sass:swatches": "npm run sass:swatches -ws --if-present",
"sass:swatches:dist": "npm run sass:swatches:dist -ws --if-present",
"sass:standalone": "npm run sass:standalone -ws --if-present",

"lint": "npm run lint:scripts && npm run lint:styles",
"lint:scripts": "eslint \"**/*.{js,jsx,ts,tsx,mjs}\"",
"lint:styles": "stylelint \"**/*.scss\"",
"lint:staged": "lint-staged --verbose",

"docs": "npm run docs -ws --if-present",
"docs:check": "npm run docs -ws --if-present -- git diff --exit-code --quiet -- docs/",

"build": "nx run @progress/kendo-themes-html:build",
"build:tests": "nx run @progress/kendo-themes-html:build:tests",
"sass": "nx run-many -t sass",
"sass:flat": "nx run-many -t sass:flat",
"sass:swatches": "nx run-many -t sass:swatches",
"sass:swatches:dist": "nx run-many -t sass:swatches:dist",
"sass:standalone": "nx run-many -t sass:standalone",
"docs": "nx run-many -t docs",
"docs:check": "npm run docs -- git diff --exit-code -- docs/",
"test:render-test-pages": "node ./scripts/render-test-pages.mjs",
"test:contrast": "node ./scripts/test-contrast.mjs",
"test:integrations": "npm run build --prefix integrations",
"test:create-screenshots": "./build/create-screenshots.sh",
"test:render-test-pages": "node ./scripts/render-test-pages.mjs",

"clean": "find . -name \"node_modules\" -type d -prune | xargs rm -rf",
"test:integrations": "npm run build --prefix integrations",
"clean": "nx reset && find . -name \"node_modules\" -type d -prune | xargs rm -rf",
"clean:dist": "find ./packages -name \"dist\" -type d -prune -maxdepth 2 | xargs rm -rf",
"clean:tests": "node ./scripts/cleanup-test-results.js"
},
Expand All @@ -89,6 +83,5 @@
"lint-staged": {
"*.{js,jsx,ts,tsx,mjs}": "eslint",
"*.{css,scss}": "stylelint"
},
"nx": {}
}
}

0 comments on commit de03290

Please sign in to comment.