2.0.1 • Published 6 years ago

@htmlacademy/ace-themes v2.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 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

6 years ago

2.0.0

6 years ago

1.5.6

6 years ago

1.5.5

6 years ago

1.5.4

6 years ago

1.5.3

6 years ago

1.5.2

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago