Socket
Socket
Sign inDemoInstall

@netlify/framework-info

Package Overview
Dependencies
8
Maintainers
16
Versions
93
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.0 to 6.1.0

build/frameworks.js

20

package.json
{
"name": "@netlify/framework-info",
"version": "6.0.0",
"version": "6.1.0",
"description": "Framework detection utility",

@@ -9,4 +9,4 @@ "main": "./src/main.js",

"dist/index.js",
"src/**/*.js",
"src/**/*.json"
"build/*.js",
"src/**/*.js"
],

@@ -16,6 +16,8 @@ "scripts": {

"build": "run-s build:*",
"build:core": "webpack --config scripts/webpack.config.core.js",
"build:site-react": "webpack --config scripts/webpack.config.site.js",
"build:site-vanilla": "cpy site/vanilla/index.html dist/vanilla",
"build:site-root": "cpy site/index.html dist",
"build:json": "node scripts/transform_json.js",
"build:browser": "run-s build:browser:*",
"build:browser:core": "webpack --config scripts/webpack.config.core.js",
"build:browser:site-react": "webpack --config scripts/webpack.config.site.js",
"build:browser:site-vanilla": "cpy site/vanilla/index.html dist/vanilla",
"build:browser:site-root": "cpy site/index.html dist",
"develop:site-react": "webpack serve --config scripts/webpack.config.site.js",

@@ -91,3 +93,3 @@ "test": "npm run format && npm run test:dev",

"@babel/preset-react": "^7.12.10",
"@netlify/eslint-config-node": "^3.3.8",
"@netlify/eslint-config-node": "^4.0.0",
"ava": "^3.0.0",

@@ -109,3 +111,3 @@ "babel-loader": "^8.2.2",

"path-browserify": "^1.0.1",
"puppeteer": "^11.0.0",
"puppeteer": "^12.0.0",
"react": "^17.0.1",

@@ -112,0 +114,0 @@ "react-dom": "^17.0.1",

const pFilter = require('p-filter')
const { FRAMEWORKS } = require('../build/frameworks')
const { usesFramework } = require('./detect')
const { getDevCommands } = require('./dev')
const { FRAMEWORKS } = require('./frameworks/main')
const { getPackageJsonContent } = require('./package')

@@ -7,0 +8,0 @@ const { getPlugins } = require('./plugins')

@@ -1,58 +0,54 @@

/* eslint-disable node/global-require,import/max-dependencies */
// We purposely order the following array to ensure the most relevant framework
// is always first, if several frameworks are detected at once
const FRAMEWORKS = [
// is always first, if several frameworks are detected at once.
// Therefore, we cannot use `fs.readdir()`.
module.exports.FRAMEWORK_NAMES = [
// Static site generators
require('./astro.json'),
require('./docusaurus.json'),
require('./docusaurus-v2.json'),
require('./eleventy.json'),
require('./gatsby.json'),
require('./gridsome.json'),
require('./hexo.json'),
require('./hugo.json'),
require('./jekyll.json'),
require('./middleman.json'),
require('./next-nx.json'),
require('./next.json'),
require('./blitz.json'),
require('./nuxt.json'),
require('./nuxt3.json'),
require('./phenomic.json'),
require('./react-static.json'),
require('./redwoodjs.json'),
require('./stencil.json'),
require('./vuepress.json'),
require('./assemble.json'),
require('./docpad.json'),
require('./harp.json'),
require('./metalsmith.json'),
require('./roots.json'),
require('./wintersmith.json'),
require('./cecil.json'),
require('./zola.json'),
'astro',
'docusaurus',
'docusaurus-v2',
'eleventy',
'gatsby',
'gridsome',
'hexo',
'hugo',
'jekyll',
'middleman',
'next-nx',
'next',
'blitz',
'nuxt',
'nuxt3',
'phenomic',
'react-static',
'redwoodjs',
'stencil',
'vuepress',
'assemble',
'docpad',
'harp',
'metalsmith',
'roots',
'wintersmith',
'cecil',
'zola',
// Front-end frameworks
require('./angular.json'),
require('./create-react-app.json'),
require('./ember.json'),
require('./expo.json'),
require('./quasar.json'),
require('./quasar-v0.17.json'),
require('./sapper.json'),
require('./svelte.json'),
require('./svelte-kit.json'),
require('./vue.json'),
'angular',
'create-react-app',
'ember',
'expo',
'quasar',
'quasar-v0.17',
'sapper',
'svelte',
'svelte-kit',
'vue',
// Build tools
require('./brunch.json'),
require('./parcel.json'),
require('./grunt.json'),
require('./gulp.json'),
require('./vite.json'),
require('./wmr.json'),
'brunch',
'parcel',
'grunt',
'gulp',
'vite',
'wmr',
]
/* eslint-enable node/global-require,import/max-dependencies */
module.exports = { FRAMEWORKS }

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc