Skip to content

Rileytb/eolbfrst 921 hf inj react webpack setup #379

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
205 commits
Select commit Hold shift + click to select a range
3956ce8
travis should NOT test the whole matrix for our fork
joeycozza Jan 2, 2019
3b48247
Merge pull request #26 from facebook/master
joeycozza Jan 30, 2019
1b5aa70
Merge pull request #57 from facebook/master
joeycozza Mar 11, 2019
fda5d5c
Merge pull request #99 from facebook/master
joeycozza Apr 25, 2019
b783b07
Merge branch 'master' of https://github.com/facebook/create-react-app…
joeycozza Sep 3, 2019
1c4933e
Merge branch 'facebook-master'
joeycozza Sep 3, 2019
882379f
Adopt Contributor Covenant (#7650)
iansu Sep 6, 2019
1949ab0
Fix build (#7662)
ianschmitz Sep 9, 2019
1290b88
Disable babel-loader's cacheCompression (#7633)
jleclanche Sep 9, 2019
c57c6c0
Update troubleshooting.md (#7459)
prevostc Sep 9, 2019
fe2ebfd
Explicitly check that EXTEND_ESLINT is true (#7538)
BrockWills Sep 9, 2019
e126154
Update running-tests.md (#7659)
weyert Sep 9, 2019
5f57398
Bump version of @typescript-eslint/* (#7540)
pierreneter Sep 11, 2019
9d07bac
Upgrade dotenv-expand to fix issues (#7531)
dominictobias Sep 11, 2019
477bd3e
Minor performance improvements (#7587)
deftomat Sep 11, 2019
ab79e7e
Remove --single-quote from prettier examples (#7663)
brlewis Sep 11, 2019
be19819
Use const instead of var in env.js (#7526)
Primajin Sep 13, 2019
2b72956
Change runtime chunk name separator from tilde to dash (#7679)
Sep 13, 2019
205884e
Bump dependencies (#7681)
ianschmitz Sep 14, 2019
2d90c07
Update deployment.md with another AWS example (#7616)
AndrewBestbier Sep 17, 2019
4d41fcb
Add new logo (#7704)
iansu Sep 19, 2019
c6e746c
Prepare 3.1.2 release
iansu Sep 19, 2019
05e6e24
Publish
iansu Sep 19, 2019
8818369
Update runtime chunk name separator in docs (#7705)
samuelmeuli Sep 19, 2019
937915e
Remove 'shortcut' link type before 'icon' (#7707)
Sep 20, 2019
af3798e
Guard polyfills against window possibly being undefined (#7205)
jxom Sep 24, 2019
90e7cba
Enable .eslintignore with extend flag (#7562)
igtm Sep 24, 2019
ded37b7
Add "entrypoints" key to asset manifest (#7721)
samuelmeuli Sep 24, 2019
05dcd79
Update adding flow documentation (#7731)
FezVrasta Sep 25, 2019
d5ea122
set output.globalObject to 'this' (#7742)
Sep 26, 2019
cb77d0c
Update logic and log errors for EXTEND_ESLINT (#7530)
n1ru4l Sep 27, 2019
c5f6faf
update list of supported jest config overrides (#7601)
neilbryson Sep 27, 2019
ebe2d87
Upgrade Webpack version (#7740)
RDIL Sep 30, 2019
ba628b6
Close br tags in template README files (#7668)
rakannimer Sep 30, 2019
56334e6
Fix variable name casing in fileTransform (#7752)
Sep 30, 2019
e9111f8
Documentation typo fix (#7757)
tomer Sep 30, 2019
abeae7d
Fix linting error when using rest props (#7754)
alexandrtovmach Oct 1, 2019
395b479
Add TSC_COMPILE_ON_ERROR setting (#6931)
kylebebak Oct 1, 2019
43ddbc5
Remove switch case (#7729)
andrelmlins Oct 1, 2019
e233372
docs: note that v2 to v3 migration may require deletion of node_modul…
kimpers Oct 1, 2019
5109aa2
Stop hiding the column number of ESLint errors (#6980)
justingrant Oct 1, 2019
8c85d29
Support setting baseUrl to root directory (#7755)
robertvansteen Oct 2, 2019
c5e699e
Use installing package manager in README (#7687)
ashr81 Oct 2, 2019
a715975
Support production profiling with React Developer Tools (#7737)
JacobMGEvans Oct 3, 2019
363f25d
Prepare 3.2.0 release
iansu Oct 3, 2019
fe77aa7
Publish
iansu Oct 3, 2019
896c32a
Temporarily disable Windows in CI (#7773)
ianschmitz Oct 3, 2019
34e0e8b
Add babel runtime version to transform-runtime plugin to reduce… (#7726)
topaxi Oct 6, 2019
abfa942
Add Babel sourcemap to resolve VSCode debugging issues (#7022)
justingrant Oct 10, 2019
49745a2
Fix process type in TypeScript template (#7796)
fuszenecker Oct 10, 2019
1e20508
Account for browserslist environment variables (#7764)
Oct 11, 2019
4f04239
Clarify dynamic import stage in docs (#7813)
aprilandjan Oct 13, 2019
df950c1
Update adding-typescript.md (#7815)
orta Oct 14, 2019
d7d241a
Document how to use the .env file to enforce HTTPS (#7821)
TomasHubelbauer Oct 14, 2019
6ad00b8
Fix absolute paths issue in Jest (#7822)
robertvansteen Oct 14, 2019
bed0f7d
Document correct default behavior for HOST var (#7823)
jsejcksn Oct 15, 2019
131a101
Fix grammar error in troubleshooting.md (#7824)
jakeboone02 Oct 15, 2019
2de8c94
Upgrade to docusaurus 2 (#7785)
endiliey Oct 15, 2019
3bbf793
Update doc publishing instructions
iansu Oct 15, 2019
d2188e5
Revert logo in templates (#7830)
iansu Oct 16, 2019
01a7b49
feat: add additional Jest keys to whitelist (#7832)
mrmckeb Oct 16, 2019
7d473da
Link to React documentation for code splitting (#7686)
Hugodby Oct 16, 2019
02a5b4b
Add a note about .eslingignore files being respected (#7809)
seanlaff Oct 16, 2019
75879dd
added check for typescript template and unsupported node version (#7839)
awaseem Oct 17, 2019
8932aab
Update getting-started.md (#7841)
reactjser Oct 18, 2019
2b2a0b8
Link to ASP.NET Core docs (#7840)
Daniel15 Oct 19, 2019
923a3ea
Update readme gif links (#7849)
cchanxzy Oct 20, 2019
7a70b63
Update adding-bootstrap.md (#7853)
Xuhao Oct 21, 2019
1e1e463
Move unused eslint webpack import into @remove-on-eject block (#7856)
mrseanbaines Oct 21, 2019
f483421
📖 DOC: Improvement (#7819)
waahab Oct 21, 2019
049bc82
Upgrade terser & enable parallel minification in wsl (#7857)
endiliey Oct 21, 2019
172c125
Add a GitHub Action that runs the build script (#7861)
iansu Oct 22, 2019
d677b6d
Edit InterpolateHtmlPlugin hook (#6448) (#6449)
GuiHash Oct 23, 2019
9264aee
Fix notations of loopback addresses (#7474)
wataash Oct 23, 2019
752c0f2
Add Service-Worker header to checkValidServiceWorker (#6753)
darthmaim Oct 23, 2019
c046029
Add additional information for postcss errors (#6282) (#6352)
buildbreakdo Oct 23, 2019
13ac4bc
Fix eslint complaints in build.js (#7870)
andriijas Oct 24, 2019
560513a
Add Alex to lint documentation (#7852)
iansu Oct 24, 2019
e9d8fd4
Bump docusaurus 🦖 (#7874)
andriijas Oct 24, 2019
502fd6c
Dark scheme overlay (#7052)
Fabianopb Oct 24, 2019
4a8f376
Bump react (#7875)
andriijas Oct 24, 2019
d8c8d22
Bump styling related loaders (#7876)
andriijas Oct 24, 2019
7162cd0
Remove alex precommit check (#7878)
iansu Oct 24, 2019
f2d7909
Add template support (#7716)
mrmckeb Oct 24, 2019
f4655c2
Prepare 3.3.0 beta
iansu Oct 24, 2019
0e61eb5
If template name already starts with cra-template leave it alone (#7880)
iansu Oct 24, 2019
169facf
Update prerelease publishing instructions
iansu Oct 24, 2019
beca2a9
Upgrade packages and tweak config to adapt to new config format (#7814)
andriijas Oct 25, 2019
6c2aeeb
refactor: remove double coerce (#7882)
mrmckeb Oct 27, 2019
331af62
Add yarn.lock to .gitignore (#7789)
lukyth Oct 27, 2019
10b8105
chore: Fix broken link for CRA deployment (#7897)
haruelrovix Oct 29, 2019
20d5b31
chore: Fix broken link for e2e README (#7896)
haruelrovix Oct 29, 2019
e811f57
Add @testing-library to the default templates (#7881)
kentcdodds Oct 29, 2019
87a6264
Add numeric separator support (#7817)
tharun208 Oct 30, 2019
97b8487
Update open (#7910)
andriijas Oct 31, 2019
f9546ac
Mark TypeScript as an optional peer dependency (#7860)
dstaley Oct 31, 2019
d40420f
Add restoreMocks to supported jest config keys (#7921)
ianschmitz Nov 3, 2019
3f34903
fix seperators typo (#7932)
donavon Nov 5, 2019
d27a854
No spinning React logo if `prefers-reduced-motion` (#7931)
donavon Nov 6, 2019
cab695c
Made PRs welcome badge point to contributors guide (#7792)
jamesgeorge007 Nov 6, 2019
33b9513
Make JavaScript and TypeScript templates consistent (#7944)
suprj Nov 7, 2019
4b21fdc
Fix CI (#7951)
ianschmitz Nov 9, 2019
5025f49
Add optional chaining and nullish coalescing operators support (#7438)
renatoagds Nov 9, 2019
83d79b1
Add tests for optional chaining and null coalescing (#7952)
ianschmitz Nov 9, 2019
fd3d822
Upgrade jest-watch-typeahead (#7956)
Andarist Nov 10, 2019
c0aa53b
Fix light background in docusaurus night mode (#7936)
heyimalex Nov 13, 2019
1b0c11a
Add placeholders where old template READMEs used to be (#7972)
iansu Nov 13, 2019
c0108e3
Temporarily disable GitHub Actions (#7978)
iansu Nov 14, 2019
a989a60
Prepare 3.3.0 beta
iansu Nov 14, 2019
b0ecc68
Bump dependencies (#7986)
ianschmitz Nov 16, 2019
7d3b985
Support scoped templates (#7991)
klasbj Nov 18, 2019
993f606
Add contributors section to readme (#7995)
ianschmitz Nov 18, 2019
5261cd4
added e2e test for checking typescript template with unsupported node…
awaseem Nov 18, 2019
37d1bca
Unpin dependencies in react-app-polyfill (#7999)
ianschmitz Nov 19, 2019
f5622d0
Add scripts support to templates (#7989)
mrmckeb Nov 19, 2019
29e2493
Override no-unused-expressions with the typescript-eslint version (#8…
maxdavidson Nov 20, 2019
fa0ac20
Prefix apple-touch-icon links with PUBLIC_URL. (#8005)
benblank Nov 24, 2019
ca8f3fd
Bump webpack-dev-server (#7988)
ianschmitz Nov 24, 2019
c12f15b
Bump dependencies (#8024)
ianschmitz Nov 24, 2019
80bb8fc
Re-enable GitHub Actions (#8029)
iansu Nov 25, 2019
7ec8bc6
Update CHANGELOG
iansu Nov 27, 2019
d9ab6b6
Update CODEOWNERS
iansu Nov 27, 2019
8259e48
Remove no-unexpected-multiline rule (#8039)
iansu Nov 28, 2019
59b099e
Add TypeScript peer dependency to react-scripts (#8038)
iansu Nov 28, 2019
f0aced0
Update template docs (#8050)
mrmckeb Nov 29, 2019
3947e86
Prepare 3.3.0 release
iansu Dec 4, 2019
c3f8ac4
Update CHANGELOG
iansu Dec 4, 2019
6196876
Publish
iansu Dec 5, 2019
3762c78
webpackHotDev now uses wss when https is used (#8079)
mikecaulley Dec 5, 2019
0c56f76
Add custom-templates to docs sidebar (#8077)
ianschmitz Dec 5, 2019
5cad354
Fix typo in CHANGELOG.md (#8080)
Trontor Dec 6, 2019
08ce0b4
Remove error for @typescript-eslint/no-namespace (#7803)
szhu Dec 6, 2019
e168a58
Fix CI build (#8122)
ianschmitz Dec 9, 2019
6a355f9
Fix CSS font-face minification (#8106)
sidonaldson Dec 9, 2019
070bc38
Add slashes to WebSocket protocol URL (#8116)
Baael Dec 9, 2019
603796b
Fix typo in comment: `?.` is right, not `.?` (#8124)
vadzim Dec 9, 2019
d368b26
travis should NOT test the whole matrix for our fork
joeycozza Jan 2, 2019
bc32fbf
chore: update docusaurus & tweak site (#8111)
endiliey Dec 10, 2019
5e97d80
[Security] Update terser webpack plugin (#8102)
RDIL Dec 11, 2019
798db4b
Add current version and bin location to --info output (#8168)
heyimalex Dec 13, 2019
e0bc2f0
Bump pkgUp (#8163)
andriijas Dec 13, 2019
897b71b
Bump chalk (#8164)
andriijas Dec 13, 2019
1cd02dc
Add link to Netlify in README
iansu Dec 13, 2019
382f90b
Bump internal dependencies (#8176)
andriijas Dec 14, 2019
550c0c6
Add package-runner note to readme (#8132)
JeromeDeLeon Dec 15, 2019
99d2c96
Update PWA docs links to point to template package (#8147)
peet Dec 15, 2019
2d656b8
Minor refactors in create-react-app (#8178)
heyimalex Dec 16, 2019
b9f0ce1
fix: proactively append to .gitignore during init (#8028)
bmuenzenmeyer Dec 18, 2019
7431bba
Bump babel-plugin-tester and fix breaking changes (#8171)
andriijas Dec 19, 2019
6bae914
Little typo (#8212)
sonyarianto Dec 20, 2019
0dcf8da
Replace favicon in templates (#8194)
heyimalex Dec 30, 2019
fa0760e
Support shorthand scoped templates (#8298)
kevin940726 Jan 12, 2020
b92ea13
Allow additional package keys and add blacklist (#8082) (#8219)
tomvalorsa Jan 12, 2020
c89ff05
Minor grammatical edit (#8293)
egrim Jan 16, 2020
e5141a3
Update Dependencies (#8324)
RDIL Jan 21, 2020
274dced
Remove React.FC from Typescript template (#8177)
Retsam Jan 22, 2020
956a479
Downgrade open from 7.0.0 to 6.4.0 (#8364)
vince1995 Jan 23, 2020
bea18d1
Merge remote-tracking branch 'upstream/master'
joeycozza Jan 28, 2020
e33e422
Merge pull request #262 from facebook/master
joeycozza May 27, 2020
a06798b
docs: Make hyperlink consistent
nvh95 Feb 4, 2021
b7b0d77
Updated pace.js link
imdkbj Feb 12, 2021
b68f66f
Chore: Update document to GitHub default branch
bitcoinbrisbane Mar 17, 2021
b4ffc8f
Merge pull request #293 from facebook/master
joeycozza Apr 7, 2021
2821fca
Updates for the Storybook docs
jonniebigodes Aug 17, 2021
b79ef9c
Update links in README
ddzz Dec 23, 2021
a465fa8
Merge pull request #315 from facebook/main
joeycozza Dec 29, 2021
e076dc5
docs: update jest links
adamalston Feb 19, 2022
552514b
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Mar 23, 2022
a7a30f8
Update adding-a-router.md
yamankatby Apr 4, 2022
f99167c
chore(lint): lint all files (#12288)
lukekarrys Apr 13, 2022
6f02847
Update getting-started.md
teemezzy Apr 28, 2022
c20ccec
fix: Reuse opening tab in Chrome Dev and Chrome Beta (#12412)
nvh95 May 18, 2022
5dd8139
Update making-a-progressive-web-app.md
JSLGeeganage Jun 4, 2022
d5fc243
update a debugger for VS Code
leonid-omelchuk-jemmic Jun 17, 2022
b111faa
Merge pull request #12521 from leonid-omelchuk-jemmic/feature--update…
matrush Jun 17, 2022
bc96d32
Merge pull request #12464 from JSLGeeganage/patch-1
matrush Jun 17, 2022
810e126
Merge pull request #12337 from teemezzy/patch-1
matrush Jun 17, 2022
3e42591
Merge pull request #12242 from yamankatby/patch-1
matrush Jun 17, 2022
1059fe3
Merge pull request #11837 from ddzz/fix-readme-links
matrush Jun 17, 2022
30806f7
Merge pull request #10696 from bitcoinbrisbane/patch-1
matrush Jun 17, 2022
236915a
Apply suggestions from code review
matrush Jun 17, 2022
a3ef11d
Merge branch 'main' into patch-1
matrush Jun 17, 2022
0e64dc9
Merge pull request #10543 from imdkbj/patch-1
matrush Jun 17, 2022
c6b0140
Merge pull request #12197 from facebook/dependabot/npm_and_yarn/minim…
matrush Jun 17, 2022
706aaa1
Merge pull request #11315 from jonniebigodes/chore_fix_storybook_inst…
matrush Jun 17, 2022
f0855c3
Merge pull request #10501 from nvh95/patch-1
matrush Jun 17, 2022
cee2658
Merge pull request #12080 from adamalston/12079-fix-jest-links
matrush Jun 17, 2022
ee7ce83
update the heroku buildpack link
MoshiulRabbi Jun 20, 2022
a7212db
Add missing instruction if you are adding typescript
pawelskowronek Jun 23, 2022
4eae1ae
docs: Add Link to Adding Routes Docs
Jun 23, 2022
1603e5a
fix broken link progressive web app
sdarnadeem Jun 30, 2022
78d7768
VSCode debugger plugin deprecated
danielrentz Jun 30, 2022
91b2395
fix code splitting link
rvdende Jul 3, 2022
2f891bb
Merge pull request #12563 from rvdende/patch-1
matrush Jul 5, 2022
c2cbaaf
Merge pull request #12557 from sdarnadeem/patch-2
matrush Jul 5, 2022
bcff192
Merge pull request #12539 from liam-mulhall/patch-1
matrush Jul 5, 2022
a45ee3b
Merge pull request #12531 from MoshiulRabbi/patch-1
matrush Jul 5, 2022
c378572
Merge pull request #12537 from pawelskowronek/patch-1
matrush Jul 5, 2022
f34d88e
Merge pull request #12558 from danielrentz/patch-1
matrush Jul 5, 2022
39430a1
Merge branch 'main' of https://github.com/facebook/create-react-app i…
joeycozza Jul 12, 2022
80a4d4c
Merge branch 'facebook-main'
joeycozza Jul 12, 2022
b76e800
Add option to inject styles into window - for hf-inj-react bundling
rileytb Jan 6, 2025
985979b
Make injecting styles more dynamic
rileytb Jan 31, 2025
3039d24
removing auto added config stuff
rileytb Jan 31, 2025
5bfcabd
Merge branch 'master' into rileytb/EOLBFRST-921_-hf-inj-react-webpack…
rileytb Jan 31, 2025
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
8 changes: 3 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
node_modules/
build
my-app*
packages/react-scripts/template
packages/react-scripts/fixtures
fixtures/
build/
test/fixtures/webpack-message-formatting/src/AppBabel.js
packages/react-error-overlay/lib/
36 changes: 35 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,39 @@
"no-console": "off",
"strict": ["error", "global"],
"curly": "warn"
}
},
"overrides": [
{
"files": [
"docusaurus/website/src/**/*.js",
"packages/cra-template/**/*.js",
"packages/react-error-overlay/**/*.js",
"packages/react-scripts/fixtures/kitchensink/template/{src,integration}/**/*.js",
"test/fixtures/*/src/*.js"
],
"excludedFiles": ["packages/react-error-overlay/*.js"],
"extends": ["react-app", "react-app/jest"]
},
{
"files": [
"test/fixtures/webpack-message-formatting/src/{AppLintError,AppLintWarning,AppUnknownFile}.js"
],
"rules": {
"no-unused-vars": "off",
"no-undef": "off"
}
},
{
"files": ["test/fixtures/webpack-message-formatting/src/Export5.js"],
"rules": {
"import/no-anonymous-default-export": "off"
}
},
{
"files": ["test/fixtures/issue-5176-flow-class-properties/src/App.js"],
"rules": {
"no-dupe-class-members": "off"
}
}
]
}
4 changes: 1 addition & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ labels: 'issue: bug report, needs triage'

(Write your steps here:)

1.
2.
3.
1. 2. 3.

### Expected behavior

Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'npm'
- name: Install npm@8
run: npm i -g npm@8
- name: Install
run: npm ci --prefer-offline
- name: Build
run: npm run build
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'npm'
- name: Install npm@8
run: npm i -g npm@8
- name: Install
run: npm ci --prefer-offline
- name: Build
run: npm run build
- name: Alex
run: npm run alex
- name: Prettier
run: npm run prettier -- --list-different
- name: Eslint
run: npm run eslint -- --max-warnings 0
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.idea/
.vscode/
node_modules/
build
build/
.DS_Store
*.tgz
my-app*
Expand Down
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
build/
package-lock.json
test/fixtures/webpack-message-formatting/src/AppBabel.js
test/fixtures/webpack-message-formatting/src/AppCss.css
packages/react-error-overlay/fixtures/bundle*
packages/react-error-overlay/fixtures/inline*
packages/react-error-overlay/fixtures/junk*
packages/react-error-overlay/lib/
packages/react-error-overlay/coverage/
90 changes: 32 additions & 58 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,39 @@
---
dist: trusty
language: node_js
node_js:
- "16"
- 8
- 10
- node
cache:
yarn: true
directories:
- .npm
before_install:
- git config --global url."https://git@".insteadOf git://
- echo -e "machine github.com\n login $CI_USER_TOKEN" > ~/.netrc
- echo "//familysearch.jfrog.io/familysearch/api/npm/fs-npm-prod-virtual/:_authToken=${NPM_PUBLISH_TOKEN}" >> ~/.npmrc
- echo "@fs:registry=https://familysearch.jfrog.io/familysearch/api/npm/fs-npm-prod-virtual/" >> ~/.npmrc
# because this is a weird monorepo and we cd into and out of directories, this is what worked for travis to publish
- echo "//familysearch.jfrog.io/familysearch/api/npm/fs-npm-prod-virtual/:_authToken=${NPM_PUBLISH_TOKEN}" >> packages/react-scripts/.npmrc
- echo "@fs:registry=https://familysearch.jfrog.io/familysearch/api/npm/fs-npm-prod-virtual/" >> packages/react-scripts/.npmrc
install:
- npm install
- cd packages/react-scripts
- npm install
- cd ../../
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --nightly
- export PATH="$HOME/.yarn/bin:$PATH"
install: true
script:
- npm test

- node publishPrReleaseAndCreateFreshCraTemplate.js

# ${HOME}/tmp/fresh-cra-template was created in script above
- cd ${HOME}/tmp/fresh-cra-template

# this is necessary so we can do some additional npm installs in the freshCraTemplateUpdate.sh script
- echo "//familysearch.jfrog.io/familysearch/api/npm/fs-npm-prod-virtual/:_authToken=${NPM_PUBLISH_TOKEN}" >> ${HOME}/tmp/fresh-cra-template/.npmrc
- echo "@fs:registry=https://familysearch.jfrog.io/familysearch/api/npm/fs-npm-prod-virtual/" >> ${HOME}/tmp/fresh-cra-template/.npmrc

- CI=true npm test

# Building the app so freshCraTemplateUpdate.sh can publish it
- npm run build
before_deploy: "cd ${TRAVIS_BUILD_DIR}/packages/react-scripts"
deploy:
- provider: script
edge: true
cleanup: false
dpl_version: 2.0.3.beta.4
script: npm run fs-publish -- --allow-earlier-version
on:
branch: frontierMaster
- provider: script
edge: true
cleanup: false
dpl_version: 2.0.3.beta.4
script: npm run fs-publish -- --allow-earlier-version
on:
branch: v7.x
- provider: script
edge: true
cleanup: false
dpl_version: 2.0.3.beta.4
script: npm run fs-publish -- --allow-earlier-version
on:
branch: next
- provider: script
edge: true
cleanup: false
dpl_version: 2.0.3.beta.4
script: cd ${TRAVIS_BUILD_DIR} && ./freshCraTemplateUpdate.sh
on:
branch: frontierMaster
- 'if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi'
- 'if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi'
- 'if [ $TEST_SUITE = "kitchensink" ]; then tasks/e2e-kitchensink.sh; fi'
- 'if [ $TEST_SUITE = "kitchensink-eject" ]; then tasks/e2e-kitchensink-eject.sh; fi'
- 'if [ $TEST_SUITE = "old-node" ]; then tasks/e2e-old-node.sh; fi'
- 'if [ $TEST_SUITE = "behavior" ]; then tasks/e2e-behavior.sh; fi'
env:
matrix:
- TEST_SUITE=simple
- TEST_SUITE=installs
- TEST_SUITE=kitchensink
- TEST_SUITE=kitchensink-eject
- TEST_SUITE=behavior
matrix:
include:
- os: osx
node_js: 8
env: TEST_SUITE=behavior
- node_js: 6
env: TEST_SUITE=old-node
# This tells travis to not build when the branch is master. This is important to have on our master
# branch as well because anytime we merge upstream changes from facebook, travis builds their whole matrix of 24 different builds.
# We do NOT need or want that to occur. Please leave this branches.except here, even on the master branch
Expand Down
Loading
Loading