Skip to content

Commit

Permalink
Chore: Rename dev script to more common start
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Nov 1, 2021
1 parent fee171a commit bb6bd54
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: yarn install --frozen-lockfile

- name: Lint
run: yarn lint:css
run: yarn lint

- name: Check format
run: yarn format:check
run: yarn format
28 changes: 16 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,30 @@
"url": "https://github.com/lmc-eu/cookie-consent-manager.git"
},
"scripts": {
"precss": "yarn lint:css",
"css": "run-s css:compile css:prefix css:minify",
"precss": "yarn css:lint",
"css": "npm-run-all --serial css:compile css:prefix css:minify",
"css:compile": "sass --load-path=node_modules/@lmc-eu/spirit-design-tokens/dist/default/scss src/LmcCookieConsentManager.scss dist/LmcCookieConsentManager.css",
"css:prefix": "postcss --config postcss.config.js --replace \"dist/*.css\" \"!dist/*.min.css\"",
"css:minify": "cleancss --format breaksWith=lf --source-map-inline-sources --batch --batch-suffix \".min\" \"dist/*.css\" \"!dist/*.min.css\"",
"lint": "yarn lint:css",
"lint:css": "stylelint --config .stylelintrc \"src/**/*.scss\" --cache --cache-location .cache/.stylelintcache",
"lint:commit:test": "yarn commitlint --from HEAD~1 --to HEAD --verbose",
"css:lint": "stylelint --config .stylelintrc \"src/**/*.scss\" --cache --cache-location .cache/.stylelintcache",
"prejs": "yarn js:lint",
"js": "yarn js:compile",
"js:lint": "echo 'To be defined'",
"js:compile": "node scripts/build.js",
"lint": "npm-run-all --serial css:lint lint:commit",
"lint:commit": "yarn commitlint --from $(git describe --always --first-parent) --verbose",
"lint:commit:last": "yarn commitlint --from HEAD~1 --to HEAD --verbose",
"prebuild": "rm -rf dist && mkdir -p dist && cp package.json README.md dist/",
"build:css": "yarn css",
"build:js": "node scripts/build.js",
"build": "run-s build:js build:css",
"dev": "node scripts/serve.js",
"build": "npm-run-all --serial js:compile css",
"start": "node scripts/serve.js",
"format": "yarn format:check",
"format:check": "prettier --check 'src/**/*.{js,jsx,ts,tsx,scss}' 'scripts/*'",
"format:fix": "prettier --write 'src/**/*.{js,jsx,ts,tsx,scss}' 'scripts/*'",
"test": "npm-run-all --serial lint format",
"prepare": "husky install",
"changelog": "conventional-changelog -p @lmc-eu/conventional-changelog-lmc-bitbucket -i CHANGELOG.md -s",
"changelog:origin": "conventional-changelog -p @lmc-eu/conventional-changelog-lmc-bitbucket -i CHANGELOG.md -s -r 0",
"test": "run-s lint format:check"
"changelog": "yarn changelog:from-tag",
"changelog:from-tag": "conventional-changelog -p @lmc-eu/conventional-changelog-lmc-bitbucket -i CHANGELOG.md -s",
"changelog:from-beginning": "conventional-changelog -p @lmc-eu/conventional-changelog-lmc-bitbucket -i CHANGELOG.md -s -r 0"
},
"dependencies": {
"@lmc-eu/spirit-design-tokens": "^0.2.0",
Expand Down

0 comments on commit bb6bd54

Please sign in to comment.