@artisan-commerce/types 0.1.0-canary.148.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.
Files changed (3) hide show
  1. package/README.md +93 -0
  2. package/dist/bundle.d.ts +3811 -0
  3. package/package.json +42 -0
package/README.md ADDED
@@ -0,0 +1,93 @@
1
+ ## Node Library Boilerplate
2
+
3
+ This boilerplate was made to facilitate the creation of server-side or client-side node application. It comes with a powerful webpack & typescript configuration out of the box.
4
+
5
+ ## New Project Configuration steps:
6
+
7
+ 1. Change your project name and description in package.json.
8
+ 1. Change default constants value in `src/config/constants.ts`.
9
+ 1. In .env.[ENV] change the ENV variable to the environment you are currently developing for.
10
+ 1. If you want to support the require syntax instead of import, change the module field in the tsconfig.json file to commonjs
11
+ 1. Update the readme.md file
12
+
13
+ ## File Structure
14
+
15
+ General representation of the building pieces
16
+
17
+ ## Available Scripts
18
+
19
+ In the project directory, you can run:
20
+
21
+ ### `yarn start`
22
+
23
+ Runs the app in the development mode.<br>
24
+
25
+ ### `yarn dev`
26
+
27
+ Alias of yarn start, for some developers convinience.
28
+
29
+ ### `yarn test`
30
+
31
+ Launches the test runner in the interactive watch mode.<br>
32
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
33
+
34
+ ### `yarn test:all`
35
+
36
+ Run every test in a none interactive mode and create a coverage report.
37
+
38
+ This command is perfect for pre push hooks.
39
+
40
+ ### `yarn test:ci`
41
+
42
+ Simulates a CI environment before running all tests
43
+
44
+ ### `yarn check-types`
45
+
46
+ Will attempt to compile the whole project including test files that are normally excluded.
47
+
48
+ This command is perfect for verifing the project's integrity before commiting changes
49
+
50
+ ### `yarn lint`
51
+
52
+ Runs the configured linter to check for any lints in your code before deploying, developers must clean any lint before commiting or commints will not go through.
53
+
54
+ ### `yarn prettier`
55
+
56
+ Configure prettier, the files that should be included and excluded. This command should not be used by itself.
57
+
58
+ ### `yarn format`
59
+
60
+ Uses the prettier configuration to run prettier in write mode to all selected files. It will fix all format errors.
61
+
62
+ ### `yarn check-format`
63
+
64
+ Uses the prettier configuration to run prettier in read mode to all selected files. If any is bad formated, it will display a warning.
65
+
66
+ ### `yarn build`
67
+
68
+ Builds the app for production to the `build` folder.<br>
69
+ It correctly bundles the project in production mode and optimizes the build for the best performance.
70
+
71
+ ### `yarn validate`
72
+
73
+ It validates the integrity of the project by running many of the static testing, unit/integration testing and e2e testing commands.
74
+
75
+ ### `yarn validate:ci`
76
+
77
+ Run a different series of commands than validate, the selected commands that are run are the ones appropiate to be run on CI. This command is not met to be run locally.
78
+
79
+ ## Publishing your library
80
+
81
+ To publish your library you will only need to run `yarn publish`. We will take care of the rest. Things like creating a new build of your code will be done automatically. Just take into consideration to bump the project version following the semver methodology.
82
+
83
+ ## Previewing your library
84
+
85
+ When you are in the middle of the development of your new library, you find your self needing to test the current features you are developing. We recommend using `npm link` and a separte project for those purposes.
86
+
87
+ If you want to test your app on a real app, then we recommend using `yarn publish`. This method should be avoided during development.
88
+
89
+ > ### Hope you are enjoying this boilerplate
90
+ >
91
+ > We are happy to add/update any additional request you may have. For intering ideas, please submit a new issue and we will take care of it.
92
+ >
93
+ > Happy coding! 🚀