Permalink
Browse files

Fixes #69, Fixes #65

Updated the grunt tasks to JavaScript. Removed the alternate styles from being automatically generated
  • Loading branch information...
willsteinmetz committed Sep 24, 2016
1 parent 31c67a5 commit 02540ae30369976bb22f86e83b88a10fde5bef63
View
@@ -5,3 +5,6 @@ build/
.DS_Store
src/stylus/src
karma_tests
src/less
src/stylus
src/sass-format
View
@@ -8,44 +8,7 @@
*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: require('./package.json')
});
require('time-grunt')(grunt);
grunt.loadTasks('grunt');
grunt.registerTask('build', [
'pug',
'sass',
'cssmin',
'coffee',
'uglify',
'copy:code',
'replace:maps'
]);
grunt.registerTask('default', [
'clean:all',
'build',
'karma:unit',
'watch'
]);
grunt.registerTask('release', [
'clean:release',
'build',
'update_json'
]);
grunt.registerTask('alternate-styles', [
// for some reason this is not running properly when called from here and
// and has to be called separately
// 'sass2stylus',
'scss2less',
'concat:less',
'replace:less',
'sass-convert',
// 'clean:stylus',
'clean:less'
]);
require('load-grunt-config')(grunt);
};
View
@@ -1,6 +1,6 @@
{
"name": "notific8",
"version": "3.7.0",
"version": "4.0.0",
"authors": [
"Will Steinmetz <willsteinmetz@users.noreply.github.com>"
],

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,41 @@
/*
* @author Will Steinmetz
* notific8 Javascript plug-in - build task
* Copyright (c)2013-2016, Will Steinmetz
* Licensed under the BSD license.
* http://opensource.org/licenses/BSD-3-Clause
*/
module.exports = {
'default': [
'clean:all',
'build',
'karma:unit',
'watch'
],
'build': [
'pug',
'sass',
'cssmin',
'coffee',
'uglify',
'copy:code',
'replace:maps'
],
'release': [
'clean:release',
'build',
'update_json'
],
'alternate-styles': [
// for some reason this is not running properly when called from here and
// and has to be called separately
// 'sass2stylus',
'scss2less',
'concat:less',
'replace:less',
'sass-convert',
// 'clean:stylus',
'clean:less'
]
};
View
@@ -0,0 +1,40 @@
/**
* @author Will Steinmetz
* notific8 Javascript plug-in - build task
* Copyright (c)2013-2016, Will Steinmetz
* Licensed under the BSD license.
* http://opensource.org/licenses/BSD-3-Clause
*/
module.exports = {
all: [
'dist',
'build',
'src/sass-format/**/*.sass',
'src/stylus/**/*.styl',
'src/less/**/*.less',
'karma_tests',
],
js: [
'build/js',
'dist/**/*.js*',
],
css: [
'build/css',
'dist/**/*.css*',
],
release: [
'src/sass-format/**/*.sass',
'src/stylus/**/*.styl',
'src/less/**/*.less',
],
stylus: [
'src/stylus/src',
],
less: [
'src/less/jquery.less',
],
karma: [
'karma_tests',
]
};
View
@@ -0,0 +1,20 @@
/**
* @author Will Steinmetz
* notific8 Javascript plug-in - build task
* Copyright (c)2013-2016, Will Steinmetz
* Licensed under the BSD license.
* http://opensource.org/licenses/BSD-3-Clause
*/
module.exports = {
compile: {
options: {
sourceMap: true,
bare: true
},
files: {
'build/js/jquery.notific8.js': 'src/coffee/jquery.notific8.coffee',
'build/js/notific8.js': 'src/coffee/notific8.coffee'
}
}
};
View
@@ -0,0 +1,27 @@
/**
* @author Will Steinmetz
* notific8 Javascript plug-in - build task
* Copyright (c)2013-2016, Will Steinmetz
* Licensed under the BSD license.
* http://opensource.org/licenses/BSD-3-Clause
*/
module.exports = {
less: {
src: [
'src/less/icons.less',
'src/less/mixins.less',
'src/less/variables.less',
'src/less/notific8-base.less',
'src/less/legacy_theme.less',
'src/less/chicchat_theme.less',
'src/less/atomic_theme.less',
'src/less/materialish_theme.less',
'src/less/default_legacy_colors.less',
'src/less/default_chicchat_colors.less',
'src/less/default_atomic_colors.less',
'src/less/default_materialish_colors.less'
],
dest: 'src/less/notific8.less'
}
};
View

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 02540ae

Please sign in to comment.