Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polymer-project-config

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polymer-project-config - npm Package Compare versions

Comparing version 3.7.0 to 3.8.0

3

CHANGELOG.md

@@ -11,2 +11,5 @@ # Change Log

## [3.8.0] - 2018-01-23
* Updated the `build` options `js-minify`, `js-compile`, `css-minify` and `html-minify` to support an object with `excludes` property to list specific files to exclude from minification or compilation.
## [3.7.0] - 2018-01-01

@@ -13,0 +16,0 @@ * Added new option: `autoBasePath`. This new flag sets `basePath: true` on all builds. See that option for more details.

20

lib/builds.d.ts

@@ -96,3 +96,6 @@ /**

/** Minify HTMl by removing comments and whitespace. */
minify?: boolean;
minify?: boolean | {
/** HTML files listed here will not be minified. */
excludes?: string[];
};
};

@@ -102,3 +105,6 @@ /** Options for processing CSS. */

/** Minify inlined and external CSS. */
minify?: boolean;
minify?: boolean | {
/** CSS files listed here will not be minified. */
excludes?: string[];
};
};

@@ -108,5 +114,11 @@ /** Options for processing JavaScript. */

/** Minify inlined and external JavaScript. */
minify?: boolean;
minify?: boolean | {
/** JavaScript files listed here will not be minified. */
excludes?: string[];
};
/** Use babel to compile all ES6 JS down to ES5 for older browsers. */
compile?: boolean;
compile?: boolean | {
/** JavaScript files listed here will not be compiled. */
excludes?: string[];
};
};

@@ -113,0 +125,0 @@ /**

@@ -105,4 +105,20 @@ {

"minify": {
"description": "Minify inlined and external CSS.",
"type": "boolean"
"anyOf": [
{
"properties": {
"excludes": {
"description": "CSS files listed here will not be minified.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
{
"type": "boolean"
}
],
"description": "Minify inlined and external CSS."
}

@@ -116,4 +132,20 @@ },

"minify": {
"description": "Minify HTMl by removing comments and whitespace.",
"type": "boolean"
"anyOf": [
{
"properties": {
"excludes": {
"description": "HTML files listed here will not be minified.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
{
"type": "boolean"
}
],
"description": "Minify HTMl by removing comments and whitespace."
}

@@ -131,8 +163,40 @@ },

"compile": {
"description": "Use babel to compile all ES6 JS down to ES5 for older browsers.",
"type": "boolean"
"anyOf": [
{
"properties": {
"excludes": {
"description": "JavaScript files listed here will not be compiled.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
{
"type": "boolean"
}
],
"description": "Use babel to compile all ES6 JS down to ES5 for older browsers."
},
"minify": {
"description": "Minify inlined and external JavaScript.",
"type": "boolean"
"anyOf": [
{
"properties": {
"excludes": {
"description": "JavaScript files listed here will not be minified.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
{
"type": "boolean"
}
],
"description": "Minify inlined and external JavaScript."
}

@@ -139,0 +203,0 @@ },

{
"name": "polymer-project-config",
"version": "3.7.0",
"version": "3.8.0",
"description": "reads, validates, and shapes your polymer.json project configuration",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -110,3 +110,6 @@ /**

/** Minify HTMl by removing comments and whitespace. */
minify?: boolean
minify?: boolean|{
/** HTML files listed here will not be minified. */
excludes?: string[],
},
};

@@ -117,3 +120,6 @@

/** Minify inlined and external CSS. */
minify?: boolean
minify?: boolean|{
/** CSS files listed here will not be minified. */
excludes?: string[],
},
};

@@ -124,6 +130,12 @@

/** Minify inlined and external JavaScript. */
minify?: boolean,
minify?: boolean|{
/** JavaScript files listed here will not be minified. */
excludes?: string[],
},
/** Use babel to compile all ES6 JS down to ES5 for older browsers. */
compile?: boolean
compile?: boolean|{
/** JavaScript files listed here will not be compiled. */
excludes?: string[],
}
};

@@ -130,0 +142,0 @@

@@ -652,3 +652,33 @@ /**

browserCapabilities: ['es2015'],
basePath: true
basePath: true,
html: {
minify: {
excludes: [
'human-readable-example.html',
'weird-ie-comments-issue.html'
]
}
},
css: {
minify: {
excludes: [
'css/human-readable-example.css',
'css/advanced-syntax.css'
]
}
},
js: {
minify: {
excludes: [
'js/unminifiable.js',
'js/already-minified.js'
]
},
compile: {
excludes: [
'js/breaks-when-compiled.js',
'js/no-compilation-necessary.js'
]
}
}
},

@@ -655,0 +685,0 @@ ],

@@ -25,3 +25,21 @@ {

],
"basePath": true
"basePath": true,
"js": {
"compile": {
"excludes": ["js/breaks-when-compiled.js", "js/no-compilation-necessary.js"]
},
"minify": {
"excludes": ["js/unminifiable.js", "js/already-minified.js"]
}
},
"html": {
"minify": {
"excludes": ["human-readable-example.html", "weird-ie-comments-issue.html"]
}
},
"css": {
"minify": {
"excludes": ["css/human-readable-example.css", "css/advanced-syntax.css"]
}
}
}

@@ -28,0 +46,0 @@ ],

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc