Skip to content

Commit

Permalink
Merge pull request #1 from freshworksinc/feat-sequential-render
Browse files Browse the repository at this point in the history
feat: Sequential rendering initial commit
  • Loading branch information
kanalveli-ramachandran authored Sep 30, 2020
2 parents d23d676 + 63b8dc6 commit f6228cf
Show file tree
Hide file tree
Showing 107 changed files with 17,217 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true


[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

[*.hbs]
insert_final_newline = false

[*.{diff,md}]
trim_trailing_whitespace = false
20 changes: 20 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# unconventional js
/blueprints/*/files/
/vendor/

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/
/node_modules/

# misc
/coverage/
!.*

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
70 changes: 70 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
// eslint-disable-next-line node/no-extraneous-require
const ESLINT_PLUGIN_NODE = require('eslint-plugin-node');

module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: [
'ember'
],
extends: [
'eslint:recommended',
'plugin:ember/recommended'
],
env: {
browser: true
},
rules: {
'ember/no-jquery': 'error'
},
overrides: [
// node files
{
files: [
'.eslintrc.js',
'.template-lintrc.js',
'ember-cli-build.js',
'index.js',
'testem.js',
'blueprints/*/index.js',
'config/**/*.js',
'tests/dummy/config/**/*.js'
],
excludedFiles: [
'addon/**',
'addon-test-support/**',
'app/**',
'tests/dummy/app/**'
],
parserOptions: {
sourceType: 'script',
"ecmaFeatures": {
"legacyDecorators": true
}
},
env: {
browser: false,
node: true
},
plugins: ['node'],
// eslint-disable-next-line node/no-extraneous-require
rules: Object.assign({}, ESLINT_PLUGIN_NODE.configs.recommended.rules, {
'comma-dangle': ['error', 'never'],
'ember/new-module-imports': 'off',
'ember/order-in-components': 2,
'ember/order-in-controllers': 2,
'ember/order-in-models': 2,
'ember/order-in-routes': 2,
'ember/use-ember-get-and-set': [2, {
ignoreThisExpressions: false
}],
'ember/no-jquery': 2,
'ember/no-restricted-resolver-tests': 0
})
}
]
};
45 changes: 45 additions & 0 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build

on:
pull_request:
branches:
- master

push:
branches:
- master

jobs:
Lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set Node.js 10.13.0
uses: actions/setup-node@master
with:
node-version: 10.13.0

- name: Install dependencies
run: yarn

- name: Run lint check
run: yarn lint

Test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set Node.js 10.13.0
uses: actions/setup-node@master
with:
node-version: 10.13.0

- name: Install dependencies
run: yarn

- name: Run test suite
run: yarn test
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/temp
/public/assets/lang
/assets/lang/report
/public/assets/lang/en.js

# dependencies
/node_modules
/lib/remove/node_modules

# misc
/.sass-cache
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log*
testem.log
.DS_Store
/temp
.vscode/*
jsconfig.json

yarn-error.log

# IntelliJ files
*.iml
.idea/

/testdist
*.tap
coverage_*

cache/
33 changes: 33 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# compiled output
/dist/
/tmp/

# dependencies
/bower_components/

# misc
/.bowerrc
/.editorconfig
/.ember-cli
/.env*
/.eslintignore
/.eslintrc.js
/.git/
/.gitignore
/.template-lintrc.js
/.travis.yml
/.watchmanconfig
/bower.json
/config/ember-try.js
/CONTRIBUTING.md
/ember-cli-build.js
/testem.js
/tests/
/yarn.lock
.gitkeep

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
/config/addon-docs.js
10 changes: 10 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "stylelint-config-standard",
"plugins": [
"stylelint-order"
],
"rules": {
"number-leading-zero": "never",
"at-rule-no-unknown": null
}
}
14 changes: 14 additions & 0 deletions .template-lintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* eslint-env node */
'use strict';

module.exports = {
extends: 'recommended',

rules: {
'no-bare-strings': true,
'quotes': 'double'
},
ignore: [
'**/tests/dummy/**'
]
};
26 changes: 26 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# How To Contribute

## Installation

* `git clone <repository-url>`
* `cd ember-sequential-render`
* `npm install`

## Linting

* `npm run lint:hbs`
* `npm run lint:js`
* `npm run lint:js -- --fix`

## Running tests

* `ember test` – Runs the test suite on the current Ember version
* `ember test --server` – Runs the test suite in "watch mode"
* `ember try:each` – Runs the test suite against multiple Ember versions

## Running the dummy application

* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).

For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
9 changes: 9 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2020

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.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Ember Sequential Render
==============================================================================

![Build](https://github.com/freshdesk/ember-sequential-render/workflows/Build/badge.svg?branch=master)
![Build](https://github.com/freshworks/ember-sequential-render/workflows/Build/badge.svg?branch=master)


Modern SPA layouts have an overload of information in the user's viewport in any given route. What's preventing secondary information from blocking or taking up resources, which, if left alone, would drastically improve the rendering of the primary content?
Expand Down
Empty file added addon/.gitkeep
Empty file.
Loading

0 comments on commit f6228cf

Please sign in to comment.