render-script 0.0.1 → 0.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "render-script",
3
- "version": "0.0.1",
3
+ "version": "0.0.6",
4
4
  "main": "./lib/index.cjs",
5
5
  "type": "module",
6
6
  "author": {
@@ -16,10 +16,12 @@
16
16
  "scripts": {
17
17
  "lint": "eslint . --ext .cjs --ext .mjs",
18
18
  "lint:fix": "npm run lint -- --fix",
19
+ "test": "cross-env NODE_ENV=test mocha test --recursive --verbose --color",
20
+ "gulp": "gulp --color",
19
21
  "clean": "rimraf lib",
20
22
  "build": "npm run babel",
21
23
  "babel": "babel src -d lib --out-file-extension .cjs",
22
- "pre-commit": "npm run lint && npm run build && git add lib",
24
+ "pre-commit": "npm run lint && npm run build && git add lib && npm run gulp -- pre-commit",
23
25
  "prepublishOnly": "npm run build",
24
26
  "prebuild": "npm run clean"
25
27
  },
@@ -32,18 +34,23 @@
32
34
  "@babel/eslint-parser": "^7.15.8",
33
35
  "@babel/preset-env": "^7.15.8",
34
36
  "babel-plugin-module-resolver": "^4.1.0",
37
+ "chai": "^4.3.4",
35
38
  "core-js": "^3.18.3",
39
+ "cross-env": "^7.0.3",
36
40
  "eslint": "7.12.1",
37
41
  "eslint-config-standard": "^16.0.3",
38
42
  "eslint-import-resolver-babel-module": "^5.3.1",
39
43
  "eslint-plugin-import": "^2.25.2",
44
+ "eslint-plugin-mocha": "^9.0.0",
40
45
  "eslint-plugin-node": "^11.1.0",
41
46
  "eslint-plugin-promise": "^5.1.0",
47
+ "gulp": "^4.0.2",
42
48
  "husky": "^7.0.2",
49
+ "mocha": "^9.1.3",
43
50
  "rimraf": "^3.0.2"
44
51
  },
45
52
  "imports": {
46
- "#~": "./src/index.mjs"
53
+ "#build/gulp/*": "./build/gulp/*.mjs"
47
54
  },
48
55
  "exports": {
49
56
  "import": "./src/index.mjs",
package/src/index.mjs CHANGED
@@ -1,3 +1,10 @@
1
+ /*!
2
+ * renderapp.js
3
+ * http://renderapp.co
4
+ *
5
+ * Copyright 2021 Renderapp Limited
6
+ */
7
+
1
8
  import debug from 'debug'
2
9
 
3
10
  const log = debug('render-script')
package/.eslintignore DELETED
@@ -1,2 +0,0 @@
1
- .circleci
2
- lib
package/.eslintrc DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "standard",
3
- "parser": "@babel/eslint-parser",
4
- "parserOptions": {
5
- "ecmaVersion": 2020,
6
- "sourceType": "module"
7
- },
8
- "settings": {
9
- "import/extensions": [".mjs", ".cjs"],
10
- "import/resolver": {
11
- "babel-module": {}
12
- }
13
- }
14
- }
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
- npm run pre-commit
package/babel.config.cjs DELETED
@@ -1,54 +0,0 @@
1
- const debug = require('debug')
2
-
3
- const log = debug('render-script')
4
-
5
- const {
6
- env: {
7
- NODE_ENV = 'development'
8
- }
9
- } = process
10
-
11
- log('`render-script` is awake')
12
-
13
- function env () {
14
- log({ NODE_ENV })
15
-
16
- return (
17
- NODE_ENV === 'production'
18
- )
19
- }
20
-
21
- const presets = [
22
- [
23
- '@babel/env', {
24
- useBuiltIns: 'usage',
25
- targets: {
26
- node: 'current'
27
- },
28
- corejs: 3
29
- }
30
- ]
31
- ]
32
-
33
- const plugins = [
34
- [
35
- 'module-resolver', {
36
- root: ['.'],
37
- cwd: 'babelrc',
38
- alias: {
39
- '~': './src'
40
- }
41
- }
42
- ]
43
- ]
44
-
45
- module.exports = (api) => {
46
- if (api) api.cache.using(env)
47
-
48
- return {
49
- compact: true,
50
- comments: false,
51
- presets,
52
- plugins
53
- }
54
- }