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

build: remove the build task from postinstall #5016

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
7 changes: 7 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@
"rules": {
"no-console": ["off"]
}
},
{
"files": ["*.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"notice/notice": "off"
}
}
]
}
4 changes: 4 additions & 0 deletions .github/actions/setup-job/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ runs:
- name: Install dependencies
shell: bash
run: yarn --immutable

- name: Build the project
shell: bash
run: yarn build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ build-storybook.log
.devcontainer
tach-results.*
.gitconfig
.eslintcache
.stylelintcache
.netlify/plugins

# documentation
Expand Down
13 changes: 8 additions & 5 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
STAGED_FILES_TO_LINT=$(git diff --name-only --cached --diff-filter=d -- "*.ts" "*.js")
STAGED_SCRIPTS_TO_LINT=$(git diff --name-only --cached --diff-filter=d -- "*.ts")

VERSION_FILE=$(dirname "$0")/../tools/base/src/version.js
yarn eslint -f pretty $STAGED_FILES_TO_LINT
yarn analyze
yarn lint:css
yarn pretty-quick --staged

# Only run yarn analyze if updates have been made to the typescript files
if [ -n "$STAGED_SCRIPTS_TO_LINT" ]; then
yarn analyze
fi

yarn genversion --es6 --semi $VERSION_FILE
git add $VERSION_FILE
28 changes: 0 additions & 28 deletions .stylelintrc.json

This file was deleted.

9 changes: 9 additions & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Copyright 2025 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Typical development will involve running `yarn storybook`, `yarn test`, and `yar
Creating a new component from the command line can be done by running the following:

```bash
$ yarn new-package
yarn new-package
```

This will scaffold your component's required architecture by prompting you for 2 data points - the desired name for your package and the name of the Spectrum CSS asset from which you will be building.
Expand Down Expand Up @@ -92,7 +92,6 @@ The `:nonbreaking` variant lets us release patch updates quickly in cases where
There are several commands that can be useful in specific scenarios:

- `yarn build:clear-cache` to remove previously created artifacts of the `tsc build` process.
- `yarn spectrum-vars` to ensure that theme files are up-to-date.
- `yarn process-icons` to make sure that the most recent icons are included.
- `yarn process-spectrum` to process the spectrum CSS style sources into the individual packages.
- `yarn build` to make sure the available JS has been built from the current TS source.
Expand Down
22 changes: 11 additions & 11 deletions config/license.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
Copyright <%= YEAR %> Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/
/*!
* Copyright <%= YEAR %> Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
24 changes: 24 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*!
* Copyright 2025 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/

export default {
'*.css': [
'stylelint --fix --cache --allow-empty-input --report-descriptionless-disables --report-invalid-scope-disables --report-needless-disables',
'prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write',
],
'*.{ts,js,json}': [
'eslint --fix --cache --no-error-on-unmatched-pattern --quiet',
],
'*.{md,html}': [
'prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write',
],
};
148 changes: 0 additions & 148 deletions linters/stylelint-header/CHANGELOG.md

This file was deleted.

36 changes: 0 additions & 36 deletions linters/stylelint-header/README.md

This file was deleted.

Loading
Loading