Skip to content

Commit 2d5df79

Browse files
committed
build: remove the build task from postinstall
1 parent 8aa7734 commit 2d5df79

File tree

237 files changed

+1671
-3871
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+1671
-3871
lines changed

.eslintrc.json

+7
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@
8383
"rules": {
8484
"no-console": ["off"]
8585
}
86+
},
87+
{
88+
"files": ["*.json"],
89+
"parser": "jsonc-eslint-parser",
90+
"rules": {
91+
"notice/notice": "off"
92+
}
8693
}
8794
]
8895
}

.github/actions/setup-job/action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ runs:
1313
- name: Install dependencies
1414
shell: bash
1515
run: yarn --frozen-lockfile
16+
17+
- name: Build the project
18+
shell: bash
19+
run: yarn build

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ build-storybook.log
1111
.devcontainer
1212
tach-results.*
1313
.gitconfig
14+
.eslintcache
15+
.stylelintcache
1416
.netlify/plugins
1517

1618
# documentation

.husky/pre-commit

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
STAGED_FILES_TO_LINT=$(git diff --name-only --cached --diff-filter=d -- "*.ts" "*.js")
1+
STAGED_SCRIPTS_TO_LINT=$(git diff --name-only --cached --diff-filter=d -- "*.ts")
2+
23
VERSION_FILE=$(dirname "$0")/../tools/base/src/version.js
3-
yarn eslint -f pretty $STAGED_FILES_TO_LINT
4-
yarn analyze
5-
yarn lint:css
6-
yarn pretty-quick --staged
4+
5+
# Only run yarn analyze if updates have been made to the typescript files
6+
if [ -n "$STAGED_SCRIPTS_TO_LINT" ]; then
7+
yarn analyze
8+
fi
9+
710
yarn genversion --es6 --semi $VERSION_FILE
811
git add $VERSION_FILE

.stylelintrc.json

-28
This file was deleted.

COPYRIGHT

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Copyright 2025 Adobe. All rights reserved.
2+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
3+
you may not use this file except in compliance with the License. You may obtain a copy
4+
of the License at http://www.apache.org/licenses/LICENSE-2.0
5+
6+
Unless required by applicable law or agreed to in writing, software distributed under
7+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
8+
OF ANY KIND, either express or implied. See the License for the specific language
9+
governing permissions and limitations under the License.

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Typical development will involve running `yarn storybook`, `yarn test`, and `yar
3434
Creating a new component from the command line can be done by running the following:
3535

3636
```bash
37-
$ yarn new-package
37+
yarn new-package
3838
```
3939

4040
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.
@@ -92,7 +92,6 @@ The `:nonbreaking` variant lets us release patch updates quickly in cases where
9292
There are several commands that can be useful in specific scenarios:
9393

9494
- `yarn build:clear-cache` to remove previously created artifacts of the `tsc build` process.
95-
- `yarn spectrum-vars` to ensure that theme files are up-to-date.
9695
- `yarn process-icons` to make sure that the most recent icons are included.
9796
- `yarn process-spectrum` to process the spectrum CSS style sources into the individual packages.
9897
- `yarn build` to make sure the available JS has been built from the current TS source.

config/license.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/*
2-
Copyright <%= YEAR %> Adobe. All rights reserved.
3-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License. You may obtain a copy
5-
of the License at http://www.apache.org/licenses/LICENSE-2.0
6-
7-
Unless required by applicable law or agreed to in writing, software distributed under
8-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9-
OF ANY KIND, either express or implied. See the License for the specific language
10-
governing permissions and limitations under the License.
11-
*/
1+
/*!
2+
* Copyright <%= YEAR %> Adobe. All rights reserved.
3+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License. You may obtain a copy
5+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under
8+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9+
* OF ANY KIND, either express or implied. See the License for the specific language
10+
* governing permissions and limitations under the License.
11+
*/

lint-staged.config.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*!
2+
* Copyright 2025 Adobe. All rights reserved.
3+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License. You may obtain a copy
5+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under
8+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9+
* OF ANY KIND, either express or implied. See the License for the specific language
10+
* governing permissions and limitations under the License.
11+
*/
12+
13+
export default {
14+
'*.css': [
15+
'stylelint --fix --cache --allow-empty-input --report-descriptionless-disables --report-invalid-scope-disables --report-needless-disables',
16+
'prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write',
17+
],
18+
'*.{ts,js,json}': [
19+
'eslint --fix --cache --no-error-on-unmatched-pattern --quiet',
20+
],
21+
'*.{md,html}': [
22+
'prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write',
23+
],
24+
};

linters/stylelint-header/CHANGELOG.md

-148
This file was deleted.

linters/stylelint-header/README.md

-36
This file was deleted.

0 commit comments

Comments
 (0)