Skip to content
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

Point main to CSS file for usage by bundlers #263

Merged
merged 4 commits into from
Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* The MIT License (MIT)
*
* Copyright (c) 2015-2023 Yegor Bugayenko
* Copyright (c) 2015-2024 Yegor Bugayenko
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -49,7 +49,8 @@ module.exports = function (grunt) {
implementation: require('node-sass')
},
files: {
'dist/<%= pkg.name %>-<%= pkg.version %>.min.css': 'scss/main.scss'
'dist/<%= pkg.name %>-<%= pkg.version %>.min.css': 'scss/main.scss',
'dist/<%= pkg.name %>.min.css': 'scss/main.scss'
}
},
uncompressed: {
Expand All @@ -59,7 +60,8 @@ module.exports = function (grunt) {
implementation: require('node-sass')
},
files: {
'dist/<%= pkg.name %>-<%= pkg.version %>.css': 'scss/main.scss'
'dist/<%= pkg.name %>-<%= pkg.version %>.css': 'scss/main.scss',
'dist/<%= pkg.name %>.css': 'scss/main.scss'
}
}
},
Expand All @@ -77,13 +79,17 @@ module.exports = function (grunt) {
css_purge: {
dist: {
options: {},
src: 'dist/<%= pkg.name %>-<%= pkg.version %>.min.css',
dest: 'dist/<%= pkg.name %>-<%= pkg.version %>.min.css',
files: {
'dist/<%= pkg.name %>-<%= pkg.version %>.min.css': 'dist/<%= pkg.name %>-<%= pkg.version %>.min.css',
'dist/<%= pkg.name %>.min.css': 'dist/<%= pkg.name %>.min.css'
}
},
uncompressed: {
options: {},
src: 'dist/<%= pkg.name %>-<%= pkg.version %>.css',
dest: 'dist/<%= pkg.name %>-<%= pkg.version %>.css',
files: {
'dist/<%= pkg.name %>-<%= pkg.version %>.css': 'dist/<%= pkg.name %>-<%= pkg.version %>.css',
'dist/<%= pkg.name %>.css': 'dist/<%= pkg.name %>.css'
}
},
},
}
Expand Down Expand Up @@ -122,7 +128,7 @@ module.exports = function (grunt) {

})
})
grunt.registerTask('default', ['sasslint', 'sass:dist', 'css_purge', 'checkYear', 'validate']);
grunt.registerTask('default', ['sasslint', 'sass:dist', 'sass:uncompressed', 'css_purge', 'checkYear', 'validate']);
grunt.registerTask('rultor', ['sasslint', 'sass:dist', 'sass:uncompressed', 'css_purge', 'checkYear', 'validate']);
grunt.registerTask('dev', ['sasslint', 'sass:dev', 'css_purge', 'watch']);
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2023 Yegor Bugayenko
Copyright (c) 2015-2024 Yegor Bugayenko

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
* The MIT License (MIT)
*
* Copyright (c) 2015-2023 Yegor Bugayenko
* Copyright (c) 2015-2024 Yegor Bugayenko
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -226,7 +226,7 @@ <h2>Work in progress</h2>
<nav>
<ul>
<li>
<small>Made by <a href="https://www.yegor256.com">@yegor256</a>, 2015-2023</small>
<small>Made by <a href="https://www.yegor256.com">@yegor256</a>, 2015-2024</small>
</li>
</ul>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"copyright": "2015",
"description": "CSS Framework for Dummies",
"main": "index.js",
"main": "dist/tacit-css.css",
"scripts": {
"test": "grunt --no-color",
"rultor": "grunt rultor --no-color",
Expand Down
2 changes: 1 addition & 1 deletion scss/_defs.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The MIT License (MIT)
//
// Copyright (c) 2015-2023 Yegor Bugayenko
// Copyright (c) 2015-2024 Yegor Bugayenko
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion scss/_forms.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The MIT License (MIT)
//
// Copyright (c) 2015-2023 Yegor Bugayenko
// Copyright (c) 2015-2024 Yegor Bugayenko
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion scss/_grid.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The MIT License (MIT)
//
// Copyright (c) 2015-2023 Yegor Bugayenko
// Copyright (c) 2015-2024 Yegor Bugayenko
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion scss/_headings.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The MIT License (MIT)
//
// Copyright (c) 2015-2023 Yegor Bugayenko
// Copyright (c) 2015-2024 Yegor Bugayenko
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion scss/_pre.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The MIT License (MIT)
//
// Copyright (c) 2015-2023 Yegor Bugayenko
// Copyright (c) 2015-2024 Yegor Bugayenko
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion scss/_responsive.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The MIT License (MIT)
//
// Copyright (c) 2015-2023 Yegor Bugayenko
// Copyright (c) 2015-2024 Yegor Bugayenko
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion scss/_tables.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The MIT License (MIT)
//
// Copyright (c) 2015-2023 Yegor Bugayenko
// Copyright (c) 2015-2024 Yegor Bugayenko
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion scss/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The MIT License (MIT)
//
// Copyright (c) 2015-2023 Yegor Bugayenko
// Copyright (c) 2015-2024 Yegor Bugayenko
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion scss/main.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The MIT License (MIT)
//
// Copyright (c) 2015-2023 Yegor Bugayenko
// Copyright (c) 2015-2024 Yegor Bugayenko
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down