-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit "$1" | ||
#npx --no-install commitlint --edit "$1" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run lint && npm run test | ||
lint-staged |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
registry=https://registry.npmjs.org/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
const { getPrettierConfig } = require('./packages/spec/src/'); | ||
import { config } from '@ice/spec/prettier'; | ||
|
||
module.exports = getPrettierConfig('react'); | ||
export default config; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
const { getCommitlintConfig } = require('./packages/spec/src/'); | ||
|
||
module.exports = getCommitlintConfig('react'); | ||
// const { getCommitlintConfig } = require('./packages/spec/src/'); | ||
// | ||
// module.exports = getCommitlintConfig('react'); | ||
export default {}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import eslint from '@ice/spec/eslint'; | ||
|
||
// script: eslint --ext .js,.jsx,.tsx,.ts ./ --resolve-plugins-relative-to ./packages/spec | ||
export default [ | ||
...eslint.getConfig({ | ||
preset: 'pkg', | ||
}), | ||
{ | ||
ignores: ['examples/**'], | ||
}, | ||
]; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import eslint from '@ice/spec/eslint'; | ||
|
||
export default eslint.getConfig(); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "@ice/spec-example-common", | ||
"version": "0.0.1", | ||
"private": true, | ||
"devDependencies": { | ||
"@ice/spec": "workspace:*" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import eslint from '@ice/spec/eslint'; | ||
|
||
// script: eslint --ext .js,.jsx,.tsx,.ts ./ --resolve-plugins-relative-to ./packages/spec | ||
export default eslint.getConfig(); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "@ice/spec-example-react", | ||
"version": "0.0.1", | ||
"private": true, | ||
"scripts": { | ||
"lint:code": "eslint .", | ||
"lint:style": "stylelint src/**/*.{css,scss,less}" | ||
}, | ||
"devDependencies": { | ||
"@ice/spec": "workspace:*" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from '@ice/spec/stylelint'; |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
{ | ||
"name": "iceworks-spec", | ||
"name": "ice-spec-monorepo", | ||
"private": true, | ||
"devEngines": { | ||
"node": "8.x || 9.x || 10.x || 11.x", | ||
"npm": "6.x" | ||
}, | ||
"type": "module", | ||
"devDependencies": { | ||
"@commitlint/cli": "^11.0.0", | ||
"codecov": "^3.6.1", | ||
"commitlint-config-ali": "^0.1.0", | ||
"eslint": "^7.22.0", | ||
"husky": "^7.0.1", | ||
"@ice/pkg": "^1.6.0", | ||
"@ice/spec": "workspace:*", | ||
"eslint": "^9.0.0", | ||
"husky": "^9.1.6", | ||
"ice-npm-utils": "^2.0.1", | ||
"jest": "^24.9.0", | ||
"lerna": "^3.18.2", | ||
"prettier": "^2.1.0", | ||
"stylelint": "^13.2.0", | ||
"typescript": "^3.5.3" | ||
"lint-staged": "^15.2.10", | ||
"prettier": "^3.0.0", | ||
"stylelint": "^16.0.0", | ||
"typescript": "^5.6.0", | ||
"vitest": "^2.1.4" | ||
}, | ||
"scripts": { | ||
"prepare": "husky install", | ||
"setup": "rm -rf ./packages/*/node_modules && lerna bootstrap --no-ci && lerna link", | ||
"lint": "eslint --ext .js,.jsx,.tsx,.ts ./ --resolve-plugins-relative-to ./packages/spec", | ||
"lint": "eslint ./", | ||
"prettier": "prettier **/* --write", | ||
"test": "jest && cd packages/spec && npm run test", | ||
"test": "vitest run", | ||
"publish": "node ./scripts/publish", | ||
"ci": "npm run setup && npm run lint && npm run test" | ||
}, | ||
"jest": { | ||
"coverageDirectory": "./coverage/", | ||
"collectCoverage": true | ||
"packageManager": "[email protected]", | ||
"lint-staged": { | ||
"*.{js,jsx,ts,tsx}": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
], | ||
"*.{json,md,css,scss,less}": [ | ||
"prettier --write" | ||
] | ||
} | ||
} | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import {defineConfig} from '@ice/pkg'; | ||
|
||
export default defineConfig({ | ||
transform: { | ||
formats: ['es2017'] | ||
} | ||
}) |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.