feat(react): deprecate styl from react and next for 17 (#16135)

This commit is contained in:
Emily Xiong 2023-04-12 08:23:13 -04:00 committed by GitHub
parent c8a2f50f36
commit 3eede1c7de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 96 additions and 114 deletions

View File

@ -37,10 +37,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -56,6 +52,11 @@
{
"value": "styled-jsx",
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
},
{ "value": "none", "label": "None" },
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}

View File

@ -38,10 +38,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -58,7 +54,11 @@
"value": "styled-jsx",
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
},
{ "value": "none", "label": "None" }
{ "value": "none", "label": "None" },
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}
},

View File

@ -37,10 +37,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -57,7 +53,11 @@
"value": "styled-jsx",
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
},
{ "value": "none", "label": "None" }
{ "value": "none", "label": "None" },
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}
},

View File

@ -44,10 +44,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -64,7 +60,11 @@
"value": "styled-jsx",
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
},
{ "value": "none", "label": "None" }
{ "value": "none", "label": "None" },
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
},
"x-priority": "important"

View File

@ -51,10 +51,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -71,7 +67,11 @@
"value": "styled-jsx",
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
},
{ "value": "none", "label": "None" }
{ "value": "none", "label": "None" },
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}
},

View File

@ -48,10 +48,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -68,7 +64,11 @@
"value": "styled-jsx",
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
},
{ "value": "none", "label": "None" }
{ "value": "none", "label": "None" },
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}
},

View File

@ -37,10 +37,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -57,7 +53,11 @@
"value": "styled-jsx",
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
},
{ "value": "none", "label": "None" }
{ "value": "none", "label": "None" },
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}
},

View File

@ -47,10 +47,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -67,7 +63,11 @@
"value": "styled-jsx",
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
},
{ "value": "none", "label": "None" }
{ "value": "none", "label": "None" },
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}
},

View File

@ -37,10 +37,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -57,6 +53,10 @@
"value": "styled-jsx",
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
},
{
"value": "styl",
"label": "DEPRECATD: Stylus(.styl) [ http://stylus-lang.com ]"
},
{ "value": "none", "label": "None" }
]
}

View File

@ -33,10 +33,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl)[ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"

View File

@ -37,7 +37,7 @@ module.exports = composePlugins(withNx(), (config) => {
## withWeb
The `withWeb` plugin adds support for CSS/SASS/Less/Stylus stylesheets, assets (such as images and fonts), and `index.html` processing.
The `withWeb` plugin adds support for CSS/SASS/Less stylesheets, assets (such as images and fonts), and `index.html` processing.
### Options

View File

@ -42,10 +42,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl)[ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"

View File

@ -37,7 +37,7 @@ module.exports = composePlugins(withNx(), (config) => {
## withWeb
The `withWeb` plugin adds support for CSS/SASS/Less/Stylus stylesheets, assets (such as images and fonts), and `index.html` processing.
The `withWeb` plugin adds support for CSS/SASS/Less stylesheets, assets (such as images and fonts), and `index.html` processing.
### Options

View File

@ -25,7 +25,7 @@ module.exports = composePlugins(withNx(), (config) => {
## withWeb
The \`withWeb\` plugin adds support for CSS/SASS/Less/Stylus stylesheets, assets (such as images and fonts), and \`index.html\` processing.
The \`withWeb\` plugin adds support for CSS/SASS/Less stylesheets, assets (such as images and fonts), and \`index.html\` processing.
### Options

View File

@ -43,16 +43,16 @@ export const schema = {
label:
'SASS(.scss) [ http://sass-lang.com ]',
},
{
value: 'styl',
label:
'Stylus(.styl) [ http://stylus-lang.com ]',
},
{
value: 'less',
label:
'LESS [ http://lesscss.org ]',
},
{
value: 'styl',
label:
'DEPRECATED: Stylus(.styl) [ http://stylus-lang.com ]',
},
{
value: 'none',
label: 'None',

View File

@ -589,13 +589,6 @@ async function determineStyle(
},
];
if (![Preset.AngularMonorepo, Preset.AngularStandalone].includes(preset)) {
choices.push({
name: 'styl',
message: 'Stylus(.styl) [ http://stylus-lang.com ]',
});
}
if (
[Preset.ReactMonorepo, Preset.ReactStandalone, Preset.NextJs].includes(
preset

View File

@ -37,10 +37,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -56,6 +52,14 @@
{
"value": "styled-jsx",
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
},
{
"value": "none",
"label": "None"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}

View File

@ -40,10 +40,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -63,6 +59,10 @@
{
"value": "none",
"label": "None"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}

View File

@ -37,10 +37,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -60,6 +56,10 @@
{
"value": "none",
"label": "None"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}

View File

@ -46,10 +46,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -69,6 +65,10 @@
{
"value": "none",
"label": "None"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
},

View File

@ -23,7 +23,7 @@ export function installCommonDependencies(
case 'less':
devDependencies = { less: lessVersion };
break;
case 'styl':
case 'styl': // @TODO(17): deprecated, going to be removed in Nx 17
devDependencies = { stylus: stylusVersion };
break;
}

View File

@ -54,10 +54,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -77,6 +73,10 @@
{
"value": "none",
"label": "None"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}

View File

@ -50,10 +50,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -73,6 +69,10 @@
{
"value": "none",
"label": "None"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}

View File

@ -40,10 +40,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -63,6 +59,10 @@
{
"value": "none",
"label": "None"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}

View File

@ -27,7 +27,7 @@ export function installCommonDependencies(
case 'less':
devDependencies['less'] = lessVersion;
break;
case 'styl':
case 'styl': // @TODO(17): deprecated, going to be removed in Nx 17
devDependencies['stylus'] = stylusVersion;
break;
}

View File

@ -47,10 +47,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -70,6 +66,10 @@
{
"value": "none",
"label": "None"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ] (DEPRECATED)"
}
]
}

View File

@ -40,10 +40,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"
@ -60,6 +56,10 @@
"value": "styled-jsx",
"label": "styled-jsx [ https://www.npmjs.com/package/styled-jsx ]"
},
{
"value": "styl",
"label": "DEPRECATD: Stylus(.styl) [ http://stylus-lang.com ]"
},
{
"value": "none",
"label": "None"

View File

@ -2,7 +2,7 @@ const VALID_STYLES = [
'css',
'scss',
'less',
'styl',
'styl', // @TODO(17): deprecated, going to be removed in Nx 17
'styled-components',
'@emotion/styled',
'styled-jsx',

View File

@ -1,7 +1,7 @@
export type SupportedStyles =
| 'css'
| 'scss'
| 'styl'
| 'styl' // @TODO(17): deprecated, going to be removed in Nx 17
| 'less'
| 'styled-components'
| '@emotion/styled'

View File

@ -36,10 +36,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl)[ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"

View File

@ -45,10 +45,6 @@
"value": "scss",
"label": "SASS(.scss) [ http://sass-lang.com ]"
},
{
"value": "styl",
"label": "Stylus(.styl)[ http://stylus-lang.com ]"
},
{
"value": "less",
"label": "LESS [ http://lesscss.org ]"