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

Setup Monorepo #805

Merged
merged 727 commits into from
Jan 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
727 commits
Select commit Hold shift + click to select a range
ac5911f
Allow enviroment set _renderMode to be used in Visit
rondale-sc Feb 22, 2018
4cc38c6
Merge pull request #185 from rondale-sc/utilize-rehydration-serializa…
rwjblue Mar 8, 2018
be88b6c
1.1.4-beta.1
kratiahuja Mar 11, 2018
4568734
Update changelog
kratiahuja Mar 11, 2018
2db1409
Bump fastboot for rehydration release
kratiahuja Mar 13, 2018
a5d194e
Merge pull request #77 from ember-fastboot/bump-fastboot
kratiahuja Mar 13, 2018
cdf55c0
Adds notes to readme about overriding the workerCount
Duder-onomy Mar 29, 2018
b684123
Merge pull request #180 from SergeAstapov/html-attributes
rwjblue May 27, 2018
ac86992
Add 1.2.0 to CHANGELOG.
rwjblue May 27, 2018
251c252
Remove `package-lock.json` (shouldn't have both it and yarn.lock).
rwjblue May 27, 2018
19bb471
Add yarn.lock to .npmignore.
rwjblue May 27, 2018
5a42df5
v1.2.0
rwjblue May 27, 2018
6e546c7
fastboot package upgrade to v1.2
izelnakri Jun 6, 2018
9bfc2cc
Merge pull request #41 from izelnakri/master
rwjblue Jun 7, 2018
1e8d6ee
Update CHANGELOG for 1.1.1 and 1.2.0.
rwjblue Jun 7, 2018
204dd04
v1.2.0
rwjblue Jun 7, 2018
c79fb5c
Normalize headers to lower case
ryanto Jun 16, 2018
e8e570d
Merge pull request #189 from ryanto/normalize-headers
kratiahuja Jul 11, 2018
3a5042d
Moved script tag of fastboot-body-start boundary in _finalizeHTML method
dnalagatla Sep 11, 2018
f61ab1b
Merge pull request #194 from dnalagatla/dnalagatla/update_body_in_dom…
kratiahuja Sep 11, 2018
8562d2d
release v1.2.1 🎉
stefanpenner Sep 17, 2018
411ea83
Fixed small typo
kiwiupover Sep 27, 2018
e5c777d
Merge pull request #197 from kiwiupover/patch-1
rwjblue Sep 27, 2018
ea3b8e7
fix(package): update debug to version 4.1.0
greenkeeper[bot] Oct 8, 2018
0ec6425
Remove usage of deprecated exists-sync
SergeAstapov Nov 21, 2018
ec33ae8
Update Node.js support matrix
bobisjan Nov 21, 2018
2269148
Remove .babelrc configuration file
bobisjan Nov 21, 2018
eeccf23
Merge pull request #203 from zonkyio/remove-babelrc
rwjblue Nov 21, 2018
5d14cf5
Merge pull request #201 from SergeAstapov/remove-exists-sync
rwjblue Nov 21, 2018
b79df75
Merge pull request #202 from zonkyio/node-support-update
rwjblue Nov 21, 2018
f51adc5
Merge branch 'master' into greenkeeper/debug-4.1.0
kratiahuja Nov 21, 2018
708e8da
Allow to require module path from whitelisted dependency
bobisjan Oct 28, 2018
4516747
Merge pull request #200 from zonkyio/require-module-path
kratiahuja Nov 29, 2018
f4d8983
Merge pull request #204 from ember-fastboot/greenkeeper/debug-4.1.0
kratiahuja Nov 29, 2018
4bd6d04
Add yarn.lock.
rwjblue Dec 10, 2018
7a227e6
Update minimum version of simple-dom to 1.4.0.
rwjblue Dec 10, 2018
b45654b
Merge pull request #206 from rwjblue/update-simple-dom
rwjblue Dec 10, 2018
5ba47fa
v1.2.1 package upgrades
izelnakri Jun 7, 2018
e803519
Merge pull request #188 from izelnakri/master
rwjblue Dec 10, 2018
d734ffe
Add lerna-changelog for changelog generation.
rwjblue Dec 10, 2018
1c484c3
Add 2.0.0 to changelog.
rwjblue Dec 10, 2018
8dc7404
2.0.0
rwjblue Dec 10, 2018
3cc767b
Fix to run all tests
kratiahuja Dec 17, 2018
b467f9b
Merge pull request #208 from ember-fastboot/fix-tests
kratiahuja Dec 17, 2018
8128c6b
Add Eslint to this project
kratiahuja Dec 18, 2018
cafd96c
Merge pull request #210 from ember-fastboot/add-eslint
kratiahuja Dec 19, 2018
a34d17f
Fix package.json preversion command
kratiahuja Dec 20, 2018
9d6e0be
Merge pull request #211 from ember-fastboot/fix-package.json
kratiahuja Dec 20, 2018
39a9d66
2.0.1
kratiahuja Dec 20, 2018
52b3432
fix(package): update fastboot to version 2.0.1
greenkeeper[bot] Dec 20, 2018
037a155
chore(package): update lockfile yarn.lock
greenkeeper[bot] Dec 20, 2018
30ff3a3
Merge pull request #43 from ember-fastboot/greenkeeper/fastboot-2.0.1
kratiahuja Jan 21, 2019
3ec09d9
chore(package): update ember-source to version 3.8.0
greenkeeper[bot] Feb 18, 2019
4c85adc
chore(package): update lockfile yarn.lock
greenkeeper[bot] Feb 18, 2019
d4bf21a
Merge pull request #213 from ember-fastboot/greenkeeper/ember-source-…
rwjblue Feb 19, 2019
aa752f7
Fix an incorrect `debug()` call
CvX Apr 28, 2019
7ec19e5
Fix an incorrect `debug()` call (#219)
rwjblue Apr 29, 2019
f18b839
Bump fastboot
lucacorti May 6, 2019
8f810c0
Align travis with fastboot test matrix
lucacorti May 6, 2019
a2ecaa7
fix(package): update cookie to version 0.4.0
greenkeeper[bot] May 16, 2019
37e54c1
chore(package): update lockfile yarn.lock
greenkeeper[bot] May 16, 2019
57a7633
Merge pull request #222 from ember-fastboot/greenkeeper/cookie-0.4.0
rwjblue May 17, 2019
43baad4
readme section on chunkedResponse and twitter/linkedin
cagrimmett Jun 6, 2019
5c35c78
Merge pull request #103 from cagrimmett/readme-chunkedresponse
mansona Jul 12, 2019
06dd4fe
Dropping test support for node 4 and 6 and adding node 8, 10, 12 and …
kiwiupover Jul 12, 2019
f97e82e
update node engines to match node versions we are testing against
kiwiupover Jul 12, 2019
f081bd4
drop node 6 and add node 12
kiwiupover Jul 12, 2019
8969fde
Add link to s3-notifier
allthesignals Jul 12, 2019
7670f13
Merge pull request #102 from lucacorti/master
kratiahuja Jul 12, 2019
acb519a
Merge branch 'master' into drop-node-6-add-new-node-versions
kiwiupover Jul 12, 2019
a2e3b1c
Merge pull request #105 from kiwiupover/drop-node-6-add-new-node-vers…
kratiahuja Jul 15, 2019
1e3de2b
Update changelog for release
kratiahuja Jul 15, 2019
841263c
v2.0.0
kratiahuja Jul 15, 2019
1023c7e
Bump fastboot-express-middleware
kratiahuja Jul 15, 2019
faee661
Merge pull request #109 from ember-fastboot/upgrade-fastboot-middleware
kratiahuja Jul 15, 2019
bc36d74
v2.0.0
kratiahuja Jul 15, 2019
a4f7451
Update node support matrix
sdhull Jul 11, 2019
3a618d6
Restore allowing fallback require from working directory
xg-wang Jul 23, 2019
cbafed0
Update readme for npm install in dist
xg-wang Jul 23, 2019
31e0aab
fallback require only for MODULE_NOT_FOUND
xg-wang Jul 24, 2019
3febb1d
Merge pull request #49 from boundless-inc/update-node-support-matrix
rwjblue Jul 25, 2019
a0b5ea2
Update node engines to match node versions we are testing against (#225)
rwjblue Jul 26, 2019
e461dd8
Merge pull request #227 from xg-wang/require
kratiahuja Aug 5, 2019
e3fe7ae
add Fastboot.distPath
stefanpenner Sep 11, 2019
96eabc8
Merge pull request #229 from ember-fastboot/fastboot-dist-path
stefanpenner Sep 11, 2019
0cbf3c3
General cleanup; ES<latest>ification.
rwjblue Oct 24, 2019
dbe14cf
Add prettier setup.
rwjblue Oct 24, 2019
582296c
eslint . --fix
rwjblue Oct 24, 2019
ec02ca6
Fix remaining linting errors.
rwjblue Oct 24, 2019
2500c23
Fix test using `Promise.prototype.finally` in Node 8.
rwjblue Oct 24, 2019
99c6f4d
General repo cleanup. (#231)
rwjblue Oct 24, 2019
9a3243f
Make a single `Sandbox` base class.
rwjblue Oct 24, 2019
a65af2e
Merge pull request #232 from rwjblue/merge-sandbox
rwjblue Oct 25, 2019
854e249
Update dependencies/devDependencies to latest.
rwjblue Oct 25, 2019
f551550
Update dependencies/devDependencies to latest. (#233)
rwjblue Oct 25, 2019
b63b687
Remove `rsvp` dependency.
rwjblue Oct 25, 2019
3b13ce1
Remove `rsvp` dependency. (#234)
rwjblue Oct 25, 2019
a7dc5fb
Document `reload` method.
rwjblue Oct 25, 2019
90a378c
Document `reload` method. (#235)
rwjblue Oct 25, 2019
43f39ef
Add dev script to make tracing easier.
rwjblue Oct 27, 2019
749a4c7
Merge pull request #237 from rwjblue/add-dev-scripts
rwjblue Oct 27, 2019
0c1b2c1
Add basic memory profiling script to `dev/` folder.
rwjblue Oct 29, 2019
5ad17de
Add basic memory profiling script to `dev/` folder. (#238)
rwjblue Oct 29, 2019
97aad84
Make a vm context per visit.
rwjblue Oct 25, 2019
8789fc5
Remove ability to provide custom sandbox class.
rwjblue Oct 25, 2019
1ff2b24
Share script bytecode across vm contexts.
rwjblue Oct 26, 2019
da6bbbb
Refactor `visitRoute` to an async function.
rwjblue Oct 26, 2019
edeeb8f
Remove remains of `this.app` on `src/ember-app.js`
rwjblue Oct 30, 2019
ec2b32d
Refactor destruction (`Ember.Application` and `Ember.ApplicationInsta…
rwjblue Oct 30, 2019
148a75c
Evaluate dist files upon `new FastBoot`
rwjblue Oct 30, 2019
b67703f
Failing test: Add test showing prototype mutation leaking across visi…
rwjblue Oct 30, 2019
0893cec
Failing test: Ember.onerror setup via instance initailizer leaks acro…
rwjblue Oct 30, 2019
53ee52e
Ensure that destroyAppInstanceInMs does not throw if completed
rwjblue Oct 30, 2019
cf0f451
Refactor to use a single sandboxed context per visit request. (#236)
rwjblue Oct 30, 2019
6349fcc
Add automated release setup.
rwjblue Oct 30, 2019
2e261c4
Add automated release setup. (#243)
rwjblue Oct 30, 2019
85a3666
Release 3.0.0-beta.1
rwjblue Oct 30, 2019
cb8bf0e
Remove ember-source from devDependencies.
rwjblue Oct 31, 2019
4e03960
Merge pull request #248 from rwjblue/remove-explicit-ember-dependency
rwjblue Oct 31, 2019
297ff53
Refactor sandboxGlobals -> buildSandboxGlobals
rwjblue Oct 31, 2019
ed9b9d1
Refactor sandboxGlobals -> buildSandboxGlobals (#245)
rwjblue Nov 1, 2019
bab91cf
Remove najax from default set of sandbox globals.
rwjblue Oct 31, 2019
b8e8690
Merge pull request #247 from rwjblue/remove-najax
rwjblue Nov 1, 2019
30af94b
Release 3.0.0-beta.2
rwjblue Nov 1, 2019
909e714
Fix invalid syntax with deferRendering.
rwjblue Nov 1, 2019
beda093
Fix invalid syntax with deferRendering. (#250)
rwjblue Nov 1, 2019
1d0e4c8
Release 3.0.0-beta.3
rwjblue Nov 1, 2019
8b953b5
Expose option to allow a new sandbox per visit
rwjblue Nov 4, 2019
8119a22
Add link to fastboot-gcloud-storage-downloader in README
YoranBrondsema Nov 8, 2019
8fe9bb0
Add link to fastboot-gcloud-storage-notifier in README
YoranBrondsema Nov 8, 2019
367347f
Remove Babel
bobisjan Jan 4, 2020
984cba1
Merge pull request #53 from bobisjan/babel-removal
locks Jan 15, 2020
35c58d3
Migrate to ESLint
bobisjan Jan 4, 2020
dec01ce
Merge pull request #55 from bobisjan/eslint
locks Jan 15, 2020
3aec19f
Add Prettier
bobisjan Jan 18, 2020
3ec6b07
Merge pull request #56 from bobisjan/prettier
locks Jan 19, 2020
fd3404e
Move request into dev dependencies
bobisjan Jan 4, 2020
3b28a2e
Update documentation for `buildSandboxPerVisit` option.
rwjblue Jan 31, 2020
d096682
Drop Node 8 support.
rwjblue Jan 31, 2020
d0b9013
Expose option to allow a new sandbox per visit (#252)
rwjblue Jan 31, 2020
a948965
Merge pull request #258 from rwjblue/drop-node-8
rwjblue Jan 31, 2020
baecb8c
Update chalk to 3.x.
rwjblue Jan 31, 2020
5e063b2
Update source-map-support.
rwjblue Jan 31, 2020
737a3a2
Update minimum resolve to latest version.
rwjblue Jan 31, 2020
13651e6
Update devDependencies to latest version.
rwjblue Jan 31, 2020
949fa69
Fix linting RE: `inspector` module.
rwjblue Jan 31, 2020
ea2e6fc
Merge pull request #259 from rwjblue/update-deps
rwjblue Jan 31, 2020
31b8a5b
Release 3.0.0
rwjblue Jan 31, 2020
b5a4751
Merge pull request #54 from bobisjan/request-as-dev-dependency
rwjblue Feb 5, 2020
0bdb1a9
Build new sandbox after request is done
kratiahuja Mar 1, 2020
bef5cf3
Merge pull request #262 from ember-fastboot/build-sandbox-after-request
kratiahuja Mar 3, 2020
3bafd32
chore(package): update release-it-lerna-changelog to version 2.0.0
greenkeeper[bot] Mar 10, 2020
2a5b508
chore(package): update lockfile yarn.lock
greenkeeper[bot] Mar 10, 2020
fdb4afb
v3.0.1
kratiahuja Mar 13, 2020
0ca95fb
Update changelog
kratiahuja Mar 13, 2020
5650923
[BUG]: existing class on page duplicate class attributes
snewcomer Mar 18, 2020
6dc6870
[BUGFIX] Treat classes as attributes to be merged, not appended
cibernox Mar 23, 2020
cbed25e
Remove unnecessary escaped quotes
cibernox Mar 23, 2020
c1454ef
Add more thorough testing
cibernox Mar 23, 2020
c3e4f94
Add sandbox queue management when using buildSandboxPerVisit
kratiahuja Mar 6, 2020
227e84d
Merge pull request #264 from ember-fastboot/add-queue-management
kratiahuja Mar 24, 2020
72d89f4
Update changelog
kratiahuja Mar 24, 2020
06998f2
Release 3.0.2
kratiahuja Mar 24, 2020
eed49df
Add another test for the classes on the HTML
cibernox Mar 25, 2020
952140f
Merge pull request #265 from ember-fastboot/greenkeeper/release-it-le…
rwjblue Mar 26, 2020
b450f7d
Merge pull request #268 from cibernox/fix-double-class-bug
kratiahuja Apr 7, 2020
85fe688
v3.0.3
kratiahuja Apr 7, 2020
8e6177a
Migrate to ESLint
bobisjan Apr 12, 2020
a0623cf
Remove legacy Node.js support leftovers
bobisjan Apr 12, 2020
cf26df6
Use async/await in tests
bobisjan Apr 12, 2020
0407a0c
Merge pull request #63 from bobisjan/node-cleanup
rwjblue May 6, 2020
9918911
Merge pull request #64 from bobisjan/async-await-tests
rwjblue May 6, 2020
87bdbc6
Expose `distPath` on `reload` event (#96)
nathanhammond May 6, 2020
3fd5bc9
implement a new html-oriented manifest format
ef4 May 5, 2020
3fae95c
handle customized rootURL
May 21, 2020
429eb1d
Merge pull request #272 from thoov/html-entrypoint
rwjblue May 26, 2020
61dabd8
Update release automation setup.
rwjblue May 26, 2020
41ff067
Release 3.1.0
rwjblue May 26, 2020
8898cbb
Merge pull request #121 from zonkyio/eslint
rwjblue Jul 21, 2020
ccac861
Use append to support multi-value headers
bobisjan Feb 6, 2020
aec7f3e
Remove legacy Node.js support leftovers
bobisjan Apr 12, 2020
b1a47b0
Update README.md
wagenet Oct 7, 2020
90095a2
Merge pull request #60 from bobisjan/response-append
rwjblue Oct 16, 2020
c610415
Drop Node 8 and 13 support.
rwjblue Oct 16, 2020
97973cf
Merge pull request #67 from ember-fastboot/drop-node-8
rwjblue Oct 16, 2020
b139c19
Migrate to GitHub Actions for CI
rwjblue Oct 16, 2020
19bc106
Merge pull request #68 from rwjblue/gh-actions
rwjblue Oct 16, 2020
a1401ad
Add release automation setup.
rwjblue Oct 16, 2020
f3ed7c1
Merge pull request #69 from rwjblue/add-release-automation
rwjblue Oct 16, 2020
996604d
Update to fastboot@3.1.0
rwjblue Oct 16, 2020
8199cb4
Add RELEASE.md documentation.
rwjblue Oct 16, 2020
b56547d
Migrate main implementation to leveraging async/await.
rwjblue Oct 16, 2020
03ee080
Handle resilient mode errors before accessing result.headers
rwjblue Oct 16, 2020
14998ec
Stop processing when result has errored.
rwjblue Oct 16, 2020
a21d52d
Restore result finalization in resilient mode
bobisjan Oct 23, 2020
9b69cf5
Merge pull request #277 from bobisjan/resilient-result-finalization
rwjblue Oct 23, 2020
94e9968
Update release setup.
rwjblue Oct 23, 2020
3f985df
Migrate to GitHub Actions for CI.
rwjblue Oct 23, 2020
6501efb
Merge pull request #279 from ember-fastboot/migrate-to-github-actions
rwjblue Oct 23, 2020
331148a
Merge pull request #278 from ember-fastboot/update-release-setup
rwjblue Oct 23, 2020
13a1f36
Release 3.1.1
rwjblue Oct 23, 2020
20b93c0
Update to fastboot@3.1.1 to fix issues in resilient case.
rwjblue Oct 23, 2020
f50f3b1
Restart resilient mode behavior
rwjblue Oct 23, 2020
d7a504c
Merge pull request #70 from rwjblue/update-fastboot
rwjblue Oct 23, 2020
7ac1109
Update release setup.
rwjblue Oct 23, 2020
f03c96f
Release 3.0.0
rwjblue Oct 23, 2020
d4a75a7
Merge pull request #120 from zonkyio/node-cleanup
rwjblue Oct 24, 2020
9b4e88f
Merge pull request #122 from wagenet/patch-1
rwjblue Oct 24, 2020
51d2373
Drop Node 8 and 13 support
bobisjan Oct 24, 2020
32e5418
Merge pull request #123 from zonkyio/drop-node-8
rwjblue Oct 24, 2020
82362c9
Update FastBoot v3
bobisjan Oct 24, 2020
4e80446
Merge pull request #124 from zonkyio/update-fastboot-3
rwjblue Oct 26, 2020
0c0bafd
Merge pull request #114 from curvo-eu/add-link-to-fastboot-gcloud-sto…
rwjblue Oct 26, 2020
d4bc043
Merge pull request #115 from curvo-eu/add-link-to-fastboot-gcloud-sto…
rwjblue Oct 26, 2020
fecdaf2
Merge pull request #106 from allthesignals/patch-2
rwjblue Oct 26, 2020
581be4c
Merge pull request #79 from Duder-onomy/patch-1
rwjblue Oct 26, 2020
375e44c
Merge pull request #49 from oskarrough/fix-serverjs-conflict
rwjblue Oct 26, 2020
c99bd6a
Add release automation.
rwjblue Oct 26, 2020
ddd742b
Merge pull request #125 from ember-fastboot/add-automated-release-setup
rwjblue Oct 26, 2020
f9b2b31
Migrate to GitHub Actions.
rwjblue Oct 26, 2020
5694a70
Merge pull request #126 from ember-fastboot/gh-actions
rwjblue Oct 26, 2020
84af7da
Update dependencies to latest.
rwjblue Oct 26, 2020
015671d
Merge pull request #127 from ember-fastboot/update-dependencies
rwjblue Oct 26, 2020
7af05b2
Update mocha to latest.
rwjblue Oct 26, 2020
4b04466
Merge pull request #129 from ember-fastboot/update-mocha
rwjblue Oct 26, 2020
02e0c72
Update linting setup
rwjblue Oct 26, 2020
5e77cf0
Merge pull request #128 from ember-fastboot/update-linting
rwjblue Oct 26, 2020
c5981be
Release 3.0.0
rwjblue Oct 26, 2020
66dd459
Remove extra header in CHANGELOG.md
rwjblue Oct 26, 2020
7f3d79b
Remove GreenKeeper badge from README.md
rwjblue Oct 26, 2020
8e65c17
Ensure extraneous files are not published.
rwjblue Oct 29, 2020
47ee2b6
Merge pull request #281 from ember-fastboot/ignore-snapshots
rwjblue Oct 29, 2020
d72e6ff
Release 3.1.2
rwjblue Oct 29, 2020
5d64ea2
Remove node version in Readme
xg-wang Oct 30, 2020
b966986
Merge pull request #282 from xg-wang/patch-1
rwjblue Oct 31, 2020
9a9a07d
add tests
suchitadoshi1987 Nov 20, 2020
8ac7b9a
add documentation
suchitadoshi1987 Nov 20, 2020
6289968
Merge pull request #66 from suchitadoshi1987/suchita/metadata
rwjblue Nov 20, 2020
a3456bc
Release 3.1.0
rwjblue Nov 20, 2020
0f5b00b
Monorepo setup: move to packages/fastboot
xg-wang Nov 28, 2020
117a9fe
Monorepo setup: move to packages/fastboot-app-server
xg-wang Nov 28, 2020
a3457b4
Monorepo setup: move to packages/fastboot-express-middleware
xg-wang Nov 28, 2020
2bee927
Merge remote-tracking branch 'local/fastboot/master'
xg-wang Nov 28, 2020
f67d7a0
Merge remote-tracking branch 'local/fastboot-app-server/master'
xg-wang Nov 28, 2020
9f5b056
Merge remote-tracking branch 'local/fastboot-express-middleware/master'
xg-wang Nov 28, 2020
bd49886
Match packages versions and run tests in CI
xg-wang Nov 16, 2020
5451050
Integration tests fist pass
xg-wang Nov 19, 2020
e3712c5
update readies, deps
xg-wang Nov 28, 2020
38c04ca
add descriptions to test apps to explain purpose
xg-wang Jan 17, 2021
dcc4294
Run new integration tests in ci
xg-wang Jan 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
46 changes: 20 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,41 +19,36 @@ on:
- cron: '0 6 * * 0'

jobs:
test-legacy-mocha:
name: Legacy Mocha Tests - ${{ matrix.node-version }}
runs-on: ubuntu-latest
test-all-packages:
name: Ember Tests
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version: ['10', '12', '14']
node-version: [14.x, 12.x, 10.x]
os: [ubuntu-latest, windows-latest]

steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: volta-cli/action@v1
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

# Remove test-packages folder so that we don't leak node_modules between apps
- name: Remove test-packages
run: |
rm -rf test-packages
- name: Yarn Install
working-directory: ./packages/ember-cli-fastboot
run: |
yarn install --ignore-engines --frozen-lockfile
- name: Run Mocha Tests
working-directory: ./packages/ember-cli-fastboot
run: |
volta install npm@4
npm --version
yarn test:mocha

run: yarn install --ignore-engines --frozen-lockfile
- name: Run ember-cli-fastboot Tests
run: yarn workspace ember-cli-fastboot test:ember
- name: Run fastboot Tests
if: ${{ matrix.os != 'windows-latest' }}
run: yarn workspace fastboot test
- name: Run fastboot-express-middleware Tests
run: yarn workspace fastboot-express-middleware test
- name: Run fastboot-app-server Tests
run: yarn workspace fastboot-app-server test:mocha

test-ember:
name: Ember Tests
integration-tests:
name: Integration Tests
runs-on: ${{ matrix.os }}

strategy:
Expand All @@ -70,9 +65,8 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Yarn Install
run: yarn install --ignore-engines --frozen-lockfile
- name: Run Tests
run: yarn workspace ember-cli-fastboot test:ember

- name: Integration Tests
run: yarn workspace integration-tests test

test-packages:
name: Test Packages
Expand Down
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
[![npm version](https://badge.fury.io/js/ember-cli-fastboot.svg)](https://badge.fury.io/js/ember-cli-fastboot)
[![Actions Status](https://github.com/ember-fastboot/ember-cli-fastboot/workflows/CI/badge.svg)](https://github.com/ember-fastboot/ember-cli-fastboot/actions)

An Ember CLI addon that allows you to render and serve Ember.js apps on
the server. Using FastBoot, you can serve rendered HTML to browsers and
FastBoot allows you to render and serve Ember.js apps on the server.
xg-wang marked this conversation as resolved.
Show resolved Hide resolved
Using FastBoot, you can serve rendered HTML to browsers and
other clients without requiring them to download JavaScript assets.

Currently, the set of Ember applications supported is extremely limited.
Expand All @@ -20,7 +20,7 @@ FastBoot requires Ember 2.3 or higher. It is also preferable that your app is ru

From within your Ember CLI application, run the following command:

```
```sh
ember install ember-cli-fastboot
```

Expand All @@ -35,13 +35,13 @@ You may be shocked to learn that minified code runs faster in Node than
non-minified code, so you will probably want to run the production
environment build for anything "serious."

```
```sh
ember serve --environment production
```

You can also specify the port (default is 4200):

```
```sh
ember serve --port 8088
```

Expand Down Expand Up @@ -72,11 +72,11 @@ module.exports = function(environment) {
}
```

There are several options available, see FastBoot's [README](https://github.com/ember-fastboot/fastboot/tree/v2.0.3#usage) for more information, but be aware that `distPath` is provided internally by `ember-cli-fastboot`, hence it can not be modified by this file.
There are several options available, see FastBoot's [README](./packages/fastboot/#usage) for more information, but be aware that `distPath` is provided internally by `ember-cli-fastboot`, hence it can not be modified by this file.

### FastBoot App Server Configuration

When using FastBoot App Server for production environment you have to manually pass options from `config/fastboot.js` file.
When using [FastBoot App Server](./packages/fastboot-app-server/README.md) for production environment you have to manually pass options from `config/fastboot.js` file.

```js
const FastBootAppServer = require('fastboot-app-server');
Expand Down Expand Up @@ -360,9 +360,8 @@ The contents of the Shoebox are written to the HTML as strings within
consumed by the browser rendered application.

This looks like:

```html
.
.
<script type="fastboot/shoebox" id="shoebox-main-store">
{"data":[{"attributes":{"name":"AEC Professionals"},"id":106,"type":"audience"},
{"attributes":{"name":"Components"},"id":111,"type":"audience"},
Expand All @@ -371,8 +370,6 @@ This looks like:
{"attributes":{"name":"Staff"},"id":141,"type":"audience"},
{"attributes":{"name":"Students"},"id":146,"type":"audience"}]}
</script>
.
.
```

You can add items into the shoebox with `shoebox.put`, and you can retrieve
Expand Down Expand Up @@ -415,7 +412,7 @@ Shoebox gives you great capabilities, but using it in the real app is pretty rou
One way to abstract the shoebox data storage mechanics is to move the logic into
the Application Adapter as shown below.

```
```js
export default class ApplicationAdapter extends JSONAPIAdapter.extend(
// ...snip...

Expand Down Expand Up @@ -448,6 +445,7 @@ export default class ApplicationAdapter extends JSONAPIAdapter.extend(
}
}
```

With this strategy, any time an ember-data `findRecord` request happens while in
Fastboot mode, the record will be put into the shoebox cache and returned. When
subsequent calls are made for that record in the hydrated application, it will
Expand Down
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"version": "3.0.0-beta.2",
"version": "3.1.2",
"repository": {
"type": "git",
"url": "git@github.com:ember-fastboot/ember-cli-fastboot.git"
Expand All @@ -10,9 +10,9 @@
"test-packages/*"
],
"devDependencies": {
"release-it": "^14.0.2",
"release-it-lerna-changelog": "^2.4.0",
"release-it-yarn-workspaces": "^1.5.0"
"release-it": "^14.2.2",
"release-it-lerna-changelog": "^3.1.0",
"release-it-yarn-workspaces": "^2.0.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
Expand All @@ -29,7 +29,8 @@
],
"additionalManifests": {
"versionUpdates": [
"package.json"
"package.json",
"test-packages/*/package.json"
],
"dependencyUpdates": [
"package.json",
Expand All @@ -46,5 +47,9 @@
"tokenRef": "GITHUB_AUTH"
},
"npm": false
},
"volta": {
"node": "12.19.0",
"yarn": "1.22.5"
}
}
3 changes: 3 additions & 0 deletions packages/ember-cli-fastboot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ember Cli FastBoot

See the [main readme](../../README.md) or http://ember-fastboot.com/ for more information.
13 changes: 6 additions & 7 deletions packages/ember-cli-fastboot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-cli-fastboot",
"version": "3.0.0-beta.2",
"version": "3.1.2",
"description": "Server-side rendering for Ember.js apps",
"keywords": [
"ember-addon"
Expand All @@ -14,7 +14,7 @@
},
"scripts": {
"build": "ember build",
"lint:js": "eslint ./*.js addon addon-test-support app config lib server test-support tests",
"lint:js": "eslint ./*.js addon app fastboot config lib tests",
"release": "release-it",
"start": "ember serve",
"test": "mocha && ember test",
Expand All @@ -33,8 +33,8 @@
"ember-cli-lodash-subset": "2.0.1",
"ember-cli-preprocess-registry": "^3.1.2",
"ember-cli-version-checker": "^3.0.0",
"fastboot": "^3.1.1",
"fastboot-express-middleware": "^3.0.0",
"fastboot": "3.1.2",
"fastboot-express-middleware": "3.1.2",
"fastboot-transform": "^0.1.3",
"fs-extra": "^7.0.0",
"json-stable-stringify": "^1.0.1",
Expand All @@ -54,7 +54,6 @@
"ember-cli": "~3.3.0",
"ember-cli-addon-tests": "^0.11.1",
"ember-cli-dependency-checker": "^3.2.0",
"ember-cli-eslint": "^4.2.3",
"ember-cli-htmlbars": "^3.0.0",
"ember-cli-htmlbars-inline-precompile": "^1.0.3",
"ember-cli-inject-live-reload": "^1.8.2",
Expand Down Expand Up @@ -93,7 +92,7 @@
]
},
"volta": {
"node": "12.18.2",
"yarn": "1.17.3"
"node": "12.19.0",
"yarn": "1.22.5"
}
}
2 changes: 2 additions & 0 deletions packages/fastboot-app-server/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/**
test/fixtures/**
22 changes: 22 additions & 0 deletions packages/fastboot-app-server/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';
module.exports = {
parserOptions: {
ecmaVersion: 2017,
},
extends: ['eslint:recommended', 'plugin:node/recommended'],
plugins: ['node'],
env: {
node: true,
es6: true,
},
overrides: [
{
files: ['test/**/*-test.js'],
env: {
mocha: true,
},
extends: ['plugin:mocha/recommended'],
plugins: ['mocha'],
},
]
};
24 changes: 24 additions & 0 deletions packages/fastboot-app-server/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn test
2 changes: 2 additions & 0 deletions packages/fastboot-app-server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.eslintcache
2 changes: 2 additions & 0 deletions packages/fastboot-app-server/.mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// set the NODE_ENV to test if not already set, NODE_ENV=test changes the default worker count to 1
process.env.NODE_ENV = process.env.NODE_ENV || 'test';
6 changes: 6 additions & 0 deletions packages/fastboot-app-server/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gitignore
.eslintcache
.eslintignore
.eslintrc.js
.travis.yml
test/
45 changes: 45 additions & 0 deletions packages/fastboot-app-server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## v3.0.0 (2020-10-26)

#### :boom: Breaking Change
* [#124](https://github.com/ember-fastboot/fastboot-app-server/pull/124) Update FastBoot v3 ([@bobisjan](https://github.com/bobisjan))
* [#123](https://github.com/ember-fastboot/fastboot-app-server/pull/123) Drop Node 8 and 13 support ([@bobisjan](https://github.com/bobisjan))

#### :rocket: Enhancement
* [#120](https://github.com/ember-fastboot/fastboot-app-server/pull/120) Remove legacy Node.js support leftovers ([@bobisjan](https://github.com/bobisjan))
* [#96](https://github.com/ember-fastboot/fastboot-app-server/pull/96) Expose `distPath` on `reload` event ([@nathanhammond](https://github.com/nathanhammond))

#### :memo: Documentation
* [#49](https://github.com/ember-fastboot/fastboot-app-server/pull/49) Avoid `server.js` naming conflict ([@oskarrough](https://github.com/oskarrough))
* [#79](https://github.com/ember-fastboot/fastboot-app-server/pull/79) Adds notes to readme about overriding the workerCount ([@Duder-onomy](https://github.com/Duder-onomy))
* [#106](https://github.com/ember-fastboot/fastboot-app-server/pull/106) Add link to s3-notifier ([@allthesignals](https://github.com/allthesignals))
* [#115](https://github.com/ember-fastboot/fastboot-app-server/pull/115) Add link to fastboot-gcloud-storage-notifier in README ([@YoranBrondsema](https://github.com/YoranBrondsema))
* [#114](https://github.com/ember-fastboot/fastboot-app-server/pull/114) Add link to fastboot-gcloud-storage-downloader in README ([@YoranBrondsema](https://github.com/YoranBrondsema))
* [#122](https://github.com/ember-fastboot/fastboot-app-server/pull/122) Update README.md ([@wagenet](https://github.com/wagenet))

#### :house: Internal
* [#128](https://github.com/ember-fastboot/fastboot-app-server/pull/128) Update linting setup ([@rwjblue](https://github.com/rwjblue))
* [#129](https://github.com/ember-fastboot/fastboot-app-server/pull/129) Update mocha to latest. ([@rwjblue](https://github.com/rwjblue))
* [#127](https://github.com/ember-fastboot/fastboot-app-server/pull/127) Update dependencies to latest. ([@rwjblue](https://github.com/rwjblue))
* [#126](https://github.com/ember-fastboot/fastboot-app-server/pull/126) Migrate to GitHub Actions. ([@rwjblue](https://github.com/rwjblue))
* [#125](https://github.com/ember-fastboot/fastboot-app-server/pull/125) Add release automation. ([@rwjblue](https://github.com/rwjblue))
* [#121](https://github.com/ember-fastboot/fastboot-app-server/pull/121) Migrate to ESLint ([@bobisjan](https://github.com/bobisjan))

#### Committers: 8
- Greg Larrenaga ([@Duder-onomy](https://github.com/Duder-onomy))
- Jan Bobisud ([@bobisjan](https://github.com/bobisjan))
- Matt Gardner ([@allthesignals](https://github.com/allthesignals))
- Nathan Hammond ([@nathanhammond](https://github.com/nathanhammond))
- Oskar ([@oskarrough](https://github.com/oskarrough))
- Peter Wagenet ([@wagenet](https://github.com/wagenet))
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
- Yoran Brondsema ([@YoranBrondsema](https://github.com/YoranBrondsema))

### 1.1.2-beta.1

* Bump fastboot version to allow opting into rehydration.

### 1.1.0

* README updates
* Bumping version of `base-auth` to 2.0.0
* Bumping version of `fastboot` and `fastboot-express-middleware` to 1.1.0
9 changes: 9 additions & 0 deletions packages/fastboot-app-server/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2015

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading