Start of hogfather code.
This commit is contained in:
26
static/hogfather.js
Normal file
26
static/hogfather.js
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Copyright 2015, Ian Gulliver
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @constructor
|
||||||
|
* @param {Cosmopolite} cosmo
|
||||||
|
* @param {string} name
|
||||||
|
*/
|
||||||
|
var Hogfather = function(cosmo, name) {
|
||||||
|
};
|
||||||
@@ -6,11 +6,24 @@ curl \
|
|||||||
--data output_format=json \
|
--data output_format=json \
|
||||||
--data output_info=errors \
|
--data output_info=errors \
|
||||||
--data output_info=warnings \
|
--data output_info=warnings \
|
||||||
--data language=ECMASCRIPT6 \
|
--data language=ECMASCRIPT5 \
|
||||||
--data warning_level=verbose \
|
--data warning_level=verbose \
|
||||||
--data-urlencode "js_code@cosmopolite.js" \
|
--data-urlencode "js_code@cosmopolite.js" \
|
||||||
http://closure-compiler.appspot.com/compile
|
http://closure-compiler.appspot.com/compile
|
||||||
echo
|
echo
|
||||||
|
|
||||||
gjslint --strict cosmopolite.js
|
curl \
|
||||||
|
--silent \
|
||||||
|
--data compilation_level=ADVANCED_OPTIMIZATIONS \
|
||||||
|
--data output_format=json \
|
||||||
|
--data output_info=errors \
|
||||||
|
--data output_info=warnings \
|
||||||
|
--data language=ECMASCRIPT5 \
|
||||||
|
--data warning_level=verbose \
|
||||||
|
--data externs_url=https://www.cosmopolite.org/externs/cosmopolite.js \
|
||||||
|
--data-urlencode "js_code@hogfather.js" \
|
||||||
|
http://closure-compiler.appspot.com/compile
|
||||||
|
echo
|
||||||
|
|
||||||
|
gjslint --strict cosmopolite.js hogfather.js
|
||||||
gjslint --strict --nojsdoc test.js
|
gjslint --strict --nojsdoc test.js
|
||||||
|
|||||||
Reference in New Issue
Block a user