2.0.1 • Published 5 years ago

@htmlacademy/ace-themes v2.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

ace-themes

Темы для редактора Ace

Как это готовить

После подключения в качестве зависимости и npm install, файлы тем доступны в каталоге $PROJECT_ROOT\/node\_modules/@htmlacademy/ace-themes. Из пакета экспортируется список файлов, в которых лежат темы.

Вот так, например, сейчас копируются темы из courses-core:

const copy = require('gulp-copy');

gulp.task('ace-themes:import', () => {
  const themesBase = 'node_modules/@htmlacademy/ace-themes';
  const themesDepth = themesBase.split('/').length;
  const themesDest = 'content/assets/js/ace';

  const srcFiles = require('@htmlacademy/ace-themes').
    map((s) => join(themesBase, s));

  return (
    gulp.
      src(srcFiles).
      pipe(copy(themesDest, {prefix: themesDepth}))
  );
});
2.0.1

5 years ago

2.0.0

5 years ago

1.5.6

5 years ago

1.5.5

5 years ago

1.5.4

5 years ago

1.5.3

5 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago