Lint and build commands could be added to a GitHub Action
See original GitHub issueFor example the build
and lint
commands from the scripts
section …
"scripts": {
"build": "npm run build:lib & npm run build:umd",
"build:lib": "tsc --outDir lib --module commonjs",
"build:es": "tsc --outDir es --module es2015",
"build:umd": "npm run build:es && rollup --config && dts-bundle --name dist/bundle --main es --outputAsModuleFolder",
"clean": "rimraf dist es lib coverage tailwindcss-classnames.ts tailwind.config.js",
"typecheck": "tsc --noEmit",
"lint": "eslint \"src/**/*.{js,ts}\" --quiet --fix && npm run format",
"format": "prettier \"**/*.{md,js,jsx,json,ts,tsx}\" --write",
"test": "jest --env=jsdom --coverage --passWithNoTests",
"test:watch": "jest --env=jsdom --watch --updateSnapshot",
"prepublishOnly": "npm run build",
"prebuild": "npm run clean",
"postbuild": "rimraf {lib,es}/**/__tests__ {lib,es}/**/*.{spec,test}.{js,d.ts,js.map}",
"posttest": "npm run typecheck && npm run lint",
"preversion": "npm test",
"postversion": "git push && git push --tags",
"release": "standard-version",
"pregenerate": "npm run clean && npm run build:lib",
"generate": "tailwindcss init --full && node lib/cli/index.js --config tailwind.config.js --output src/index.ts",
"postgenerate": "npm run clean",
"preupdateConfig": "npm run clean",
"updateConfig": "tailwindcss init --full && node helpers/updateDefaultConfig.js",
"postupdateConfig": "npm run clean && prettier src/cli/lib/defaultTailwindConfig.ts --write"
},
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Lint Action · Actions · GitHub Marketplace
Lint Action. Shows linting errors on GitHub commits and PRs; Allows auto-fixing issues; Supports many linters and formatters. Note: The behavior of actions...
Read more >Super-Linter · Actions · GitHub Marketplace
ENV VAR Default Value Notes
DEFAULT_BRANCH master The name of the repository default branch.
EDITORCONFIG_FILE_NAME.ecrc Filename for editorconfig‑checker configuration
JSCPD_CONFIG_FILE.jscpd.json Filename for JSCPD configuration
Read more >Run ESLint · Actions · GitHub Marketplace
This action executes ESLint linter on specified javascript files without any previous action/build step or Docker required. Prerequisites. ESLint. You must have ...
Read more >Action Lint - GitHub Marketplace
✨ Lint Action. Shows linting errors on GitHub commits and PRs; Allows auto-fixing issues; Supports many linters and formatters. Note: The behavior of ......
Read more >Features • GitHub Actions
GitHub Actions supports Node.js, Python, Java, Ruby, PHP, Go, Rust, .NET, and more. Build, test, and deploy applications in your language of choice....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Done. 👍 Thanks a lot!
No problem. I know I already reviewed the project in a YouTube video (being edited tomorrow and posted later this week), but I am thinking of doing another video dedicated to adding value to a projects. I think so many projects could benefit from having some of their commands added to a GitHub Action, and this would make a great contribution from the community.
If you could assign this ticket to me and I will link it from our discussion in our community repo, I will try to create a dedicated video on this, this week 🤓