-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removes gulp dependencies adds specific npm scripts to run sass tasks and update version.ts adds eslint and stylelint rules to replace setting license header via gulp scripts
- Loading branch information
1 parent
843e3d8
commit 48449c4
Showing
248 changed files
with
581 additions
and
2,042 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"stylelint-config-standard-scss", | ||
"stylelint-config-prettier-scss" | ||
] | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-5.83 KB
.yarn/cache/gulp-append-prepend-npm-1.0.9-e2e3ac33e6-89297beb99.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-8.43 KB
.yarn/cache/gulp-header-license-npm-1.0.12-1e5613f75c-2727d48cd8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.93 KB
.yarn/cache/is-fullwidth-code-point-npm-1.0.0-0e436ba1ef-4d46a7465a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.64 KB
.yarn/cache/known-css-properties-npm-0.26.0-1d02b65fc1-e706f4af9d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.75 KB
.yarn/cache/lodash._basetostring-npm-3.0.1-0f248f55e7-3920297b9c.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-3.84 KB
.yarn/cache/lodash._isiterateecall-npm-3.0.9-fc48f77295-95ace291d0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.67 KB
.yarn/cache/lodash._reinterpolate-npm-3.0.0-3c62ca439e-06d2d5f331.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-3.04 KB
.yarn/cache/lodash.templatesettings-npm-3.1.1-b4cd2d0c7f-949465509e.zip
Binary file not shown.
Binary file removed
BIN
-5.68 KB
.yarn/cache/lodash.templatesettings-npm-4.2.0-15fbdebcf4-863e025478.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-3.02 KB
.yarn/cache/ordered-read-streams-npm-1.0.1-c343f624a4-7558ac1acd.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-3.34 KB
.yarn/cache/require-main-filename-npm-1.0.1-a5028aafe6-1fef30754d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-3.05 KB
.yarn/cache/semver-greatest-satisfied-range-npm-1.1.0-9e28cf55d1-0aa15bbf69.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-4.37 KB
.yarn/cache/undertaker-registry-npm-1.0.1-15feb2bf72-e090474e6a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-2.33 KB
.yarn/cache/vinyl-sourcemaps-apply-npm-0.2.1-5e1bcaa3c3-c1a81b085f.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
const sass = require('sass'); | ||
const path = require('path'); | ||
const fs = require('fs-extra'); | ||
const CleanCSS = require('clean-css'); | ||
|
||
const cleaner = new CleanCSS({}); | ||
const ignoreDirs = ['node_modules', 'samples', 'assets']; | ||
|
||
const cssFile = `// THIS FILE IS AUTO GENERATED | ||
// ANY CHANGES WILL BE LOST DURING BUILD | ||
// MODIFY THE .SCSS FILE INSTEAD | ||
import { css, CSSResult } from 'lit'; | ||
/** | ||
* exports lit-element css | ||
* @export styles | ||
*/ | ||
export const styles: CSSResult[] = [ | ||
css\` | ||
[[CSS]] | ||
\`];`; | ||
|
||
const getFiles = (filter, startPath = 'src') => { | ||
let results = []; | ||
|
||
if (!fs.existsSync(startPath)) { | ||
console.log('no dir ', startPath); | ||
return; | ||
} | ||
|
||
var files = fs.readdirSync(startPath); | ||
for (var i = 0; i < files.length; i++) { | ||
var filename = path.join(startPath, files[i]); | ||
var stat = fs.lstatSync(filename); | ||
if (stat.isDirectory() && ignoreDirs.indexOf(path.basename(filename)) < 0) { | ||
results = [...results, ...getFiles(filter, filename)]; //recurse | ||
} else if (filename.indexOf(filter) >= 0) { | ||
results.push(filename); | ||
} | ||
} | ||
|
||
return results; | ||
}; | ||
|
||
getFiles('.scss').forEach(file => { | ||
console.log(`compiling ${file}`); | ||
const result = sass.compile(file); | ||
const css = cleaner.minify(result.css).styles; | ||
fs.writeFileSync(file.replace('.scss', '-css.ts'), cssFile.replace('[[CSS]]', css)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.