Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: trying the first version of packem #3

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ jobs:
- name: "Build Production"
run: "pnpm run build:packages:prod"

- name: "test and coverage"
run: "pnpm run test:coverage"
# - name: "test and coverage"
# run: "pnpm run test:coverage"

- name: "Prepare nx cache"
shell: "bash"
run: "tar -cf - .nx/cache | lz4 > /tmp/nx_cache.tar.lz4" # compress nx cache

- name: "Upload code coverage to codecov"
uses: "anolilab/workflows/step/codecov@main"
with:
run-lint: "false"
codecov-token: "${{ secrets.CODECOV_TOKEN }}"
# - name: "Upload code coverage to codecov"
# uses: "anolilab/workflows/step/codecov@main"
# with:
# run-lint: "false"
# codecov-token: "${{ secrets.CODECOV_TOKEN }}"

- name: "Semantic Release"
if: "success()"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@anolilab/multi-semantic-release": "^1.1.0",
"@anolilab/prettier-config": "^5.0.14",
"@anolilab/textlint-config": "^8.0.16",
"@babel/core": "^7.24.5",
"@babel/core": "^7.24.6",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@nrwl/tao": "19.0.7",
Expand Down
13 changes: 13 additions & 0 deletions packages/packem/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
dist
node_modules
inject-react-import.js
coverage
vitest.config.ts
recipes
__fixtures__
__bench__
.prettierrc.cjs
.eslintrc.cjs
.secretlintrc.cjs
_meta.*.json
tsup.config.ts
78 changes: 78 additions & 0 deletions packages/packem/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
const globals = require("@anolilab/eslint-config/globals");

/** @ts-check */
/** @type {import('eslint').Linter.Config} */
module.exports = {
env: {
// Your environments (which contains several predefined global variables)
// Most environments are loaded automatically if our rules are added
},
extends: ["@anolilab/eslint-config", "@anolilab/eslint-config/typescript-type-checking"],
globals: {
...globals.es2021,
// Your global variables (setting to false means it's not allowed to be reassigned)
// myGlobal: false
},
ignorePatterns: ["!**/*"],
overrides: [
{
files: ["*.ts", "*.tsx", "*.mts", "*.cts", "*.js", "*.jsx"],
// Set parserOptions.project for the project to allow TypeScript to create the type-checker behind the scenes when we run linting
parserOptions: {},
rules: {},
},
{
files: ["*.ts", "*.tsx", "*.mts", "*.cts"],
// Set parserOptions.project for the project to allow TypeScript to create the type-checker behind the scenes when we run linting
parserOptions: {},
rules: {
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",

"compat/compat": "off",
"prefer-template": "off",
},
},
{
files: ["*.test.ts"],
// Set parserOptions.project for the project to allow TypeScript to create the type-checker behind the scenes when we run linting
parserOptions: {},
rules: {
"import/no-default-export": "error",
"import/prefer-default-export": "off",
"import/no-unused-modules": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/naming-convention": "off",
},
},
{
files: ["*.js", "*.jsx"],
rules: {},
},
{
files: ["*.ts"],
rules: {
"no-underscore-dangle": "off",
},
},
{
files: ["*.mdx"],
rules: {
"jsx-a11y/anchor-has-content": "off",
// @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/917
"jsx-a11y/heading-has-content": "off",
},
},
],
parserOptions: {
ecmaVersion: 2021,
project: "./tsconfig.eslint.json",
sourceType: "module",
},
// Report unused `eslint-disable` comments.
reportUnusedDisableDirectives: true,
root: true
};
9 changes: 9 additions & 0 deletions packages/packem/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package-lock.json

src
__tests__
__stories__
__fixtures__
.rpt2_cache
fixup.sh
.releaserc.json
11 changes: 11 additions & 0 deletions packages/packem/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.gitkeep
.env*
*.ico
*.lock
dist
CHANGELOG.md
coverage
node_modules
.eslintcache
tsconfig.json
tsconfig.eslint.json
5 changes: 5 additions & 0 deletions packages/packem/.prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const config = require("@anolilab/prettier-config");

module.exports = {
...config,
};
3 changes: 3 additions & 0 deletions packages/packem/.releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@anolilab/semantic-release-preset/pnpm"
}
3 changes: 3 additions & 0 deletions packages/packem/.secretlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.pnpm-store
packages/**/node_modules
node_modules
7 changes: 7 additions & 0 deletions packages/packem/.secretlintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
rules: [
{
id: "@secretlint/secretlint-rule-preset-recommend",
},
],
};
Empty file added packages/packem/CHANGELOG.md
Empty file.
Loading
Loading