@arnosaine/cra-template
Advanced tools
Comparing version 1.0.1-0 to 1.0.2
{ | ||
"name": "@arnosaine/cra-template", | ||
"version": "1.0.1-0", | ||
"version": "1.0.2", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "react", |
@@ -1,7 +0,11 @@ | ||
# cra-template | ||
# @arnosaine/cra-template | ||
This is the official base template for [Create React App](https://github.com/facebook/create-react-app). | ||
This template uses some experimental Babel plugins and can be customized without ejecting. | ||
If you don't specify a template (for example, `--template typescript`), this template will be used by default. | ||
## Usage | ||
```sh | ||
npx create-react-app --scripts-version @arnosaine/react-scripts --template @arnosaine/cra-template my-app | ||
``` | ||
For more information, please refer to: | ||
@@ -11,1 +15,2 @@ | ||
- [User Guide](https://create-react-app.dev) – How to develop apps bootstrapped with Create React App. | ||
- [Create React App fork](https://www.npmjs.com/package/@arnosaine/react-scripts) – How to customize CRA. |
{ | ||
"scripts": { | ||
"eslint": "eslint {.,src/**}/*.js --fix", | ||
"lint": "npm run eslint && npm run prettier", | ||
"prepack": "npm run build", | ||
"prettier": "npm run prettier:write -- {.,src/**}/*.{css,graphql,html,js,json,less,md,mdx,scss,ts,yaml} !./package-lock.json", | ||
"prettier:write": "prettier --config .prettierrc.js --write", | ||
"preversion": "npm run lint" | ||
}, | ||
"dependencies": { | ||
"@arnosaine/cra-template-helpers": "^0.1.0", | ||
"@testing-library/react": "^9.3.2", | ||
"@testing-library/jest-dom": "^4.2.4", | ||
"@testing-library/user-event": "^7.1.2" | ||
}, | ||
"devDependencies": { | ||
"dotenv-webpack": "1", | ||
"husky": "1", | ||
"lint-staged": "8" | ||
}, | ||
"eslintConfig": { | ||
"rules": { | ||
"react/react-in-jsx-scope": "off" | ||
"package": { | ||
"scripts": { | ||
"eslint": "eslint {.,src/**}/*.js --fix", | ||
"lint": "npm run eslint && npm run prettier", | ||
"prepack": "npm run build", | ||
"prettier": "npm run prettier:write -- {.,src/**}/*.{css,graphql,html,js,json,less,md,mdx,scss,ts,yaml} !./package-lock.json", | ||
"prettier:write": "prettier --config .prettierrc.js --write", | ||
"preversion": "npm run lint" | ||
}, | ||
"dependencies": { | ||
"@arnosaine/cra-template-helpers": "^0.1.0", | ||
"@testing-library/react": "^9.3.2", | ||
"@testing-library/jest-dom": "^4.2.4", | ||
"@testing-library/user-event": "^7.1.2" | ||
}, | ||
"devDependencies": { | ||
"dotenv-webpack": "1", | ||
"husky": "1", | ||
"lint-staged": "8" | ||
}, | ||
"eslintConfig": { | ||
"rules": { | ||
"react/react-in-jsx-scope": "off" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.js": ["eslint --fix", "npm run prettier:write", "git add"], | ||
"*.{css,graphql,html,json,less,md,mdx,scss,ts,yaml}": [ | ||
"npm run prettier:write", | ||
"git add" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.js": ["eslint --fix", "npm run prettier:write", "git add"], | ||
"*.{css,graphql,html,json,less,md,mdx,scss,ts,yaml}": [ | ||
"npm run prettier:write", | ||
"git add" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
} | ||
} |
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * | ||
Disallow: |
@@ -42,3 +42,3 @@ > ⚠️ CRA template fork with: | ||
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. | ||
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. | ||
@@ -45,0 +45,0 @@ 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. |
@@ -104,3 +104,3 @@ // This optional code is used to register a service worker. | ||
fetch(swUrl, { | ||
headers: { 'Service-Worker': 'script' } | ||
headers: { 'Service-Worker': 'script' }, | ||
}) | ||
@@ -134,6 +134,10 @@ .then(response => { | ||
if ('serviceWorker' in navigator) { | ||
navigator.serviceWorker.ready.then(registration => { | ||
registration.unregister(); | ||
}); | ||
navigator.serviceWorker.ready | ||
.then(registration => { | ||
registration.unregister(); | ||
}) | ||
.catch(error => { | ||
console.error(error.message); | ||
}); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
309
1
16
1
37202
0