1.2 KiB
1.2 KiB
Helper Scripts for Ace
To use this you need to install node.js. and run npm install
in this directory.
add_mode.js
Run
node add_mode.js ModeName "extension1|extension2|^FullName"
to create all the files needed for a new mode named ModeName
this adds stubs for:
ace/mode/mode_name.js
ace/mode/mode_name_hightlight_rules.js
ace/snippets/mode_name.js
ace/demo/kitchen_sink/docs/mode_name.extension1
and adds entry for the new mode to ace/ext/modelist.js
tmlanguage.js
node tmlanguage.js ./templates/dummy.JSON-tmLanguage
update_deps.js
To update jshint
to new version:
- Clone last version from https://github.com/jshint/jshint
- Replace all
lodash
withunderscore
in requires injshint/src/*.js
- Add
_.slice = require("lodash.slice");
tosrc/scope-manager.js
aftervar _ = ...
- Add
_.clone = require("lodash.clone");
tosrc/jshint.js
aftervar _ = ...
- Add
"underscore": latest "lodash.clone": "^4.5.0", "lodash.slice": "^4.2.0"
topackage.json
, removelodash
and runnpm i
- Change in
ace/tool/update_deps.js
jshint pathdeps.jshint.browserify.path
with your path to changed jshint - Run
node update_deps.js jshint