-
-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modernize manager template build workflow #15793
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,40 @@ | ||
{ | ||
"name": "revolution-theme-default", | ||
"title": "MODX Revolution", | ||
"version": "3.0.0", | ||
"license": "GPL-2.0+", | ||
"repository": "https://github.com/modxcms/revolution", | ||
"devDependencies": { | ||
"grunt": "^1.3.0", | ||
"grunt-autoprefixer": "^3.0.4", | ||
"grunt-contrib-concat": "^1.0.1", | ||
"grunt-contrib-copy": "^1.0.0", | ||
"grunt-contrib-csslint": "^2.0.0", | ||
"grunt-contrib-cssmin": "^3.0.0", | ||
"grunt-contrib-uglify": "^4.0.1", | ||
"grunt-contrib-watch": "^1.1.0", | ||
"grunt-imageoptim": "^1.4.4", | ||
"grunt-notify": "^0.4.5", | ||
"grunt-sass": "^3.1.0", | ||
"node": "^14.15.0", | ||
"node-sass": "^5.0.0" | ||
}, | ||
"dependencies": { | ||
"bourbon": "^5.1.0", | ||
"bourbon-neat": "^3.0.0", | ||
"@fortawesome/fontawesome-free": "^5.7.0", | ||
"normalize-scss": "^7.0.1" | ||
}, | ||
"scripts": { | ||
"build": "grunt build" | ||
} | ||
"name": "revolution-theme-default", | ||
"title": "MODX Revolution", | ||
"version": "3.0.0", | ||
"license": "GPL-2.0+", | ||
"repository": "https://github.com/modxcms/revolution", | ||
"devDependencies": { | ||
"@lodder/grunt-postcss": "^3.0.1", | ||
"autoprefixer": "^10.3.3", | ||
"bourbon": "^5.1.0", | ||
"bourbon-neat": "^3.0.0", | ||
"cssnano": "^5.0.8", | ||
"grunt": "^1.4.1", | ||
"grunt-contrib-concat": "^1.0.1", | ||
"grunt-contrib-copy": "^1.0.0", | ||
"grunt-contrib-watch": "^1.1.0", | ||
"grunt-dart-sass": "^2.0.1", | ||
"grunt-notify": "^0.4.5", | ||
"grunt-terser": "^2.0.0", | ||
"node": "^14.15.0", | ||
"normalize-scss": "^7.0.1", | ||
"postcss": "^8.3.6" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why you use postcss and sass both? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. postcss is being used as a base for cssnano and autoprefixer. I'm not using the postcss scss plugin to parse scss because it's not entirely standard sass. |
||
}, | ||
"dependencies": { | ||
"@fortawesome/fontawesome-free": "^5.15.4" | ||
}, | ||
"scripts": { | ||
"build": "grunt build" | ||
}, | ||
"browserslist": [ | ||
"Chrome >= 64", | ||
"Firefox >= 78", | ||
"Safari >= 12", | ||
"Edge >= 79", | ||
"iOS >= 11", | ||
"ChromeAndroid >= 92", | ||
"last 2 Android versions", | ||
"not dead" | ||
] | ||
smg6511 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
windows 7 is not supported by node.js 14 :( Windows 7 still be more popular than 8, at least in Russia.
Is this dependency is necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Windows 7, as you probably know, has been unsupported by Microsoft for more that a year and a half now. That said, I've seen that people on 7 have been able to get node 14+ running. See nodejs/node#33000 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for link, I'll try it.
Anyway, I would ask again: for what purpose is this dependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the base software needed to use npm and the modules it manages. Are you intending on doing some development on the manager interface? Note that this same dependency has existed in 2.x for quite a while now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's very strange to have the npm installed and not have the nodejs installed, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mishantrop yes it is. I assume you're running Windows 7?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, including. Also I use Fedora and Mac OS. Dependings on tasks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also there are better ways to limit the version of the application (anyway, I dont see any reasons for it in MODX):
package.json
.npmrc
I have not personally tested it as it was never necessary.
Source: https://stackoverflow.com/a/68653111