@copart/ops-tool-kit 1.12.0-alpha.10 → 1.12.0-alpha.12
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/README.md +11 -11
- package/bin/cli.js +19 -19
- package/dist/ops-tool-kit.js +43 -202
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +113 -113
- package/changelog.md +0 -40
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# @copart/ops-tool-kit
|
|
2
|
-
|
|
3
|
-
```js
|
|
4
|
-
import { AppFrame } from '@copart/ops-tool-kit'
|
|
5
|
-
|
|
6
|
-
<AppFrame>
|
|
7
|
-
{/* Your app here. */}
|
|
8
|
-
</AppFrame>
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
Note: Be sure to have APPLICATION_NAME and PROFILES environment variables set.
|
|
1
|
+
# @copart/ops-tool-kit
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
import { AppFrame } from '@copart/ops-tool-kit'
|
|
5
|
+
|
|
6
|
+
<AppFrame>
|
|
7
|
+
{/* Your app here. */}
|
|
8
|
+
</AppFrame>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Note: Be sure to have APPLICATION_NAME and PROFILES environment variables set.
|
package/bin/cli.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
const fs = require('fs')
|
|
2
|
-
const parseArgs = require('minimist')
|
|
3
|
-
const pkg = require(`${process.cwd()}/package.json`)
|
|
4
|
-
|
|
5
|
-
const args = parseArgs(process.argv.slice(2))
|
|
6
|
-
const destination = args.destination || './public/meta.json'
|
|
7
|
-
const filename = destination.match(/[^\\/]+$/)[0]
|
|
8
|
-
|
|
9
|
-
const jsonData = JSON.stringify({
|
|
10
|
-
version: pkg.version,
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
fs.writeFile(destination, jsonData, (err) => {
|
|
14
|
-
if (err) {
|
|
15
|
-
console.log(`An error occured while writing JSON Object to ${filename}`)
|
|
16
|
-
return console.log(err)
|
|
17
|
-
}
|
|
18
|
-
console.log(`${filename} file has been saved with latest version number`)
|
|
19
|
-
})
|
|
1
|
+
const fs = require('fs')
|
|
2
|
+
const parseArgs = require('minimist')
|
|
3
|
+
const pkg = require(`${process.cwd()}/package.json`)
|
|
4
|
+
|
|
5
|
+
const args = parseArgs(process.argv.slice(2))
|
|
6
|
+
const destination = args.destination || './public/meta.json'
|
|
7
|
+
const filename = destination.match(/[^\\/]+$/)[0]
|
|
8
|
+
|
|
9
|
+
const jsonData = JSON.stringify({
|
|
10
|
+
version: pkg.version,
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
fs.writeFile(destination, jsonData, (err) => {
|
|
14
|
+
if (err) {
|
|
15
|
+
console.log(`An error occured while writing JSON Object to ${filename}`)
|
|
16
|
+
return console.log(err)
|
|
17
|
+
}
|
|
18
|
+
console.log(`${filename} file has been saved with latest version number`)
|
|
19
|
+
})
|