punchcutter 2.0.18 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.cjs CHANGED
@@ -3,11 +3,14 @@ module.exports = {
3
3
  env: {
4
4
  browser: true,
5
5
  jquery: true,
6
- mocha: true,
7
6
  node: true
8
7
  },
9
8
  plugins: ['prettier'],
10
- extends: ['eslint:recommended', 'prettier'],
9
+ extends: [
10
+ 'eslint:recommended',
11
+ 'plugin:@typescript-eslint/recommended',
12
+ 'prettier'
13
+ ],
11
14
  rules: {
12
15
  'no-undef': 'error',
13
16
  'no-unsafe-finally': 'error',
@@ -15,9 +18,9 @@ module.exports = {
15
18
  'no-unsafe-optional-chaining': 'error',
16
19
  'no-var': 'error'
17
20
  },
18
- parser: 'espree',
21
+ parser: '@typescript-eslint/parser',
19
22
  parserOptions: {
20
- ecmaVersion: 2015,
23
+ ecmaVersion: 2017,
21
24
  requireConfigFile: true,
22
25
  sourceType: 'module'
23
26
  }
package/.prettierrc.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  module.exports = {
2
+ arrowParens: 'always',
3
+ bracketSameLine: false,
4
+ bracketSpacing: false,
5
+ endOfLine: 'lf',
2
6
  printWidth: 80,
3
- tabWidth: 2,
4
- useTabs: false,
5
7
  semi: true,
8
+ singleAttributePerLine: false,
6
9
  singleQuote: true,
10
+ tabWidth: 2,
7
11
  trailingComma: 'none',
8
- bracketSpacing: false,
9
- bracketSameLine: false,
10
- arrowParens: 'always',
11
- endOfLine: 'lf',
12
- parser: 'espree'
12
+ useTabs: false
13
13
  };
@@ -8,7 +8,7 @@ const globby = require('globby');
8
8
  const path = require('path');
9
9
  const postcss = require('postcss');
10
10
  const Promise = require('bluebird');
11
- const sass = require('node-sass');
11
+ const sass = require('sass-embedded');
12
12
  const Spritesmith = require('spritesmith');
13
13
  const nunjucks = require('nunjucks');
14
14
  const packageJson = require('../package.json');
@@ -148,17 +148,10 @@ module.exports = function (config) {
148
148
  Promise.mapSeries(config.build.stylesheets, function (stylesheet) {
149
149
  if (stylesheet === 'css') {
150
150
  return postcss([autoprefixer(config.build.autoprefixer)])
151
- .process(
152
- sass
153
- .renderSync({
154
- data
155
- })
156
- .css.toString(),
157
- {
158
- from: undefined,
159
- to: cssPath
160
- }
161
- )
151
+ .process(sass.compileString(data).css, {
152
+ from: undefined,
153
+ to: cssPath
154
+ })
162
155
  .then((result) => fs.outputFile(cssPath, result.css, 'utf-8'));
163
156
  }
164
157
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "punchcutter",
3
- "version": "2.0.18",
3
+ "version": "2.1.1",
4
4
  "description": "Build fonts",
5
5
  "main": "lib/punchcutter.js",
6
6
  "repository": {
@@ -8,7 +8,7 @@
8
8
  "url": "git://github.com/netbek/punchcutter"
9
9
  },
10
10
  "scripts": {
11
- "format-js": "prettier --parser espree --write \"{lib,test}/*.js\"",
11
+ "format-js": "prettier --parser babel --write \"lib/**/*.js\"",
12
12
  "test": "vitest run"
13
13
  },
14
14
  "author": {
@@ -26,26 +26,28 @@
26
26
  "chalk": "4.1.2",
27
27
  "cheerio": "0.22.0",
28
28
  "directory-colorfy": "https://github.com/netbek/directory-colorfy.git#netbek-jsdom-9",
29
- "eslint": "8.57.1",
30
- "eslint-config-prettier": "9.1.0",
31
- "eslint-plugin-prettier": "5.2.1",
32
- "espree": "10.3.0",
33
29
  "fs-extra": "11.2.0",
34
30
  "globby": "9.2.0",
35
31
  "grunt": "1.6.1",
36
32
  "grunt-webfont": "git+https://github.com/netbek/grunt-webfont.git#netbek-logger-option",
37
33
  "lodash": "4.17.21",
38
- "node-sass": "9.0.0",
39
34
  "nunjucks": "3.2.4",
40
35
  "postcss": "8.4.49",
41
36
  "prettier": "3.3.3",
42
37
  "replace-ext": "2.0.0",
38
+ "sass-embedded": "1.81.0",
43
39
  "sharp": "0.33.5",
44
40
  "spritesmith": "3.5.1",
45
41
  "svgo": "2.8.0",
46
42
  "svgstore": "3.0.1"
47
43
  },
48
44
  "devDependencies": {
45
+ "@typescript-eslint/eslint-plugin": "7.18.0",
46
+ "@typescript-eslint/parser": "7.18.0",
47
+ "eslint": "8.57.1",
48
+ "eslint-config-prettier": "9.1.0",
49
+ "eslint-plugin-prettier": "5.2.1",
50
+ "typescript": "5.6.3",
49
51
  "vitest": "2.1.5"
50
52
  }
51
53
  }