mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-08-01 15:45:39 +00:00
Add scripts in 'build' directory to linting config (#7676)
This commit is contained in:
@ -13,7 +13,7 @@ function buildDocs() {
|
||||
|
||||
// Note to Vladimir: Iván's never gonna uncomment the following line. He's
|
||||
// too proud of the little leaves around the code.
|
||||
//doc.setLeadingChar('@');
|
||||
// doc.setLeadingChar('@');
|
||||
|
||||
// Leaflet uses a couple of non-standard documentable things. They are not
|
||||
// important enough to be classes/namespaces of their own, and should
|
||||
|
@ -17,11 +17,11 @@ console.log('dist/leaflet.css: ', integrityCss.toString());
|
||||
|
||||
var docConfig = fs.readFileSync('docs/_config.yml').toString();
|
||||
|
||||
docConfig = docConfig.
|
||||
replace(/latest_leaflet_version:.*/, 'latest_leaflet_version: ' + version).
|
||||
replace(/integrity_hash_source:.*/, 'integrity_hash_source: "' + integritySrc.toString() + '"').
|
||||
replace(/integrity_hash_uglified:.*/, 'integrity_hash_uglified: "' + integrityUglified.toString() + '"').
|
||||
replace(/integrity_hash_css:.*/, 'integrity_hash_css: "' + integrityCss.toString() + '"');
|
||||
docConfig = docConfig
|
||||
.replace(/latest_leaflet_version:.*/, 'latest_leaflet_version: ' + version)
|
||||
.replace(/integrity_hash_source:.*/, 'integrity_hash_source: "' + integritySrc.toString() + '"')
|
||||
.replace(/integrity_hash_uglified:.*/, 'integrity_hash_uglified: "' + integrityUglified.toString() + '"')
|
||||
.replace(/integrity_hash_css:.*/, 'integrity_hash_css: "' + integrityCss.toString() + '"');
|
||||
|
||||
// console.log('New jekyll docs config: \n', docConfig);
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
// Config file for running Rollup in "normal" mode (non-watch)
|
||||
|
||||
import rollupGitVersion from 'rollup-plugin-git-version'
|
||||
import json from 'rollup-plugin-json'
|
||||
import gitRev from 'git-rev-sync'
|
||||
import pkg from '../package.json'
|
||||
import rollupGitVersion from 'rollup-plugin-git-version';
|
||||
import json from 'rollup-plugin-json';
|
||||
import gitRev from 'git-rev-sync';
|
||||
import pkg from '../package.json';
|
||||
|
||||
let {version} = pkg;
|
||||
let release;
|
||||
|
@ -1,8 +1,8 @@
|
||||
// Config file for running Rollup in "watch" mode
|
||||
// This adds a sanity check to help ourselves to run 'rollup -w' as needed.
|
||||
|
||||
import rollupGitVersion from 'rollup-plugin-git-version'
|
||||
import gitRev from 'git-rev-sync'
|
||||
import rollupGitVersion from 'rollup-plugin-git-version';
|
||||
import gitRev from 'git-rev-sync';
|
||||
|
||||
const branch = gitRev.branch();
|
||||
const rev = gitRev.short();
|
||||
|
Reference in New Issue
Block a user