Socket
Socket
Sign inDemoInstall

topcoat-radio-button

Package Overview
Dependencies
3
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

css/topcoat-radio-button-desktop-dark.css

119

Gruntfile.js

@@ -27,3 +27,3 @@ /**

pkg: grunt.file.readJSON('package.json'),
clean: {

@@ -34,14 +34,54 @@ release: ['css'],

stylus: {
compile: {
options: {
paths: ['node_modules/topcoat-utils/src/mixins', 'node_modules/topcoat-radio-button-base/src', 'node_modules/topcoat-theme/src', 'node_modules/topcoat-theme/src/includes'],
import: ['theme-topcoat-mobile-light', 'global', 'fonts', 'nib'],
compress: false
},
files: [{
src: 'src/topcoat-radio-button.styl',
dest: 'css/topcoat-radio-button.css'
}]
}
mobilelight: {
options: {
paths: ['node_modules/topcoat-radio-button-base/src', 'node_modules/topcoat-utils/src/mixins', 'node_modules/topcoat-theme/src'],
import: ['theme-topcoat-mobile-light', 'nib'],
compress: false
},
files: [{
src: 'src/topcoat-radio-button.styl',
dest: 'css/topcoat-radio-button-mobile-light.css'
}]
},
mobiledark: {
options: {
paths: ['node_modules/topcoat-radio-button-base/src', 'node_modules/topcoat-utils/src/mixins', 'node_modules/topcoat-theme/src'],
import: ['theme-topcoat-mobile-dark', 'nib'],
compress: false
},
files: [{
src: 'src/topcoat-radio-button.styl',
dest: 'css/topcoat-radio-button-mobile-dark.css'
}]
},
desktoplight: {
options: {
paths: ['node_modules/topcoat-radio-button-base/src', 'node_modules/topcoat-utils/src/mixins', 'node_modules/topcoat-theme/src'],
import: ['theme-topcoat-desktop-light', 'nib'],
compress: false
},
files: [{
src: 'src/topcoat-radio-button.styl',
dest: 'css/topcoat-radio-button-desktop-light.css'
}]
},
desktopdark: {
options: {
paths: ['node_modules/topcoat-radio-button-base/src', 'node_modules/topcoat-utils/src/mixins', 'node_modules/topcoat-theme/src'],
import: ['theme-topcoat-desktop-dark', 'nib'],
compress: false
},
files: [{
src: 'src/topcoat-radio-button.styl',
dest: 'css/topcoat-radio-button-desktop-dark.css'
}]
}
},
topdoc: {

@@ -51,5 +91,9 @@ usageguides: {

source: 'css',
destination: './',
template: '<%= pkg.topdoc.template %>',
templateData: '<%= pkg.topdoc.templateData %>'
destination: "demo",
template: "node_modules/topdoc-theme/",
templateData: {
"title": "Topcoat",
"subtitle": "CSS for clean and fast web apps",
"homeURL": "http://topcoat.io"
}
}

@@ -61,5 +105,5 @@ }

expand: true,
cwd: 'css',
cwd: 'release/css/',
src: ['*.css', '!*.min.css'],
dest: 'css',
dest: 'release/css/',
ext: '.min.css'

@@ -69,24 +113,17 @@ }

copy: {
release: {
files: [{
expand: true,
flatten: true,
src: 'node_modules/topcoat-theme/font/**/*',
dest: 'font'
}]
topdoc: {
usageguides: {
options: {
source: 'css',
destination: "demo",
template: "node_modules/topdoc-theme/",
templateData: {
"title": "Topcoat",
"subtitle": "CSS for clean and fast web apps",
"homeURL": "http://topcoat.io"
}
}
}
},
jade: {
compile: {
expand: true,
cwd: 'test/perf',
src: ['*.jade'],
dest: 'test/perf/',
ext: '.test.html'
}
},
simplemocha: {

@@ -108,15 +145,11 @@ all: {

grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-topdoc');
// Default task.
grunt.registerTask('default', ['clean', 'build', 'test', 'release']);
grunt.registerTask('build', ['stylus', 'jade']);
grunt.registerTask('default', ['clean', 'build', 'test','release']);
grunt.registerTask('build', ['stylus']);
grunt.registerTask('test', ['simplemocha']);
grunt.registerTask('release', ['cssmin', 'copy', 'topdoc']);
grunt.registerTask('release', ['cssmin', 'topdoc']);
};
{
"name": "topcoat-radio-button",
"version": "0.1.1",
"version": "0.1.2",
"description": "Topcoat radio button",
"main": "index.html",
"topdoc": {
"template": "https://github.com/topcoat/topdoc-theme",
"templateData": {
"title": "Topcoat",
"subtitle": "CSS for clean and fast web apps",
"download": {
"url": "https://github.com/topcoat/topcoat/archive/v0.6.0.zip",
"label": "Download version 0.6.0"
},
"homeURL": "http://topcoat.io",
"siteNav": [
{
"url": "http://topcoat.io/topcoat",
"text": "Demo"
},
{
"url": "http://bench.topcoat.io/",
"text": "Benchmarks"
},
{
"url": "http://topcoat.io/blog",
"text": "Blog"
}
]
}
},
"directories": {

@@ -61,12 +35,11 @@ "test": "test",

"grunt-contrib-cssmin": "~0.6.0",
"grunt-contrib-jade": "~0.5.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-simple-mocha": "~0.4.0",
"grunt-topdoc": "~0.0.1"
"grunt-topdoc": "~0.1.3",
"topdoc-theme": "~0.2.6"
},
"dependencies": {
"topcoat-utils": "~0.1.1",
"topcoat-theme": "~0.5.3",
"topcoat-radio-button-base": "~0.1.1"
"topcoat-radio-button-base": "~0.1.1",
"topcoat-theme": "~0.5.9"
}
}

@@ -24,16 +24,47 @@ /**

describe('Topcoat Radio Button', function() {
describe('Topcoat radio-button', function() {
'use strict';
it('should output correct css', function() {
var actual = grunt.file.read('css/topcoat-radio-button.css');
var expected = grunt.file.read('test/expected/topcoat-radio-button.css');
it('should output correct desktop dark css', function() {
var actual = grunt.file.read('css/topcoat-radio-button-desktop-dark.css');
var expected = grunt.file.read('test/expected/topcoat-radio-button-desktop-dark.css');
assert.equal(actual, expected, 'should generate correct css');
});
it('should not have any unrendered variables', function() {
var actual = grunt.file.read('css/topcoat-radio-button.css');
it('should output correct desktop light css', function() {
var actual = grunt.file.read('css/topcoat-radio-button-desktop-light.css');
var expected = grunt.file.read('test/expected/topcoat-radio-button-desktop-light.css');
assert.equal(actual, expected, 'should generate correct css');
});
it('should output correct mobile dark css', function() {
var actual = grunt.file.read('css/topcoat-radio-button-mobile-dark.css');
var expected = grunt.file.read('test/expected/topcoat-radio-button-mobile-dark.css');
assert.equal(actual, expected, 'should generate correct css');
});
it('should output correct mobile light css', function() {
var actual = grunt.file.read('css/topcoat-radio-button-mobile-light.css');
var expected = grunt.file.read('test/expected/topcoat-radio-button-mobile-light.css');
assert.equal(actual, expected, 'should generate correct css');
});
it('should not have any unrendered variables desktop dark', function() {
var actual = grunt.file.read('css/topcoat-radio-button-desktop-dark.css');
assert.equal(actual.match(/var-[a-z-]*[a-z]+/g), null, 'should not have missing vars');
});
it('should not have any unrendered variables desktop light', function() {
var actual = grunt.file.read('css/topcoat-radio-button-desktop-light.css');
assert.equal(actual.match(/var-[a-z-]*[a-z]+/g), null, 'should not have missing vars');
});
it('should not have any unrendered variables mobile dark', function() {
var actual = grunt.file.read('css/topcoat-radio-button-mobile-dark.css');
assert.equal(actual.match(/var-[a-z-]*[a-z]+/g), null, 'should not have missing vars');
});
it('should not have any unrendered variables mobile light', function() {
var actual = grunt.file.read('css/topcoat-radio-button-mobile-light.css');
assert.equal(actual.match(/var-[a-z-]*[a-z]+/g), null, 'should not have missing vars');
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc