Add stylus-lang-bundle updater
This commit is contained in:
parent
b851eddf9f
commit
e3345b4fcb
|
@ -47,7 +47,7 @@ var usercss = (() => {
|
||||||
},
|
},
|
||||||
stylus: {
|
stylus: {
|
||||||
preprocess(source, vars) {
|
preprocess(source, vars) {
|
||||||
return loadScript('/vendor/stylus-lang/stylus.min.js').then(() => (
|
return loadScript('/vendor/stylus-lang-bundle/stylus.min.js').then(() => (
|
||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
const varDef = Object.keys(vars).map(key => `${key} = ${vars[key].value};\n`).join('');
|
const varDef = Object.keys(vars).map(key => `${key} = ${vars[key].value};\n`).join('');
|
||||||
if (!Error.captureStackTrace) Error.captureStackTrace = () => {};
|
if (!Error.captureStackTrace) Error.captureStackTrace = () => {};
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
"lz-string-unsafe": "^1.4.4-beta",
|
"lz-string-unsafe": "^1.4.4-beta",
|
||||||
"semver-bundle": "^0.1.0",
|
"semver-bundle": "^0.1.0",
|
||||||
"stylelint-bundle": "^8.0.0",
|
"stylelint-bundle": "^8.0.0",
|
||||||
|
"stylus-lang-bundle": "^0.54.5",
|
||||||
"updates": "^4.0.0"
|
"updates": "^4.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -52,6 +52,9 @@ const files = {
|
||||||
],
|
],
|
||||||
'stylelint-bundle': [
|
'stylelint-bundle': [
|
||||||
'stylelint-bundle.min.js'
|
'stylelint-bundle.min.js'
|
||||||
|
],
|
||||||
|
'stylus-lang-bundle': [
|
||||||
|
'stylus.min.js'
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
5
vendor/README.md
vendored
5
vendor/README.md
vendored
|
@ -8,8 +8,8 @@ Using this repo, run `npm install`... the latest versions of:
|
||||||
* `jsonlint` (https://github.com/zaach/jsonlint) is installed.
|
* `jsonlint` (https://github.com/zaach/jsonlint) is installed.
|
||||||
* `less` (https://github.com/less/less.js) is installed.
|
* `less` (https://github.com/less/less.js) is installed.
|
||||||
* `lz-string-unsafe` (https://github.com/openstyles/lz-string-unsafe) is installed.
|
* `lz-string-unsafe` (https://github.com/openstyles/lz-string-unsafe) is installed.
|
||||||
* `semver-bundle` (https://github.com/openstyles/semver-bundle) is installed.<br><br>
|
* `semver-bundle` (https://github.com/openstyles/semver-bundle) is installed.
|
||||||
* **TODO**: `stylus-lang` (https://github.com/eight04/stylus-lang-bundle) is installed.<br><br>
|
* `stylus-lang` (https://github.com/openstyles/stylus-lang-bundle) is installed.<br><br>
|
||||||
* The necessary build tools are installed; see `devDependencies` in the `package.json`.
|
* The necessary build tools are installed; see `devDependencies` in the `package.json`.
|
||||||
|
|
||||||
## Running the build script
|
## Running the build script
|
||||||
|
@ -23,3 +23,4 @@ The following changes are made:
|
||||||
* `less`: The compressed `dist/less.min.js` file is copied directly into `vendor/less`.
|
* `less`: The compressed `dist/less.min.js` file is copied directly into `vendor/less`.
|
||||||
* `lz-string-unsafe`: The compressed `lz-string-unsafe.min.js` file is copied directly into `vendor/lz-string-unsafe`.
|
* `lz-string-unsafe`: The compressed `lz-string-unsafe.min.js` file is copied directly into `vendor/lz-string-unsafe`.
|
||||||
* `semver-bundle`: The `dist/semver.js` file is copied directly into `vendor/semver`.
|
* `semver-bundle`: The `dist/semver.js` file is copied directly into `vendor/semver`.
|
||||||
|
* `stylus-lang-bundle`: The `stylus.min.js` file is copied directly into `vendor/stylus-lang-bundle`.
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
http://stylus-lang.com/
|
http://stylus-lang.com/
|
||||||
https://github.com/stylus/stylus/
|
https://github.com/stylus/stylus/
|
||||||
|
https://github.com/openstyles/stylus-lang-bundle
|
||||||
|
|
||||||
https://github.com/stylus/stylus/blob/dev/LICENSE
|
https://github.com/openstyles/stylus-lang-bundle/blob/master/LICENSE
|
||||||
|
|
||||||
|
|
||||||
The MIT License
|
The MIT License
|
5
vendor/stylus-lang-bundle/README.md
vendored
Normal file
5
vendor/stylus-lang-bundle/README.md
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
## Stylus-lang-bundle v0.0.0
|
||||||
|
|
||||||
|
stylus-lang-bundle installed via npm - source repo:
|
||||||
|
|
||||||
|
https://github.com/openstyles/stylus-lang-bundle/blob/v0.0.0/stylus.min.js
|
Loading…
Reference in New Issue
Block a user