question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lint and build commands could be added to a GitHub Action

See original GitHub issue

For 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:open
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
muhammadsammycommented, Jan 3, 2021

Done. 👍 Thanks a lot!

1reaction
eddiejaoudecommented, Jan 3, 2021

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 🤓

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found