Skip to content

Commit 0101ffd

Browse files
authored
Merge pull request #1883 from pnp/split-projects
Split projects
2 parents 0fd5633 + b29f4c5 commit 0101ffd

File tree

1,292 files changed

+41949
-56281
lines changed

Some content is hidden

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

1,292 files changed

+41949
-56281
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/ISSUE_TEMPLATE/new-issue.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: New Issue
3+
about: React Controls Issue template
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your
11+
needs please complete the below template to ensure we have the details to help. Thanks!
12+
13+
**Please check out the [documentation](https://pnp.github.io/sp-dev-fx-controls-react/) to see if your question is already addressed there. This will help us ensure our documentation is up to date.**
14+
15+
#### Category
16+
[ ] Enhancement
17+
18+
[ ] Bug
19+
20+
[ ] Question
21+
22+
#### Version
23+
24+
Please specify what version of the library you are using: [ ]
25+
26+
_If you are not using the latest release, please update and see if the issue is resolved before submitting an issue._
27+
28+
#### Expected / Desired Behavior / Question
29+
_If you are reporting an issue please describe the expected behavior. If you are suggesting an enhancement please
30+
describe thoroughly the enhancement, how it can be achieved, and expected benefit. If you are asking a question, ask away!_
31+
32+
#### Observed Behavior
33+
_If you are reporting an issue please describe the behavior you expected to occur when performing the action. If you are making a
34+
suggestion or asking a question delete this section._
35+
36+
#### Steps to Reproduce
37+
_If you are reporting an issue please describe the steps to reproduce the bug in sufficient detail to allow testing. If you are making
38+
a suggestion or asking a question delete this section._
39+
40+
#### Submission Guidelines
41+
_Delete this section after reading_
42+
- All suggestions, questions and issues are welcome, please let us know what's on your mind.
43+
- Remember to include sufficient details and context.
44+
- If you have multiple suggestions, questions, or bugs please submit them in separate issues so we can track resolution.
45+
46+
Thanks!

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
pull_request:
6+
branches: [ "main" ]
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 2
14+
- name: Git config user
15+
uses: snow-actions/git-config-user@v1.0.0
16+
with:
17+
name: # Service Account's Name
18+
email: # Service Account's Email Address
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: 16
22+
- name: Verify Change Logs
23+
run: node common/scripts/install-run-rush.js change --verify
24+
- name: Rush Install
25+
run: node common/scripts/install-run-rush.js install
26+
- name: Rush rebuild
27+
run: node common/scripts/install-run-rush.js rebuild --verbose --production

.github/workflows/v4-dev-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,28 @@ jobs:
1515
registry-url: 'https://registry.npmjs.org'
1616

1717
- name: Install npm dependencies
18+
working-directory: ./libraries/spfx-controls-react
1819
run: npm i
1920

2021
- name: Update the package version
22+
working-directory: ./libraries/spfx-controls-react
2123
if: github.ref == 'refs/heads/dev'
2224
run: node scripts/update-package-version.js $GITHUB_RUN_ID
2325

2426
- name: Update version number for telemetry
27+
working-directory: ./libraries/spfx-controls-react
2528
run: npm run versionUpdater
2629

2730
- name: Create/update the missing localization keys
31+
working-directory: ./libraries/spfx-controls-react
2832
run: npm run localization
2933

3034
- name: Run build
35+
working-directory: ./libraries/spfx-controls-react
3136
run: npm run build
3237

3338
- name: Publish beta release
39+
working-directory: ./libraries/spfx-controls-react
3440
run: npm publish --tag beta4 --access public
3541
if: github.ref == 'refs/heads/dev'
3642
env:

.hintrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"extends": [
3+
"development"
4+
],
5+
"hints": {
6+
"axe/aria": "off",
7+
"no-inline-styles": "off",
8+
"axe/text-alternatives": [
9+
"default",
10+
{
11+
"frame-title": "off"
12+
}
13+
]
14+
}
15+
}

.nvmrc

14 Bytes
Binary file not shown.

.eslintrc.js renamed to apps/controls-tests/.eslintrc.js

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,6 @@ module.exports = {
2727
'@rushstack/security/no-unsafe-regexp': 0,
2828
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
2929
'@typescript-eslint/adjacent-overload-signatures': 1,
30-
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
31-
//
32-
// CONFIGURATION: By default, these are banned: String, Boolean, Number, Object, Symbol
33-
'@typescript-eslint/ban-types': [
34-
1,
35-
{
36-
'extendDefaults': false,
37-
'types': {
38-
'String': {
39-
'message': 'Use \'string\' instead',
40-
'fixWith': 'string'
41-
},
42-
'Boolean': {
43-
'message': 'Use \'boolean\' instead',
44-
'fixWith': 'boolean'
45-
},
46-
'Number': {
47-
'message': 'Use \'number\' instead',
48-
'fixWith': 'number'
49-
},
50-
'Object': {
51-
'message': 'Use \'object\' instead, or else define a proper TypeScript type:'
52-
},
53-
'Symbol': {
54-
'message': 'Use \'symbol\' instead',
55-
'fixWith': 'symbol'
56-
},
57-
'Function': {
58-
'message': 'The \'Function\' type accepts any function-like value.\nIt provides no type safety when calling the function, which can be a common source of bugs.\nIt also accepts things like class declarations, which will throw at runtime as they will not be called with \'new\'.\nIf you are expecting the function to accept certain arguments, you should explicitly define the function shape.'
59-
}
60-
}
61-
}
62-
],
6330
// RATIONALE: Code is more readable when the type of every variable is immediately obvious.
6431
// Even if the compiler may be able to infer a type, this inference will be unavailable
6532
// to a person who is reviewing a GitHub diff. This rule makes writing code harder,
@@ -125,7 +92,7 @@ module.exports = {
12592
//
12693
// STANDARDIZED BY: @typescript-eslint\eslint-plugin\dist\configs\recommended.json
12794
// Set to 1 (warning) or 2 (error) to enable the rule
128-
'@typescript-eslint/no-parameter-properties': 0,
95+
'@typescript-eslint/parameter-properties': 0,
12996
// RATIONALE: When left in shipping code, unused variables often indicate a mistake. Dead code
13097
// may impact performance.
13198
//
@@ -358,4 +325,4 @@ module.exports = {
358325
}
359326
}
360327
]
361-
};
328+
};

apps/controls-tests/.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Dependency directories
7+
node_modules
8+
9+
# Build generated files
10+
dist
11+
lib
12+
release
13+
solution
14+
temp
15+
*.sppkg
16+
.heft
17+
18+
# Coverage directory used by tools like istanbul
19+
coverage
20+
21+
# OSX
22+
.DS_Store
23+
24+
# Visual Studio files
25+
.ntvs_analysis.dat
26+
.vs
27+
bin
28+
obj
29+
30+
# Resx Generated Code
31+
*.resx.ts
32+
33+
# Styles Generated Code
34+
*.scss.ts

apps/controls-tests/.npmignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
!dist
2+
config
3+
4+
gulpfile.js
5+
6+
release
7+
src
8+
temp
9+
10+
tsconfig.json
11+
tslint.json
12+
13+
*.log
14+
15+
.yo-rc.json
16+
.vscode
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Hosted workbench",
6+
"type": "msedge",
7+
"request": "launch",
8+
"url": "https://{tenantDomain}/_layouts/workbench.aspx",
9+
"webRoot": "${workspaceRoot}",
10+
"sourceMaps": true,
11+
"sourceMapPathOverrides": {
12+
"webpack:///.././src/*": "${webRoot}/src/*",
13+
"webpack:///../../../src/*": "${webRoot}/src/*",
14+
"webpack:///../../../../src/*": "${webRoot}/src/*",
15+
"webpack:///../../../../../src/*": "${webRoot}/src/*"
16+
},
17+
"runtimeArgs": [
18+
"--remote-debugging-port=9222",
19+
"-incognito"
20+
]
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)