Skip to content

Commit d721ce6

Browse files
committed
🔄 Simplify CSS Compilation Process in package.json
- Streamlined the 'compile-sass' script by utilizing the newly added 'minifyCSS.sh' script. - Removed the 'minify-css' script, integrating its functionality into 'compile-sass'. - Updated dependencies: removed 'clean-css-cli' and adjusted 'node-sass' to a single entry. - Deleted the 'generate-test-results' script for a more efficient test process.
1 parent 9bdb1a2 commit d721ce6

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@
99
"clean-rmDocs": "rm -rf docs/private && mkdir docs/private",
1010
"clean-rmWiki": "rm -rf wiki && mkdir wiki",
1111
"clean-local": "rm -f src/deploy.xml && rm -f src/manifest.xml && rm -f .ci/.branch && rm -f project.json",
12-
"compile-sass": "node-sass --output-style compressed src/FileCabinet/SuiteScripts/cfm/CS/Validations/styling/scss/ -o src/FileCabinet/SuiteScripts/cfm/CS/Validations/styling/css/ && bash ./.ci/scripts/minifyCSS.sh",
13-
"minify-css": "cleancss -o src/FileCabinet/SuiteScripts/cfm/CS/Validations/styling/css/*.min.css src/FileCabinet/SuiteScripts/cfm/CS/Validations/styling/css/*.css",
12+
"compile-sass": "bash ./.ci/scripts/minifyCSS.sh",
1413
"view-coverage": "npm run test && (start ./coverage/lcov-report/index.html || open ./coverage/lcov-report/index.html)",
1514
"setup-server": "npm run install-SDF-cli && npm run generate-manifests --headbranch=$npm_config_headbranch --sourcebranch=$npm_config_sourcebranch --releaserun=$npm_config_releaserun --flatobjects=$npm_config_flatobjects --validaterun=$npm_config_validaterun",
1615
"setup-server-token": "npm run setup-server --headbranch=$npm_config_headbranch --sourcebranch=$npm_config_sourcebranch --releaserun=$npm_config_releaserun --flatobjects=$npm_config_flatobjects --validaterun=$npm_config_validaterun && npm run save-token --account=$npm_config_account --authid=$npm_config_authid --tokenid=$npm_config_tokenid --tokensecret=$npm_config_tokensecret",
1716
"install-SDF-cli": "npm i --acceptSuiteCloudSDKLicense @oracle/suitecloud-cli && npm i @oracle/suitecloud-unit-testing",
1817
"suitecloud": "node ./node_modules/@oracle/suitecloud-cli/src/suitecloud.js",
1918
"generate-manifests": "npm run compile-sass && bash .ci/scripts/createDeployment.sh $npm_config_headbranch $npm_config_sourcebranch $npm_config_releaserun $npm_config_flatobjects $npm_config_validaterun",
20-
"generate-test-results": "bash .ci/scripts/runTests.sh $npm_config_testlist",
2119
"deploy": "npm run add-ns-dependents && npm run suitecloud -- project:deploy --accountspecificvalues WARNING",
2220
"save-token": "node ./node_modules/@oracle/suitecloud-cli/src/suitecloud.js account:savetoken --account $npm_config_account --authid $npm_config_authid --tokenid $npm_config_tokenid --tokensecret $npm_config_tokensecret",
2321
"deploy-pipeline": "npm run deploy",
@@ -59,15 +57,13 @@
5957
"@supabase/doctest-js": "^0.1.0",
6058
"@types/jsdom": "^20.0.1",
6159
"alias-quokka-plugin": "^0.1.0",
62-
"clean-css-cli": "5.6.2",
6360
"clean-jsdoc-theme": "^4.1.10",
6461
"jest": "^29.3.1",
6562
"jest-environment-jsdom": "^29.3.1",
6663
"jest-junit-reporter": "^1.1.0",
6764
"jquery": "^3.6.1",
6865
"jsdoc": "^3.6.11",
6966
"jsdoc-to-markdown": "^7.1.1",
70-
"node-sass": "9.0.0",
71-
"suitecloud-unit-testing-stubs": "^1.0.4"
67+
"node-sass": "9.0.0"
7268
}
7369
}

0 commit comments

Comments
 (0)