Skip to content

Commit 8bdb1cb

Browse files
author
Rohan Gupta
committed
feat: Add logo, workflows and styling changes
1 parent 4a1349d commit 8bdb1cb

19 files changed

+34070
-22532
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
INLINE_RUNTIME_CHUNK=false

.github/labeler.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
modules:
2+
- node_modules/*
3+
- node_modules/**/*
4+
5+
source:
6+
- src/*
7+
- src/**/*
8+
- public/*
9+
- public/**/*
10+
11+
documentation:
12+
- '*.md'
13+
14+
package:
15+
- 'package.json'
16+
- 'package-lock.json'
17+
18+
config:
19+
- 'lintconfig.json'
20+
- 'tsconfig.json'

.github/workflows/pull_request.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Pull Request
2+
on:
3+
pull_request:
4+
branches:
5+
- 'master'
6+
7+
jobs:
8+
pr_label:
9+
if: github.repository == 'DemonDaddy22/Lorem-Gen-Extension'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Adding label
13+
uses: actions/labeler@main
14+
with:
15+
sync-labels: true
16+
repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

.github/workflows/release.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Lorem Gen Chrome Extension Release'
2+
on:
3+
push:
4+
branches:
5+
- 'master'
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node-version: ['14']
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- name: Install dependencies
18+
run: npm install
19+
- name: Run linting
20+
run: npm run lint:fix
21+
- name: Semantic Release
22+
run: npm run semantic-release
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
# misc
1515
.DS_Store
16-
.env
1716
.env.local
1817
.env.development.local
1918
.env.test.local

.releaserc.js

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
module.exports = {
2+
plugins: [
3+
'@semantic-release/commit-analyzer',
4+
'@semantic-release/release-notes-generator',
5+
[
6+
'@semantic-release/npm',
7+
{
8+
npmPublish: false,
9+
},
10+
],
11+
[
12+
'@semantic-release/changelog',
13+
{
14+
changelogFile: 'docs/CHANGELOG.md',
15+
changelogTitle: '# Changelog',
16+
},
17+
],
18+
[
19+
'@semantic-release/git',
20+
{
21+
assets: ['package.json', 'package-lock.json', 'docs/CHANGELOG.md'],
22+
message: 'chore(release): ${nextRelease.version} \n\n${nextRelease.notes}',
23+
},
24+
],
25+
[
26+
'@semantic-release/github',
27+
{
28+
assets: 'docs/CHANGELOG.md',
29+
},
30+
],
31+
],
32+
branches: ['master'],
33+
};

README.md

+13-40
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,19 @@
1-
# Getting Started with Create React App
1+
<h1 align='center'>
2+
<a href='https://demondaddy22.github.io/Lorem-Gen/'>Lorem Gen</a>
3+
</h1>
24

3-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
5+
<p align='center'>
6+
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/DemonDaddy22/Lorem-Gen/Deploy%20Lorem%20Gen?color=%23F9906F&style=for-the-badge">
7+
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/DemonDaddy22/Lorem-Gen-Extension?color=%234D5AF3&style=for-the-badge">
8+
<img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/DemonDaddy22/Lorem-Gen-Extension?color=%2350C87C&style=for-the-badge">
9+
</p>
410

5-
## Available Scripts
11+
<br />
612

7-
In the project directory, you can run:
13+
<img width="1242" alt="lorem-gen snapshot" src="https://user-images.githubusercontent.com/39908472/118358060-be771b80-b59a-11eb-9838-0a81999fa878.png">
814

9-
### `npm start`
15+
A quick and easy way to generate [*Lorem Ipsum*](https://en.wikipedia.org/wiki/Lorem_ipsum). This lorem ipsum generator lets you generate desired amount of words, sentences or paragraphs and at the same time allowing you to choose whether to start the output with phrase 'Lorem ipsum' or not (applicable only for sentences and paragraphs).
1016

11-
Runs the app in the development mode.\
12-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
17+
You can find the lorem ipsum generator [here](https://demondaddy22.github.io/Lorem-Gen/).
1318

14-
The page will reload if you make edits.\
15-
You will also see any lint errors in the console.
16-
17-
### `npm test`
18-
19-
Launches the test runner in the interactive watch mode.\
20-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21-
22-
### `npm run build`
23-
24-
Builds the app for production to the `build` folder.\
25-
It correctly bundles React in production mode and optimizes the build for the best performance.
26-
27-
The build is minified and the filenames include the hashes.\
28-
Your app is ready to be deployed!
29-
30-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31-
32-
### `npm run eject`
33-
34-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35-
36-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37-
38-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39-
40-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41-
42-
## Learn More
43-
44-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45-
46-
To learn React, check out the [React documentation](https://reactjs.org/).
19+
**Chrome extension coming soon!**

lintconfig.js

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
module.exports = {
2+
parser: 'babel-eslint',
3+
parserOptions: {
4+
ecmaVersion: 6,
5+
sourceType: 'module',
6+
},
7+
env: {
8+
es6: true,
9+
browser: true,
10+
},
11+
globals: {},
12+
plugins: ['react', 'react-hooks'],
13+
rules: {
14+
'semi': 2,
15+
'comma-dangle': 0,
16+
'react/jsx-uses-vars': 1,
17+
'no-unused-vars': 1,
18+
'no-undef': 1,
19+
'no-unexpected-multiline': 1,
20+
'no-debugger': 2,
21+
'no-alert': 1,
22+
'no-console': 1,
23+
'no-await-in-loop': 1,
24+
'no-return-assign': ['error', 'except-parens'],
25+
'no-unused-expressions': [
26+
2,
27+
{
28+
allowTaggedTemplates: true,
29+
},
30+
],
31+
'import/prefer-default-export': 0,
32+
'import': 0,
33+
'react/require-default-props': 0,
34+
'quotes': [
35+
2,
36+
'single',
37+
{
38+
avoidEscape: true,
39+
allowTemplateLiterals: true,
40+
},
41+
],
42+
'eqeqeq': 1,
43+
},
44+
settings: {
45+
'import/resolver': 'webpack',
46+
'react': {
47+
createClass: 'createReactClass',
48+
pragma: 'React',
49+
fragment: 'Fragment',
50+
version: 'detect',
51+
flowVersion: '0.53',
52+
},
53+
'propWrapperFunctions': [
54+
'forbidExtraProps',
55+
{ property: 'freeze', object: 'Object' },
56+
{ property: 'myFavoriteWrapper' },
57+
],
58+
'linkComponents': ['Hyperlink', { name: 'Link', linkAttribute: 'to' }],
59+
},
60+
};

0 commit comments

Comments
 (0)