esoftplay 0.0.135-a → 0.0.135-c

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.
Files changed (3) hide show
  1. package/bin/build.js +7 -13
  2. package/bin/cli.js +12 -13
  3. package/package.json +1 -1
package/bin/build.js CHANGED
@@ -194,19 +194,13 @@ if (fs.existsSync(packjson)) {
194
194
  })
195
195
 
196
196
  const babelconf = `module.exports = function (api) {
197
- api.cache(true);
198
-
199
- let plugins = []
200
-
201
- if (process.env["ENV"] === "prod") {
202
- plugins.push("babel-plugin-transform-remove-console");
203
- plugins.push("babel-plugin-transform-react-native-style-optimizer");
204
- }
205
- plugins.push("react-native-reanimated/plugin")
206
- return {
207
- presets: ["babel-preset-expo"],
208
- plugins
209
- };
197
+ api.cache(true);
198
+ let plugins = []
199
+ plugins.push("react-native-reanimated/plugin")
200
+ return {
201
+ presets: ["babel-preset-expo"],
202
+ plugins
203
+ };
210
204
  };
211
205
 
212
206
  `
package/bin/cli.js CHANGED
@@ -811,37 +811,36 @@ function buildPrepare(include = true) {
811
811
  }
812
812
  }
813
813
 
814
-
815
814
  function configAvailable(enabled) {
816
815
  if (fs.existsSync(gitignore)) {
817
816
  let _git = fs.readFileSync(gitignore, 'utf8')
818
817
  var ignore = "config.json"
819
- var notignore = "#config.json"
818
+ var notignore = /\#{1,}config\.json/g
820
819
  if (enabled) {
821
- _git = _git.replace(ignore, notignore)
820
+ _git = _git.replace('\n' + ignore, '#' + ignore)
822
821
  } else {
823
- _git = _git.replace(notignore, ignore)
822
+ _git = _git.replace(new RegExp(notignore), ignore)
824
823
  }
825
824
  var ignore = "config.live.json"
826
- var notignore = "#config.live.json"
825
+ var notignore = /\#{1,}config\.live\.json/g
827
826
  if (enabled) {
828
- _git = _git.replace(ignore, notignore)
827
+ _git = _git.replace('\n' + ignore, '#' + ignore)
829
828
  } else {
830
- _git = _git.replace(notignore, ignore)
829
+ _git = _git.replace(new RegExp(notignore), ignore)
831
830
  }
832
831
  var ignore = "config.debug.json"
833
- var notignore = "#config.debug.json"
832
+ var notignore = /\#{1,}config\.debug\.json/g
834
833
  if (enabled) {
835
- _git = _git.replace(ignore, notignore)
834
+ _git = _git.replace('\n' + ignore, '#' + ignore)
836
835
  } else {
837
- _git = _git.replace(notignore, ignore)
836
+ _git = _git.replace(new RegExp(notignore), ignore)
838
837
  }
839
838
  var ignore = "code-signing/"
840
- var notignore = "#code-signing/"
839
+ var notignore = /\#{1,}code-signing\//g
841
840
  if (enabled) {
842
- _git = _git.replace(ignore, notignore)
841
+ _git = _git.replace('\n' + ignore, '#' + ignore)
843
842
  } else {
844
- _git = _git.replace(notignore, ignore)
843
+ _git = _git.replace(new RegExp(notignore), ignore)
845
844
  }
846
845
  fs.writeFileSync(gitignore, _git, { encoding: 'utf8' })
847
846
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.135-a",
3
+ "version": "0.0.135-c",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",