Skip to content

Releases: basisjs/basisjs-tools-build

1.3.0

16 Feb 15:27
Compare
Choose a tag to compare
  • NEW: basic plugins support similar to dev-server (replacement for preprocess settings). See example basisjs-tools-babel-plugin by @wuzyk
    • preprocess and extFileTypes options aren't supported in basis.config anymore
  • NEW: support for srcset attribute on <img> and <source> elements (for HTML and templates)
  • extract: better warn message construct when process arguments from basis.dev.warn() and basis.dev.error()
  • lint: fix output warnings with no file (wrongly omit before)

1.2.1

21 Jan 10:31
Compare
Choose a tag to compare
  • extract: don't warn on ids with no css rulesets for them (#3)

1.2.0

21 Jan 09:45
Compare
Choose a tag to compare
  • lint: check for top level duplicate var declarations
  • build: don't exit on closure-compiler notify message about stdin input
  • extract: don't warn on unknown type for <script> (since could be used for templates)
  • bump dependencies

1.1.0

23 Nov 15:48
Compare
Choose a tag to compare
  • build: new option --silent to prevent any output to stdout
  • build: new value none for --target option (prevents file writing to FS)
  • build: don't minimize id names when --css-optimize-names is using, since unsafe as tools don't found every id usage case for now

1.0.2

22 Nov 17:37
Compare
Choose a tag to compare
  • extract: return paths relative to base
  • extract: remove old basis.js l10n support in result (prior to 1.0)
  • extract: fix require resolving for paths w/o extension for basis.js 1.5

1.0.1

10 Nov 12:48
Compare
Choose a tag to compare
  • bump csso version to 1.4.2

1.0

08 Nov 20:01
Compare
Choose a tag to compare
1.0

Initial release as separate package

extract

  • output app profile by default
  • doesn't create any file anymore
  • to output extract log --target log should be used
  • remove none value for --target
  • no more AST modifications on extract (basis.resource, basis.require etc.)
  • make basis.js config parse error as fatal
  • support for images in <meta name="msapplication-*">
  • fix: exception on html extract when <link> has no href attribute
  • make template isolate prefix reproducible (preparation for script and style freeze, basis.js support required)
  • take in account special comment (/* basisjs-tools:disable-warnings */) in css to avoid warnings for this file
  • improve warnings about missed files
  • warn on broken links (fatal) in some missed hard cases (didn't check before):
    • reference by namespace in template, i.e. <b:include src="foo.bar"/>
    • broken links in markup l10n tokens (warn doesn't add to flow)
  • drop support for basis.l10n v1 (basis.js prior 1.0)
  • add some checks for duplicate parameter/property names in strint mode
  • add some ES6 globals to dict

build

  • return promise
  • add support to work as child process
  • add parallel run support
  • add presets support
  • basic --single-file implementation
  • fix --css-inline-image option
  • remove zip target
  • make command multi-run ready
  • support for images in <meta name="msapplication-*">
  • prevent accident original files rewrite
  • compress implicit template names for l10n markup tokens (reduce build size)
  • don't set type="text/javascript" for <script> in resulting html

lint

  • return promise
  • add support to work as child process
  • add parallel run support
  • add presets support
  • make possible set default reporter (console) via option
  • implement junit reporter

Misc

  • new command find that resolve filename by basis.js file reference
  • trailing slash is not adding to --base and --output values
  • --output option available only for build command
  • new option --theme that specify what themes should used for result
    (all themes by default), for now it's just ignore warnings for not in
    list themes
  • remove options:
    • --js-build-mode
    • --(css-|js-)no-single-file
    • --css-cut-unused
    • --tmpl-pregenerate
    • --js-info
  • use basisjs-tools-ast and basisjs-tools-config as dependencies
  • strip code for basis.js prior 1.0 and related refactoring
  • set min node.js version to 0.12
  • many other bug fixes, improvements and refactoring