Skip to content

Commit 91826b0

Browse files
authored
[FSSDK-8219] moved optimizely-sdk package to repository root (#851)
1 parent 59c5a08 commit 91826b0

File tree

217 files changed

+7844
-13184
lines changed

Some content is hidden

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

217 files changed

+7844
-13184
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Javascript SDK",
33
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-18-bookworm",
44

5-
"postCreateCommand": "cd /workspaces/javascript-sdk/packages/optimizely-sdk && npm install -g npm && npm install",
5+
"postCreateCommand": "cd /workspaces/javascript-sdk && npm install -g npm && npm install",
66

77
"customizations": {
88
"vscode": {
File renamed without changes.
File renamed without changes.

.github/workflows/javascript.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
uses: actions/setup-node@v3
1919
with:
2020
node-version: 14
21-
cache-dependency-path: packages/optimizely-sdk/package-lock.json
21+
cache-dependency-path: ./package-lock.json
2222
cache: 'npm'
2323
- name: Run linting
24-
working-directory: ./packages/optimizely-sdk
24+
working-directory: .
2525
run: |
2626
npm install
2727
npm run lint
@@ -47,17 +47,14 @@ jobs:
4747
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
4848
steps:
4949
- uses: actions/checkout@v3
50-
- name: Move to package
51-
run: |
52-
cd packages/optimizely-sdk
5350
- name: Set up Node
5451
uses: actions/setup-node@v3
5552
with:
5653
node-version: 14
5754
cache: 'npm'
58-
cache-dependency-path: packages/optimizely-sdk/package-lock.json
55+
cache-dependency-path: ./package-lock.json
5956
- name: Cross-browser and umd unit tests
60-
working-directory: ./packages/optimizely-sdk
57+
working-directory: .
6158
run: |
6259
npm install
6360
npm run test-ci
@@ -74,21 +71,21 @@ jobs:
7471
with:
7572
node-version: ${{ matrix.node }}
7673
cache: 'npm'
77-
cache-dependency-path: packages/optimizely-sdk/package-lock.json
74+
cache-dependency-path: ./package-lock.json
7875
- name: Unit tests
79-
working-directory: ./packages/optimizely-sdk
76+
working-directory: .
8077
run: |
8178
npm install
8279
npm run coveralls
8380
- name: Coveralls Parallel
8481
uses: coverallsapp/github-action@master
8582
with:
8683
github-token: ${{ secrets.GITHUB_TOKEN }}
87-
path-to-lcov: ./packages/optimizely-sdk/coverage/lcov.info
84+
path-to-lcov: ./coverage/lcov.info
8885
flag-name: run-${{ matrix.node }}
8986
# This is a parallel build so need this
9087
parallel: true
91-
base-path: ./packages/optimizely-sdk
88+
base-path: .
9289

9390
# As testing against multiple versions need this to
9491
# finish the parallel build
@@ -101,7 +98,7 @@ jobs:
10198
uses: coverallsapp/github-action@master
10299
with:
103100
github-token: ${{ secrets.github_token }}
104-
path-to-lcov: ./packages/optimizely-sdk/coverage/lcov.info
101+
path-to-lcov: ./coverage/lcov.info
105102
parallel-finished: true
106-
base-path: ./packages/optimizely-sdk
103+
base-path: .
107104

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
node_modules/
2-
/packages/*/optimizely-*.tgz
2+
optimizely-*.tgz
33

44
npm-debug.log
55
lerna-debug.log

.prettierrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"printWidth": 89,
2+
"printWidth": 120,
33
"tabWidth": 2,
44
"useTabs": false,
5-
"semi": false,
5+
"semi": true,
66
"singleQuote": true,
7-
"trailingComma": "all",
7+
"trailingComma": "es5",
88
"bracketSpacing": true,
99
"jsxBracketSameLine": false
1010
}

README.md

Lines changed: 12 additions & 13 deletions

0 commit comments

Comments
 (0)